コード例 #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("rkKyiyILBQhVCnS3H08ahZq28htc6r2r");
     country.setCountryCode2("JYI");
     country.setVersionId(1);
     country.setCurrencyCode("lbS");
     country.setIsoNumeric(901);
     country.setCountryFlag("QkiFaFE5PPvCymIO7lidMHgbUmOYfRQtdbsNPEkcQMd7GLjiRB");
     country.setCountryName("YhrZasSx8tAOpEduNzlaw7kdYpGFTUFJUK584HTc1MkWgNpsdj");
     country.setCapitalLatitude(5);
     country.setCurrencySymbol("9Z8lpIbdafdAiXY1nJZWMZamCdZpJpn8");
     country.setCapitalLongitude(8);
     country.setCurrencyName("fIJWUzvvaMJf7DOFmyvfo3HUDAdgZmogPgtW9Kqk5MnnWoHdLt");
     country.setCountryCode1("UNu");
     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());
   }
 }
コード例 #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());
   }
 }