9596979899100101102103
request.setPage(1); return request; } private BankResponse mockedFirstTransactionResponse() { MockedBankResponse response = new MockedBankResponse("americanexpress-paginated-transactions-1.htm"); response.code(200); return response; }
103104105106107108109110111
return new BankRequest("https://www.americanexpress.com/home/se/home_c.shtml") .skipAuthentication(true); } private BankResponse getValidInitialResponseMock() { MockedBankResponse response = new MockedBankResponse(); response.code(200); return response; }
123124125126127128129130131
.addParam("UserID", USERNAME) .addParam("Password", PASSWORD); } private BankResponse getValidLoginResponseMock() { MockedBankResponse response = new MockedBankResponse("americanexpress-login-successful.htm"); response.code(200); return response; }
101102103104105106107108109
response.code(200); return response; } private BankResponse mockedSecondTransactionResponse() { MockedBankResponse response = new MockedBankResponse("americanexpress-paginated-transactions-2.htm"); response.code(200); return response; }
129130131132133134135136137
response.code(200); return response; } private BankResponse getInvalidLoginResponseMock() { MockedBankResponse response = new MockedBankResponse("americanexpress-login-failure.htm"); response.code(200); return response; }