Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def 'test -- empty message body with no headers'(){
- given:
- def mockTestOutputEndpoint = MockEndpoint.resolve(context, 'mock:log:out')
- mockTestOutputEndpoint.expectedCount = 0
- def producer = context.createProducerTemplate()
- when:
- producer.sendBody('direct:test-input', '')
- then:
- 1 * mockSimpleInputService.performSimpleStringTask('')
- 0 * mockSimpleOutputService.performSomeOtherSimpleStringTask(_)
- mockTestOutputEndpoint.assertIsSatisfied()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement