Skip to content

Commit

Permalink
Checking that we pass along the authentication header (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannylamb authored and jonathangreen committed Feb 24, 2017
1 parent 9e265fb commit 4fc7a19
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ public void configure() throws Exception {

endpoint.expectedMessageCount(1);
endpoint.expectedHeaderReceived(Exchange.HTTP_METHOD, "GET");
endpoint.expectedHeaderReceived("Authentication", "some_nifty_token");

template.send(exchange -> {
exchange.setProperty("uri", "http://localhost:8000/fedora_resource/1");
exchange.getIn().setHeader("Authentication", "some_nifty_token");
});

assertMockEndpointsSatisfied();
Expand Down

0 comments on commit 4fc7a19

Please sign in to comment.