Section 5.4. Running a Test Case

team bbl


5.4. Running a Test Case

The test case is easy to run. You've already got it. It's the one that you ran with the façade.

5.4.1. How do I do that?

Since the test case exists, you can run the existing façade test. You'll just have to make sure that you set up your test data correctly, and you can use the application context unchanged. That's the power, and testability, of Spring.

5.4.2. What just happened?

You used the existing test case. That's nice, because you only need to manage the incremental details for the database. In the next chapter, you'll start to dig into services that you can add to your application with Spring's AOP.

    team bbl



    Spring. A developer's Notebook
    Spring: A Developers Notebook
    ISBN: 0596009100
    EAN: 2147483647
    Year: 2005
    Pages: 90

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net