Source:
<code>public void shouldReturnAllTransactionsForAGivenGatewayAccount() { Long chargeId1 = 10001L; String externalChargeId1 = "10001"; Long chargeId2 = 10002L; String externalChargeId2 = "10002"; int amount1 = 100; int amount2 = 500; String gatewayTransactionId1 = "transaction-id-1"; app.getDatabaseTestHelper().addCharge(chargeId1, externalChargeId1, accountId, amount1, AUTHORISATION_SUCCESS, returnUrl, gatewayTransactionId1); app.getDatabaseTestHelper().addCharge(chargeId2, externalChargeId2, accountId, amount2, AUTHORISATION_REJECTED, returnUrl, null); String anotherAccountId = "5454545"; Long chargeId3 = 5001L; app.getDatabaseTestHelper().addGatewayAccount(anotherAccountId, "worldpay"); app.getDatabaseTestHelper().addCharge(chargeId3, "charge5001", anotherAccountId, 200, AUTHORISATION_READY, returnUrl, "transaction-id-2"); List<ChargeStatus> statuses = asList(CREATED, ENTERING_CARD_DETAILS, AUTHORISATION_READY, AUTHORISATION_SUCCESS); setupLifeCycleEventsFor(app, chargeId1, statuses); setupLifeCycleEventsFor(app, chargeId2, statuses); setupLifeCycleEventsFor(app, chargeId3, statuses); <START> ValidatableResponse response = connectorRestApi.withHeader(HttpHeaders.ACCEPT, APPLICATION_JSON).getCharges(); <END> response.statusCode(OK.getStatusCode()) .contentType(JSON) .body("results", hasSize(2)); assertTransactionEntry(response, 0, externalChargeId2, null, amount2, ExternalChargeState.EXTERNAL_FAILED_REJECTED.getStatus()); assertTransactionEntry(response, 1, externalChargeId1, gatewayTransactionId1, amount1, ExternalChargeState.EXTERNAL_SUBMITTED.getStatus()); }</code><technical_language>this changed</technical_language>

Target:
public void shouldReturnAllTransactionsForAGivenGatewayAccount() { Long chargeId1 = 10001L; String externalChargeId1 = "10001"; Long chargeId2 = 10002L; String externalChargeId2 = "10002"; int amount1 = 100; int amount2 = 500; String gatewayTransactionId1 = "transaction-id-1"; app.getDatabaseTestHelper().addCharge(chargeId1, externalChargeId1, accountId, amount1, AUTHORISATION_SUCCESS, returnUrl, gatewayTransactionId1); app.getDatabaseTestHelper().addCharge(chargeId2, externalChargeId2, accountId, amount2, AUTHORISATION_REJECTED, returnUrl, null); String anotherAccountId = "5454545"; Long chargeId3 = 5001L; app.getDatabaseTestHelper().addGatewayAccount(anotherAccountId, "worldpay"); app.getDatabaseTestHelper().addCharge(chargeId3, "charge5001", anotherAccountId, 200, AUTHORISATION_READY, returnUrl, "transaction-id-2"); List<ChargeStatus> statuses = asList(CREATED, ENTERING_CARD_DETAILS, AUTHORISATION_READY, AUTHORISATION_SUCCESS); setupLifeCycleEventsFor(app, chargeId1, statuses); setupLifeCycleEventsFor(app, chargeId2, statuses); setupLifeCycleEventsFor(app, chargeId3, statuses); ValidatableResponse response = connectorRestApi.withHeader(HttpHeaders.ACCEPT, APPLICATION_JSON).getTransactions(); response.statusCode(OK.getStatusCode()) .contentType(JSON) .body("results", hasSize(2)); assertTransactionEntry(response, 0, externalChargeId2, null, amount2, ExternalChargeState.EXTERNAL_FAILED_REJECTED.getStatus()); assertTransactionEntry(response, 1, externalChargeId1, gatewayTransactionId1, amount1, ExternalChargeState.EXTERNAL_SUBMITTED.getStatus()); }