diff --git a/src/test/java/uk/gov/pay/ledger/transaction/resource/TransactionResourceTest.java b/src/test/java/uk/gov/pay/ledger/transaction/resource/TransactionResourceTest.java index 03935f2d9..72e26d09c 100644 --- a/src/test/java/uk/gov/pay/ledger/transaction/resource/TransactionResourceTest.java +++ b/src/test/java/uk/gov/pay/ledger/transaction/resource/TransactionResourceTest.java @@ -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; @@ -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)); }