@Test public void test3FindById() { try { org.junit.Assert.assertNotNull(map.get("RegionPrimaryKey")); regionRepository.findById((java.lang.String) map.get("RegionPrimaryKey")); } 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 test2Update() { try { org.junit.Assert.assertNotNull(map.get("RegionPrimaryKey")); Region region = regionRepository.findById((java.lang.String) map.get("RegionPrimaryKey")); region.setRegionCode1(1); region.setRegionCodeChar2("N4c2U1xTjlAZvxluk8TQGpkEDKzeCC3F"); region.setRegionDescription("cWDIp814dOg3fKPwebPLmG4Nng7Uru0gMQvobwhyKNUsmtR6Zr"); region.setRegionFlag("PxAMO2pfV2XNxqhP5IB5OH0BBvJwkN3QgPvnuWPYUjv9GIxT9B"); region.setRegionLatitude(2); region.setRegionLongitude(7); region.setRegionName("ERKUvfHA9rQpkSOcYI7obZlOi6z8dS1nNDj5F60kCyjWSH16Yb"); region.setVersionId(1); region.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); regionRepository.update(region); } 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()); } }