@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) { e.printStackTrace(); } }
@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("CVDdP5tpCU60lylvr2EyUsCpdV3RLMpN"); city.setCityDescription("Bjtxk7eEhkBNfEBgoYqJzSfRtJRseAjxwT6lnttZkDeiLlYOa2"); city.setCityFlag("CZ1QfAZNKFQlBPPUaxshFad2juxJlLTPawCAVRwgGvSYMjD4Zy"); city.setCityLatitude(0); city.setCityLongitude(4); city.setCityName("xZpAuWTLrQR39YO8RUSUqyd4AJ8vnqctZYl2zMW3nSLdKYShgb"); 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) { e.printStackTrace(); } }