Skip to content

Commit

Permalink
Merge pull request #581 from alphagov/PP-6085_add_accept_header_to_test
Browse files Browse the repository at this point in the history
PP-6085 Add accept header to test
  • Loading branch information
danworth authored Feb 7, 2020
2 parents e67f797 + bafe122 commit 9c3315d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.Map;
import java.util.Optional;

import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.ArgumentMatchers.anyBoolean;
Expand Down Expand Up @@ -92,7 +93,11 @@ public void shouldReturn404IfTransactionDoesNotExistWhenGettingEvents() {

@Test
public void shouldReturn400IfTransactionGatewayAccountIdIsNotProvidedForSearch() {
Response response = resources.target("/v1/transaction/").request().get();
Response response = resources.target("/v1/transaction/")
.request()
.header("Accept", APPLICATION_JSON)
.get();

assertThat(response.getStatus(), is(400));
}

Expand Down

0 comments on commit 9c3315d

Please sign in to comment.