Cover by Willie Wheeler with Joshua White

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Chapter 10. Integration testing

This chapter covers

  • Maven configuration for Spring integration testing
  • Writing transactional happy-path tests
  • Creating exception and performance tests

Ideally, testing is a core activity of the practicing software developer, and it so happens that the dependency-injection approach to software design is especially useful in the testing arena. Dependency injection is particularly useful in unit testing, where you desire to test small units of code in isolation from other code. With dependency injection you can inject mock dependencies with prescribed behavior into code units, which allows you to isolate faults to the code under test.

A step up from unit testing is integration testing. The idea here is to ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required