@Test public void test2Update() { try { org.junit.Assert.assertNotNull(map.get("BloodGroupPrimaryKey")); BloodGroup bloodgroup = bloodgroupRepository.findById((java.lang.String) map.get("BloodGroupPrimaryKey")); bloodgroup.setBloodGroup("X7pMR0xTBBKabWJ1qsb0VlE9tQIQT2RR5Kaxle8Zmu8QKezmfx"); bloodgroup.setVersionId(1); bloodgroup.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); bloodgroupRepository.update(bloodgroup); } 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()); } }
@Test public void test4Delete() { try { org.junit.Assert.assertNotNull(map.get("BloodGroupPrimaryKey")); bloodgroupRepository.delete((java.lang.String) map.get("BloodGroupPrimaryKey")); } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) { org.junit.Assert.fail(e.getMessage()); } catch (Exception e) { org.junit.Assert.fail(e.getMessage()); } }
@Test public void test1Save() { try { BloodGroup bloodgroup = new BloodGroup(); bloodgroup.setBloodGroup("P5JygrLzy6jWoQs9pJbXDVlM4YhABxeaiLH5TaNOTCUeWaQPkh"); bloodgroup.setEntityAudit(1, "xyz", RECORD_TYPE.ADD); bloodgroup.setEntityValidator(entityValidator); bloodgroup.isValid(); bloodgroupRepository.save(bloodgroup); map.put("BloodGroupPrimaryKey", bloodgroup._getPrimarykey()); } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) { org.junit.Assert.fail(e.getMessage()); } catch (java.lang.Exception e) { org.junit.Assert.fail(e.getMessage()); } }