@Test @DatabaseSetup(DATASET_XML) public void testFindTowner() { // SocialPerson towner = townerService.findTowner("*****@*****.**"); assertEquals("*****@*****.**", towner.getEmail()); }
@Test @DatabaseSetup(DATASET_XML) public void testRemoveTowner() { // String email = "*****@*****.**"; townerService.removeTowner(email); assertNull(townerService.findTowner(email)); }
@Test @DatabaseSetup(DATASET_XML) public void testRegistTowner() { // String name = "정효진"; String email = "*****@*****.**"; String password = "******"; townerService.registTowner(name, email, password); SocialPerson towner = townerService.findTowner(email); assertEquals(name, towner.getName()); assertEquals(email, towner.getEmail()); assertEquals(password, towner.getPassword()); }