Files
spring-integration-samples/advanced
Artem Bilan 324bf11d60 Fix wrong Mockito usage in the JmsMockTests
Just fix the test code according Mockito advice:
```
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Unfinished stubbing detected here:
-> at org.springframework.integration.samples.advance.testing.jms.JmsMockTests.verifyJmsMessageOnOutputChannel(JmsMockTests.java:153)

E.g. thenReturn() may be missing.
Examples of correct stubbing:
    when(mock.isOk()).thenReturn(true);
    when(mock.isOk()).thenThrow(exception);
    doThrow(exception).when(mock).someVoidMethod();
Hints:
 1. missing thenReturn()
 2. you are trying to stub a final method, you naughty developer!
```
2016-07-05 10:30:34 -04:00
..
2016-04-12 18:22:55 -04:00

Advanced Samples

This category targets advanced developers who are well familiar with the Spring Integration framework but are looking to extend it to address a specific custom need by extending from Spring Integration's public API.

For example; if you are looking for samples showing you how to implement a custom Channel or Consumer (event-based or polling-based), or if you trying to figure out what is the most appropriate way to implement a custom BeanParser on top of the Spring Integration BeanParser hierarchy when implementing custom namespaces, this would be the right place to look.

Here you can also find samples that will help you with adapter development. Spring Integration comes with an extensive library of adapters that allow you to connect remote systems with Spring Integration messaging framework. However you might have a need to integrate with systems for which the core framework does not provide an adapter and consequently you may have to implement your own adapter. This category would include samples showing you how to implement various adapters.