@Test public void test3FindById() { try { org.junit.Assert.assertNotNull(map.get("CityPrimaryKey")); cityRepository.findById((java.lang.String) map.get("CityPrimaryKey")); } 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("CityPrimaryKey")); City city = cityRepository.findById((java.lang.String) map.get("CityPrimaryKey")); city.setCityCode(1); city.setCityCodeChar2("FCpxL7pt4hawMCCo9jne6MsaGzgRFAER"); city.setCityDescription("F7bHUXqShqmoXwSfbwPUde9jKcEvcYakfz1OyFb5qXwvFONOfJ"); city.setCityFlag("6KnvtEd90IXEKn3xPFwhgZYVjOJJ0V14zTnhyrvRkvPghm7m96"); city.setCityLatitude(9); city.setCityLongitude(3); city.setCityName("9D1WpQCtn2Go4XQs19mu7RB333gtq7lg4EXyxSRJOhe2qxFbcp"); city.setVersionId(1); city.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); cityRepository.update(city); } 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()); } }