Chapter 9. Testing your application

 

This chapter covers
  • Roo test creation commands
  • Stubbing tests
  • Mocking entities and collaborators
  • Web-based testing challenges
  • Testing with Selenium

 

Spring Roo helps you build your applications rapidly, but that doesn’t mean you should skimp on your testing plans. Chances are, you’re building the applications so fast that it would help to slow down a bit and write some useful tests. The more you test up front, the fewer surprises you’ll find in production.

You’ve already learned that simple actions, such as using the --test-Automatically flag to create entities, help ensure you have a baseline of entity persistence tests for your application. But you can do more. As you saw in chapters 3 and 4, you ...

Get Spring Roo in Action 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.