Пример #1
0
 @Test
 @DatabaseSetup(DATASET_XML)
 public void testFindTowner() {
   //
   SocialPerson towner = townerService.findTowner("*****@*****.**");
   assertEquals("*****@*****.**", towner.getEmail());
 }
Пример #2
0
  @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());
  }