Files
spring-integration-samples/advanced/advanced-testing-examples/README.md
Gunnar Hillert 9effe2f9bc INTSAMPLES-33 Update to SI RC1 and Spring 3.1
1. Cleanup of pom.xml files
2. Standardizing version numbers
3. Updating dependency versions
4. Cleaning/Standardizing project names
5. Removing Schema versions in XML context files
2011-12-18 00:32:34 -05:00

782 B

Advanced Testing Examples

Example test cases that show advanced techniques to test Spring Integration based applications.

For basic testing examples see: basic/testing-examples

Examples

...jms.JmsMockTests.java

This test case shows how to test an integration flow that uses JMS inbound channel adapter by using Mockito to mock a JmsTemplate (and dependent JMS objects). The example flow in src/main/resources/integration-config.xml does not depend on JMS but includes some additional error handling on errorChannel. The errorChannel is configured on the JMS adapter. So
We want test the entire flow for cases in which an invalid message is received via JMS and routed to errorChannel. How do we do this without requiring a JMS message broker?