@Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("SalaryStructureFinancialWisePrimaryKey"));
     SalaryStructureFinancialWise salarystructurefinancialwise =
         salarystructurefinancialwiseRepository.findById(
             (java.lang.String) map.get("SalaryStructureFinancialWisePrimaryKey"));
     salarystructurefinancialwise.setBasic(12.34);
     salarystructurefinancialwise.setConvenceAllowance(12.34);
     salarystructurefinancialwise.setEducationalAllowance(12.34);
     salarystructurefinancialwise.setHra(12.34);
     salarystructurefinancialwise.setMedicalAllowance(12.34);
     salarystructurefinancialwise.setNonTaxableAmount(12.34);
     salarystructurefinancialwise.setPerk(12.34);
     salarystructurefinancialwise.setSalaryDrawn(12.34);
     salarystructurefinancialwise.setSpecailAllowance(12.34);
     salarystructurefinancialwise.setTakeHome(12.34);
     salarystructurefinancialwise.setTaxableAmount(12.34);
     salarystructurefinancialwise.setTotalCTC(12.34);
     salarystructurefinancialwise.setTotalTax(12.34);
     salarystructurefinancialwise.setVersionId(1);
     salarystructurefinancialwise.setYear(2261);
     salarystructurefinancialwise.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     salarystructurefinancialwiseRepository.update(salarystructurefinancialwise);
   } 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 test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("SalaryStructureFinancialWisePrimaryKey"));
     salarystructurefinancialwiseRepository.delete(
         (java.lang.String)
             map.get("SalaryStructureFinancialWisePrimaryKey")); /* Deleting refrenced data */
     empinformationRepository.delete(
         (java.lang.String) map.get("EmpInformationPrimaryKey")); /* Deleting refrenced data */
     visaRepository.delete(
         (java.lang.String) map.get("VisaPrimaryKey")); /* Deleting refrenced data */
     jobtypeRepository.delete(
         (java.lang.String) map.get("JobTypePrimaryKey")); /* Deleting refrenced data */
     designationtypeRepository.delete(
         (java.lang.String) map.get("DesignationTypePrimaryKey")); /* Deleting refrenced data */
     departmenttypeRepository.delete(
         (java.lang.String) map.get("DepartmentTypePrimaryKey")); /* Deleting refrenced data */
     titleRepository.delete(
         (java.lang.String) map.get("TitlePrimaryKey")); /* Deleting refrenced data */
     timezoneRepository.delete(
         (java.lang.String) map.get("TimezonePrimaryKey")); /* Deleting refrenced data */
     languageRepository.delete(
         (java.lang.String) map.get("LanguagePrimaryKey")); /* Deleting refrenced data */
     genderRepository.delete((java.lang.String) map.get("GenderPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("AppCustomerPrimaryKey"));
     appcustomerRepository.delete(
         (java.lang.String) map.get("AppCustomerPrimaryKey")); /* Deleting refrenced data */
     corecontactsRepository.delete(
         (java.lang.String) map.get("CoreContactsPrimaryKey")); /* Deleting refrenced data */
     titleRepository.delete(
         (java.lang.String) map.get("TitlePrimaryKey")); /* Deleting refrenced data */
     timezoneRepository.delete(
         (java.lang.String) map.get("TimezonePrimaryKey")); /* Deleting refrenced data */
     languageRepository.delete(
         (java.lang.String) map.get("LanguagePrimaryKey")); /* Deleting refrenced data */
     genderRepository.delete(
         (java.lang.String) map.get("GenderPrimaryKey")); /* Deleting refrenced data */
     appcustomertypeRepository.delete(
         (java.lang.String) map.get("AppCustomerTypePrimaryKey")); /* Deleting refrenced data */
     appcustomercategoryRepository.delete(
         (java.lang.String) map.get("AppCustomerCategoryPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("AppMenusPrimaryKey"));
     AppMenus appmenus =
         appmenusRepository.findById((java.lang.String) map.get("AppMenusPrimaryKey"));
     appmenus.setAppId("76mXhpoAmba9jkRNbKuVyY02I4VlzIl8rGbldmUFgdFMyqJR5U");
     appmenus.setAppType(1);
     appmenus.setMenuAccessRights(9);
     appmenus.setMenuAction("Db5GPlW2ZkygfTYJ0L45MMJD5C36i9oAi7Pwt0yNxXXvhet5o6");
     appmenus.setMenuCommands("GYwQuAZlnguo6qLtLJwra68KoNoSKd8NkUagK4c7puijVx9zzH");
     appmenus.setMenuIcon("SFQSmityAlSEHxtHKZbYZOsHO7QJ1f1sXUWn8ZeJVEbECV0Lq4");
     appmenus.setMenuLabel("bmzXQJPzoIUBBoiBckVyuGfxFfuLmyq0nd9afO3VVDKy17cR4Y");
     appmenus.setMenuTreeId("oQOA74mqUiwTSpKDaBN5uUNxLYHWLh9iIZmJltqZc4gJC8woG0");
     appmenus.setRefObjectId("MO7NILk5vywswgChZLqNHQzBYXpmeMcBntqLkwsROnsuOsTpBl");
     appmenus.setUiType("rMc");
     appmenus.setVersionId(1);
     appmenus.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     appmenusRepository.update(appmenus);
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
 @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());
   }
 }
 @Around(
     "saveOperation()||deleteOperation()||updateOperation()||findOperation()||getOperation()||allOperation()")
 public Object aroundfindAll(ProceedingJoinPoint joinPoint) throws Throwable {
   MethodCallDetails methodCallDetails =
       new MethodCallDetails(
           requestDetails.getRequestId(),
           requestDetails.getCallSequence(),
           HealthConstants.CLASS_TYPE.REPOSITORY,
           runtimeLogInfoHelper.getRuntimeLogInfo().getUserIpAddress(),
           "",
           joinPoint.getTarget().getClass().toString(),
           joinPoint.getSignature().getName(),
           runtimeLogInfoHelper.getRuntimeLogInfo().getUserId(),
           requestDetails.getAppSessionId());
   Object object = null;
   repositoryLogic(joinPoint);
   try {
     object = handleRepositoryCall(joinPoint, runtimeLogInfoHelper.getRuntimeLogInfo());
     methodCallDetails.setPostCallDetails(HealthConstants.METHOD_NORMAL_EXECUTION);
   } catch (SpartanPersistenceException e) {
     methodCallDetails.setPostCallDetails(HealthConstants.METHOD_EXCEPTION, e.getExceptionId());
     e.printStackTrace();
     throw e;
   } catch (Exception e) {
     methodCallDetails.setPostCallDetails(
         HealthConstants.METHOD_EXCEPTION, HealthConstants.DEFAULT_EXCEPTION_ID);
     e.printStackTrace();
     throw e;
   } finally {
     requestDetails.addMethodCallDetails(methodCallDetails);
   }
   return object;
 }
Пример #7
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());
   }
 }
 private void updateSession(LoginSessionInterface loginSession, String sessionData) {
   try {
     loginSessionInterfaceRepository.updateUserSession(loginSession, sessionData);
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     e.printStackTrace();
   }
 }
Пример #9
0
 @Around(
     value =
         "saveOperation()||deleteOperation()||updateOperation()||findOperation()||getOperation()||allOperation()")
 public Object aroundfindAll(ProceedingJoinPoint joinPoint) throws Throwable {
   System.out.println("In around repository aspect");
   MethodCallDetails methodCallDetails =
       new MethodCallDetails(
           requestDetails.getRequestId(),
           HealthConstants.CLASS_TYPE.REPOSITORY,
           runtimeLogInfoHelper.getRuntimeLogInfo().getUserIpAddress(),
           "",
           joinPoint.getTarget().getClass().toString(),
           joinPoint.getSignature().getName(),
           runtimeLogInfoHelper.getRuntimeLogInfo().getUserId(),
           "");
   setCustomerIdInEntityManager();
   Object object = null;
   if (joinPoint.getArgs().length > 0) {
     Object methodInputParam = joinPoint.getArgs()[0];
     if (methodInputParam != null && methodInputParam instanceof CommonEntityInterface) {
       CommonEntityInterface entity = (CommonEntityInterface) methodInputParam;
       preSaveUpdateOperation(entity);
     } else if (methodInputParam != null && methodInputParam instanceof List) {
       List listOfEntities = (List) methodInputParam;
       if (listOfEntities.size() > 0) {
         /*
          * Checking 0th element type. So no need to check type for
          * each element in the loop.
          */
         if (listOfEntities.get(0) instanceof CommonEntityInterface) {
           for (Object object1 : listOfEntities) {
             CommonEntityInterface entity = (CommonEntityInterface) object1;
             preSaveUpdateOperation(entity);
           }
         }
       }
     }
   }
   try {
     object = handleRepositoryCall(joinPoint, runtimeLogInfoHelper.getRuntimeLogInfo());
     methodCallDetails.setPostCallDetails(HealthConstants.METHOD_NORMAL_EXECUTION);
   } catch (SpartanPersistenceException e) {
     methodCallDetails.setPostCallDetails(HealthConstants.METHOD_EXCEPTION, e.getExceptionId());
     e.printStackTrace();
     throw e;
   } catch (Exception e) {
     methodCallDetails.setPostCallDetails(
         HealthConstants.METHOD_EXCEPTION, HealthConstants.DEFAULT_EXCEPTION_ID);
     e.printStackTrace();
     throw e;
   } finally {
     requestDetails.addRepositoryMethodCallDetails(methodCallDetails);
   }
   return object;
 }
Пример #10
0
 @Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("UserAccessDomainPrimaryKey"));
     useraccessdomainRepository.findById((java.lang.String) map.get("UserAccessDomainPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("AppCustomerTypePrimaryKey"));
     appcustomertypeRepository.findById((java.lang.String) map.get("AppCustomerTypePrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("AddressTypePrimaryKey"));
     addresstypeRepository.delete((java.lang.String) map.get("AddressTypePrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("AppMenusPrimaryKey"));
     appmenusRepository.delete((java.lang.String) map.get("AppMenusPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Пример #14
0
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(System.getProperty("IssuePriorityPrimaryKey"));
     issuepriorityRepository.delete(System.getProperty("IssuePriorityPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test3FindById() {
   try {
     org.junit.Assert.assertNotNull(map.get("SalaryStructureFinancialWisePrimaryKey"));
     salarystructurefinancialwiseRepository.findById(
         (java.lang.String) map.get("SalaryStructureFinancialWisePrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("SurveyQuestionGroupPrimaryKey"));
     surveyquestiongroupRepository.delete(
         (java.lang.Integer) map.get("SurveyQuestionGroupPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test3findByuserId() {
     try {
         java.util.List<UserRoleBridge> listofuserId = userrolebridgeRepository.findByUserId((java.lang.String) map.get("UserPrimaryKey"));
         if (listofuserId.size() == 0) {
             org.junit.Assert.fail("Query did not return any records.");
         }
     } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
         org.junit.Assert.fail(e.getMessage());
     } catch (Exception e) {
         org.junit.Assert.fail(e.getMessage());
     }
 }
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("CurrencyPrimaryKey"));
     currencyRepository.delete(
         (java.lang.String) map.get("CurrencyPrimaryKey")); /* Deleting refrenced data */
     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());
   }
 }
Пример #19
0
 @Override
 public void jobToBeExecuted(JobExecutionContext context) {
   System.out.println("jobToBeExecuted has execute. " + new Date());
   try {
     List<JobDetails> job =
         jobRepository.getJobByBeanName(context.getJobDetail().getJobClass().getName());
     if (job.size() > 0) {
       job.get(0).setCurrentStatus("JOB_STARTED");
       jobRepository.updateJobDetails(job.get(0));
     }
   } catch (SpartanPersistenceException e) {
     e.printStackTrace();
   }
 }
Пример #20
0
 @Test
 public void test3findBystateId() {
   try {
     java.util.List<Region> listofstateId =
         regionRepository.findByStateId((java.lang.String) map.get("StatePrimaryKey"));
     if (listofstateId.size() == 0) {
       org.junit.Assert.fail("Query did not return any records.");
     }
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
Пример #21
0
 @Test
 public void test3findBycountryId() {
   try {
     java.util.List<City> listofcountryId =
         cityRepository.findByCountryId((java.lang.String) map.get("CountryPrimaryKey"));
     if (listofcountryId.size() == 0) {
       org.junit.Assert.fail("Query did not return any records.");
     }
   } 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("UserRoleBridgePrimaryKey"));
         UserRoleBridge userrolebridge = userrolebridgeRepository.findById((java.lang.String) map.get("UserRoleBridgePrimaryKey"));
         userrolebridge.setVersionId(1);
         userrolebridge.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
         userrolebridgeRepository.update(userrolebridge);
     } 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 test3findBycontactId() {
   try {
     java.util.List<AppCustomer> listofcontactId =
         appcustomerRepository.findByContactId(
             (java.lang.String) map.get("CoreContactsPrimaryKey"));
     if (listofcontactId.size() == 0) {
       org.junit.Assert.fail("Query did not return any records.");
     }
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
 @Test
 public void test3findByempId() {
   try {
     java.util.List<SalaryStructureFinancialWise> listofempId =
         salarystructurefinancialwiseRepository.findByEmpId(
             (java.lang.String) map.get("EmpInformationPrimaryKey"));
     if (listofempId.size() == 0) {
       org.junit.Assert.fail("Query did not return any records.");
     }
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
Пример #25
0
 @Test
 public void test4Delete() {
   try {
     org.junit.Assert.assertNotNull(map.get("UserPrimaryKey"));
     userRepository.delete(
         (java.lang.String) map.get("UserPrimaryKey")); /* Deleting refrenced data */
     useraccesslevelRepository.delete(
         (java.lang.String) map.get("UserAccessLevelPrimaryKey")); /* Deleting refrenced data */
     useraccessdomainRepository.delete((java.lang.String) map.get("UserAccessDomainPrimaryKey"));
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (Exception e) {
     org.junit.Assert.fail(e.getMessage());
   }
 }
Пример #26
0
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("ThirdEnPrimaryKey"));
     ThirdEn thirden = thirdenRepository.findById((java.lang.String) map.get("ThirdEnPrimaryKey"));
     thirden.setFirsname1("R3Xb3U9uBkRkniwnr16YblkOFRQ51r0opw905ji1OV3HV9onz5");
     thirden.setVersionId(1);
     thirden.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     thirdenRepository.update(thirden);
   } 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 test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("BloodGroupPrimaryKey"));
     BloodGroup bloodgroup =
         bloodgroupRepository.findById((java.lang.String) map.get("BloodGroupPrimaryKey"));
     bloodgroup.setBloodGroup("X7pMR0xTBBKabWJ1qsb0VlE9tQIQT2RR5Kaxle8Zmu8QKezmfx");
     bloodgroup.setVersionId(1);
     bloodgroup.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     bloodgroupRepository.update(bloodgroup);
   } 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());
   }
 }
Пример #28
0
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(System.getProperty("IssuePriorityPrimaryKey"));
     IssuePriority issuepriority =
         issuepriorityRepository.findById(System.getProperty("IssuePriorityPrimaryKey"));
     issuepriority.setIssuePriorityDesc("KjUIsp1oHydxBwRxSzJWrUXuauLw2DP1LwC226WYv6koG0zGUO");
     issuepriority.setIssuePriorityName("rJppzrbl9SHVG6zEPyw2UqTFmpx9kAoZCTxNaPTpk7IwA08APK");
     issuepriority.setVersionId(1);
     issuepriority.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     issuepriorityRepository.update(issuepriority);
   } catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("AddressTypePrimaryKey"));
     AddressType addresstype =
         addresstypeRepository.findById((java.lang.String) map.get("AddressTypePrimaryKey"));
     addresstype.setAddressType("z5ft8OXUBGrY8zsOyexv3q7bT0zc4tRycSAxYAn4mgkxTQLtAa");
     addresstype.setAddressTypeDesc("AEukh8ClRChVbnezxiPtcq028dn9KUFbzI4pov5fcXHQxcT8IG");
     addresstype.setAddressTypeIcon("fFw4pra2cmu4PfDyzrUZwaIe51Xp7r5O0SRnkXvR915EWPX9Lc");
     addresstype.setVersionId(1);
     addresstype.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     addresstypeRepository.update(addresstype);
   } 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());
   }
 }
Пример #30
0
 @Test
 public void test2Update() {
   try {
     org.junit.Assert.assertNotNull(map.get("RolesPrimaryKey"));
     Roles roles = rolesRepository.findById((java.lang.String) map.get("RolesPrimaryKey"));
     roles.setRoleDescription("mnyvDGwGmlcunCKEbr61EOaAJLnqvscy7gFNkusWbhkAwLcZxv");
     roles.setRoleHelp("jmLxassP4NCPfGLTeWHlp0m7qJvJY1rpLkiX1q1hc3FQ65FkMB");
     roles.setRoleIcon("1D3maXhPXnYY6tR9oXjMiG5s4U8sAE0OcWbkrhKgxraCfqcVOw");
     roles.setRoleName("Ff6EQT0H5naWYxlRnn9jZdtz03SIrxn9nLTkhdUuhyDkjFdAtl");
     roles.setVersionId(1);
     roles.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
     rolesRepository.update(roles);
   } 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());
   }
 }