@Test public void test2Update() { try { org.junit.Assert.assertNotNull(System.getProperty("IssuePriorityPrimaryKey")); IssuePriority issuepriority = issuepriorityRepository.findById(System.getProperty("IssuePriorityPrimaryKey")); issuepriority.setIssuePriorityDesc("KjUIsp1oHydxBwRxSzJWrUXuauLw2DP1LwC226WYv6koG0zGUO"); issuepriority.setIssuePriorityName("rJppzrbl9SHVG6zEPyw2UqTFmpx9kAoZCTxNaPTpk7IwA08APK"); issuepriority.setVersionId(1); issuepriority.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); issuepriorityRepository.update(issuepriority); } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) { org.junit.Assert.fail(e.getMessage()); } catch (java.lang.Exception e) { e.printStackTrace(); } }
@Test public void test1Save() { try { IssuePriority issuepriority = new IssuePriority(); issuepriority.setIssuePriorityDesc("82XaKjp7af1tu5ayYVJJR3WyVj7RP5Ng0tP2MDmEMBTIxuxKla"); issuepriority.setIssuePriorityName("3wu59oGjczO0BDGMG3mO0bskbWxDArRkH9KlffzjcRJ6mcJHcO"); issuepriority.setEntityAudit(1, "xyz", RECORD_TYPE.ADD); issuepriority.setEntityValidator(entityValidator); issuepriority.isValid(); issuepriorityRepository.save(issuepriority); System.setProperty("IssuePriorityPrimaryKey", issuepriority._getPrimarykey()); } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) { org.junit.Assert.fail(e.getMessage()); } catch (java.lang.Exception e) { e.printStackTrace(); } }