Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are two methods within `TransactionResource` named `search` and `streamCsv`. Both use the path `/` and http method `GET` but provide either "application/json" or "text/csv" respectively. According to the jax-rs specification when the client does not specify the "accept" header then it is not garanteed as to which method will be invoked, since both methods have the same level of specificity in what they provide. When `shouldReturn400IfTransactionGatewayAccountIdIsNotProvidedForSearch` runs locally and on Jenkins the `search` method is invoked as expected, however on Travis `streamCsv` is called and an NPE is thrown as the test provides a mock config with null parameters. This shouldn't be a concern in production since the client of this service is publicApi which provides an accept header. Therefore we feel it is exceptable to add the header to the test and not disambiguate the two methods any further.
- Loading branch information