INTSAMPLES-42 rename readme.txt files to README.md

This commit is contained in:
Gunnar Hillert
2012-01-08 01:01:15 -05:00
parent 7b27f0a8ea
commit 1905d1a46c
54 changed files with 751 additions and 822 deletions

View File

@@ -3,15 +3,10 @@ Advanced Testing Examples
Example test cases that show advanced techniques to test Spring Integration based applications.
For basic testing examples see: *basic/testing-examples*
For basic testing examples see: **basic/testing-examples**
## Examples
...jms.JmsMockTests.java
**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?
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?