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.

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.

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.

Get Spring: A Developer's Notebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.