Skip to content

Commit

Permalink
Also send back a mail OK response
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Nov 9, 2015
1 parent 2bb0e2c commit 35aa67d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -72,6 +72,9 @@ public void placeBulkCookieOrder() {
.header(CitrusMailMessageHeaders.MAIL_FROM, "cookie-report@example.com")
.header(CitrusMailMessageHeaders.MAIL_TO, "stakeholders@example.com");

send(mailServer)
.payload(new ClassPathResource("templates/mail_response.xml"));

echo("Receive report with 1000+ order");

http().client(reportingClient)
Expand Down
4 changes: 4 additions & 0 deletions acceptance/src/test/resources/templates/mail_response.xml
@@ -0,0 +1,4 @@
<mail-response xmlns="http://www.citrusframework.org/schema/mail/message">
<code>250</code>
<message>OK</message>
</mail-response>

0 comments on commit 35aa67d

Please sign in to comment.