@Test public void test1Save() { try { ThirdEn thirden = createThirdEn(true); thirden.setEntityAudit(1, "xyz", RECORD_TYPE.ADD); thirden.isValid(); thirdenRepository.save(thirden); map.put("ThirdEnPrimaryKey", thirden._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()); } }
@Test public void test2Update() { try { org.junit.Assert.assertNotNull(map.get("ThirdEnPrimaryKey")); ThirdEn thirden = thirdenRepository.findById((java.lang.String) map.get("ThirdEnPrimaryKey")); thirden.setFirsname1("R3Xb3U9uBkRkniwnr16YblkOFRQ51r0opw905ji1OV3HV9onz5"); thirden.setVersionId(1); thirden.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); thirdenRepository.update(thirden); } 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()); } }