Esempio n. 1
0
 @Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("LeaveRequestPrimaryKey"));
     leaverequestRepository.findById((java.lang.String) map.get("LeaveRequestPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
Esempio n. 2
0
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("LeaveRequestPrimaryKey"));
     LeaveRequest leaverequest =
         leaverequestRepository.findById((java.lang.String) map.get("LeaveRequestPrimaryKey"));
     leaverequest.setCasualLeave(10);
     leaverequest.setFromDate(new java.sql.Date(123456789));
     leaverequest.setMaternityLeave(8);
     leaverequest.setPrivilege(10);
     leaverequest.setSickLeave(1);
     leaverequest.setToDate(new java.sql.Date(123456789));
     leaverequest.setVersionId(1);
     leaverequest.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     leaverequestRepository.update(leaverequest);
   } 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());
   }
 }