diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java b/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java index 992813c..32bf67a 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/AccountManager.java @@ -14,34 +14,50 @@ private AccountManager() { //ダミーのお店を作成 ShopManager sm = ShopManager.getInstance(); - Shop shopA = sm.createShop("店A", 135.26, 34.73); - Shop shopB = sm.createShop("店B", 133.11, 33.29); - Shop shopC = sm.createShop("店C", 130.78, 34.50); - Shop shopD = sm.createShop("店D", 140.23, 35.21); + Shop shopA = sm.createShop("甲南カフェ", 135.26, 34.73); + Shop shopB = sm.createShop("新田ラーメン", 133.11, 33.29); + Shop shopC = sm.createShop("ナンボーナンカレー", 130.78, 34.50); + Shop shopD = sm.createShop("食事処ネモフィラ", 140.23, 35.21); //ダミーアカウントの作成 - this.createAccount("a","a"); + this.createAccount("渡邊","a"); Account testAc1 = this.getAccount("1111"); - testAc1.createPost(shopA, 5, "ラーメン", "おいしかった", null, null, null); - testAc1.createPost(shopB, 3, "ファストフード", "提供が速かった", null, null, null); - testAc1.createPost(shopC, 5, "カフェ", "落ち着いた雰囲気だった", null, null, null); - testAc1.createPost(shopD, 4, "中華", "足元が油でぬるぬるだった", null, null, null); + testAc1.createPost(shopA, 5, "カフェ", "落ち着いた雰囲気で良かった", null, null, null); + testAc1.createPost(shopB, 3, "ラーメン", "提供が速かった", null, null, null); + testAc1.createPost(shopC, 5, "カレー", "とてもおいしかった", null, null, null); + testAc1.createPost(shopD, 4, "和食", "サバがおいしかった", null, null, null); - this.createAccount("b","b"); + this.createAccount("彌永","a"); Account testAc2 = this.getAccount("1112"); - testAc2.createPost(shopA, 2, "ラーメン", "濃かった", null, null, null); + testAc2.createPost(shopA, 2, "カフェ", "騒がしかった", null, null, null); - this.createAccount("c","c"); + this.createAccount("和田","a"); Account testAc3 = this.getAccount("1113"); - testAc3.createPost(shopA, 3, "中華", "王将の方がおいしい", null, null, null); + testAc3.createPost(shopA, 3, "カフェ", "コーヒーがうまいぞ", null, null, null); - this.createAccount("d","d"); + this.createAccount("前原","a"); Account testAc4 = this.getAccount("1114"); - testAc4.createPost(shopA, 5, "カレー", "なかなかおいしかった", null, null, null); + testAc4.createPost(shopA, 5, "カフェ", "落ち着いた雰囲気ですごく良い", null, null, null); + FriendManager friendManagerA = testAc1.getFriendManager(); + FriendManager friendManagerB = testAc1.getFriendManager(); FriendManager friendManagerC = testAc3.getFriendManager(); FriendManager friendManagerD = testAc4.getFriendManager(); + + friendManagerA.addFriend(testAc2); + friendManagerA.addFriend(testAc3); + friendManagerA.addFriend(testAc4); + + friendManagerB.addFriend(testAc1); + friendManagerB.addFriend(testAc3); + friendManagerB.addFriend(testAc4); + + friendManagerC.addFriend(testAc1); + friendManagerC.addFriend(testAc2); friendManagerC.addFriend(testAc4); + + friendManagerD.addFriend(testAc1); + friendManagerD.addFriend(testAc2); friendManagerD.addFriend(testAc3); }