Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def 'test -- empty message body with no headers'(){
  2. given:
  3. def mockTestOutputEndpoint = MockEndpoint.resolve(context, 'mock:log:out')
  4. mockTestOutputEndpoint.expectedCount = 0
  5. def producer = context.createProducerTemplate()
  6. when:
  7. producer.sendBody('direct:test-input', '')
  8. then:
  9. 1 * mockSimpleInputService.performSimpleStringTask('')
  10. 0 * mockSimpleOutputService.performSomeOtherSimpleStringTask(_)
  11. mockTestOutputEndpoint.assertIsSatisfied()
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement