@Test public void test2Update() { try { org.junit.Assert.assertNotNull(map.get("CountryPrimaryKey")); Country country = countryRepository.findById((java.lang.String) map.get("CountryPrimaryKey")); country.setCapital("p8BOHaskx6rOLBEFUbv4Ofh9twar7oPz"); country.setCapitalLatitude(10); country.setCapitalLongitude(10); country.setCountryCode1("ouX"); country.setCountryCode2("5jm"); country.setCountryFlag("T3tOwtUu8tS7dCFX4rU6fbOLjjoF4LeytRbccLjDkPxBer19rB"); country.setCountryName("Ujtvf9uQu6Wm1kkjeQvvgsnq95z99WQABufztO22M5auVrFNYz"); country.setCurrencyCode("75w"); country.setCurrencyName("nKy0UgMS341tsFRilu2XwHSwUOfeaHHReE8sGHWmEKq5WaigJE"); country.setCurrencySymbol("ecae0UTIEVqLU3ml7WpoS98WpuctjhIG"); country.setIsoNumeric(3); country.setVersionId(1); country.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE); countryRepository.update(country); } 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()); } }
@Test public void test1Save() { try { Country country = new Country(); country.setCapital("YbOPjn2u508Er4hSXSO1hULI09SMDn9o"); country.setCapitalLatitude(9); country.setCapitalLongitude(4); country.setCountryCode1("2aI"); country.setCountryCode2("LK4"); country.setCountryFlag("SvHj7x1Ni82E0xIXPvXoyQcZsuIyoDpJfye0QOe9JAEQjLDhbx"); country.setCountryName("Wp1CWUIxybGRYpLXLjFnlcbU0jn22QaNG8hcWXJtx5W5JrLsL8"); country.setCurrencyCode("0VA"); country.setCurrencyName("JF5cR1jh7Vi8z81vhe3htipojisDszOxFBKYhD0kyqWRfThLaC"); country.setCurrencySymbol("0bRJ4VAN65vAuYxzJn8XzV7zgWAWEyNP"); country.setIsoNumeric(10); country.setEntityAudit(1, "xyz", RECORD_TYPE.ADD); country.setEntityValidator(entityValidator); country.isValid(); countryRepository.save(country); map.put("CountryPrimaryKey", country._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 test4Delete() { try { org.junit.Assert.assertNotNull(map.get("CountryPrimaryKey")); countryRepository.delete((java.lang.String) map.get("CountryPrimaryKey")); } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) { org.junit.Assert.fail(e.getMessage()); } catch (Exception e) { org.junit.Assert.fail(e.getMessage()); } }