Exemplo n.º 1
0
 @Test(dependsOnMethods = "update")
 public void delete() throws Exception {
   PersonLanguage personLanguage = repo.findById(id);
   repo.delete(personLanguage);
   PersonLanguage deletedLanguage = repo.findById(id);
   Assert.assertNull(deletedLanguage);
 }
Exemplo n.º 2
0
 @Test(dependsOnMethods = "read")
 public void update() throws Exception {
   PersonLanguage personLanguage = repo.findById(id);
   PersonLanguage newPersonLanguage =
       new PersonLanguage.Builder().copy(personLanguage).languageId("Xhosa").build();
   repo.update(newPersonLanguage);
   PersonLanguage updatedPersonLanguage = repo.findById(id);
   Assert.assertEquals("Xhosa", updatedPersonLanguage.getLanguageId());
 }
Exemplo n.º 3
0
 @Test(dependsOnMethods = "create")
 public void read() throws Exception {
   PersonLanguage personLanguage = repo.findById(id);
   Assert.assertNotNull(personLanguage);
 }