Beispiel #1
0
 @Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("RolesPrimaryKey"));
     rolesRepository.findById((java.lang.String) map.get("RolesPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
Beispiel #2
0
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("RolesPrimaryKey"));
     Roles roles = rolesRepository.findById((java.lang.String) map.get("RolesPrimaryKey"));
     roles.setRoleDescription("mnyvDGwGmlcunCKEbr61EOaAJLnqvscy7gFNkusWbhkAwLcZxv");
     roles.setRoleHelp("jmLxassP4NCPfGLTeWHlp0m7qJvJY1rpLkiX1q1hc3FQ65FkMB");
     roles.setRoleIcon("1D3maXhPXnYY6tR9oXjMiG5s4U8sAE0OcWbkrhKgxraCfqcVOw");
     roles.setRoleName("Ff6EQT0H5naWYxlRnn9jZdtz03SIrxn9nLTkhdUuhyDkjFdAtl");
     roles.setVersionId(1);
     roles.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     rolesRepository.update(roles);
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }