diff --git a/src/main/java/org/ntlab/citrusserver/repositories/AccountManager.java b/src/main/java/org/ntlab/citrusserver/repositories/AccountManager.java index 381708b..0b69bd6 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/AccountManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/AccountManager.java @@ -12,6 +12,22 @@ private final HashMap accountToken = new HashMap<>(); //keyがaccountId,valueがtoken + public void dummyAccount() { //ダミーアカウントの作成 + String accountId = "fish"; + String password = "abc"; + String token = "def"; + Account account = new Account(accountId, password); + accounts.put(accountId, account); + accountToken.put(accountId, token); + + String accountId2 = "bird"; + String password2 = "abc"; + String token2 = "xyz"; + Account account2 = new Account(accountId2, password2); + accounts.put(accountId2, account2); + accountToken.put(accountId2, token2); + } + // アカウントの一覧をリストとして返す(GET) public Set getAccountsID() { return accounts.keySet();