Ejemplo n.º 1
0
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("LanguagePrimaryKey"));
     languageRepository.delete((java.lang.String) map.get("LanguagePrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
Ejemplo n.º 2
0
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("LanguagePrimaryKey"));
     Language language =
         languageRepository.findById((java.lang.String) map.get("LanguagePrimaryKey"));
     language.setAlpha2("A1");
     language.setAlpha3("BEg");
     language.setAlpha4("bwSs");
     language.setAlpha4parentid(1);
     language.setLanguage("R56esXyzD82rdpecfgnc44qfx7UekpyHstGijfGsT9Xcn8hyMh");
     language.setLanguageDescription("gqYXc1oTLMxWoQlO8NCW8ZrBNS8ADRxvzDsxG2W3oeOdtalgLm");
     language.setLanguageIcon("INXkvskI78O9TOY6AvmzvrdVMJVfpwYUMTSMDAGoFKFWf5fPzO");
     language.setLanguageType("tjf84pipt25mjXheuFbDeng7BkEDrHlu");
     language.setVersionId(1);
     language.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     languageRepository.update(language);
   } 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.º 3
0
 @Test
 public void test1Save() {
   try {
     Language language = new Language();
     language.setAlpha2("KT");
     language.setAlpha3("rmC");
     language.setAlpha4("8uXb");
     language.setAlpha4parentid(4);
     language.setLanguage("1YACtKIQMybklL81XoPKSaxch5q6RYxZTccyfo5nKq2zAkvrtZ");
     language.setLanguageDescription("3CfYCfQGxdGmqw7A5bUbJzCShgcXErxLywu80kPixAmRddySKO");
     language.setLanguageIcon("fWL8fDoQDhyJNNrJWP8VAz3vgNTiqlhYF9qsK6WKhP6AKHMjLX");
     language.setLanguageType("A6NHhnONlmHX72bQjIuNRvSF7ArsDP8M");
     language.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     language.setEntityValidator(entityValidator);
     language.isValid();
     languageRepository.save(language);
     map.put("LanguagePrimaryKey", language._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());
   }
 }