- added title and description fields to accountInfo

- added GET /accounts?customerId=XXX endpoint
- refactored tests
This commit is contained in:
dartpopikyardo
2016-03-15 20:10:58 +03:00
parent 28216a082d
commit b16039ee53
21 changed files with 120 additions and 46 deletions

View File

@@ -67,7 +67,7 @@ public class BankingWebIntegrationTest {
baseUrl("/accounts"),
HttpMethod.POST,
CreateAccountResponse.class,
new CreateAccountRequest("00000000-00000000", "My 1 Account", initialFromAccountBalance)
new CreateAccountRequest("00000000-00000000", "My 1 Account", "", initialFromAccountBalance)
);
final String fromAccountId = fromAccount.getAccountId();
@@ -75,7 +75,7 @@ public class BankingWebIntegrationTest {
baseUrl("/accounts"),
HttpMethod.POST,
CreateAccountResponse.class,
new CreateAccountRequest("00000000-00000000", "My 2 Account", initialToAccountBalance)
new CreateAccountRequest("00000000-00000000", "My 2 Account", "", initialToAccountBalance)
);
String toAccountId = toAccount.getAccountId();