Ejemplo n.º 1
0
 @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());
   }
 }
Ejemplo n.º 2
0
 @Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("CountryPrimaryKey"));
     countryRepository.findById((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());
   }
 }