コード例 #1
0
 @Test
 public void test3FindById() {
     try {
         org.junit.Assert.assertNotNull(map.get("UserRoleBridgePrimaryKey"));
         userrolebridgeRepository.findById((java.lang.String) map.get("UserRoleBridgePrimaryKey"));
     } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
         org.junit.Assert.fail(e.getMessage());
     } catch (Exception e) {
         org.junit.Assert.fail(e.getMessage());
     }
 }
コード例 #2
0
 @Test
 public void test2Update() {
     try {
         org.junit.Assert.assertNotNull(map.get("UserRoleBridgePrimaryKey"));
         UserRoleBridge userrolebridge = userrolebridgeRepository.findById((java.lang.String) map.get("UserRoleBridgePrimaryKey"));
         userrolebridge.setVersionId(1);
         userrolebridge.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
         userrolebridgeRepository.update(userrolebridge);
     } 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());
     }
 }