@Test
 public void test1Save() {
   try {
     EmpInformation empinformation = new EmpInformation();
     CoreContacts corecontacts = new CoreContacts();
     corecontacts.setAge(125);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("N1T9o6JSV8ioRhvM3ZV51txzttwzSaIBH00POqsuLbHUr7Yct9");
     corecontacts.setFirstName("SdxQTxECEtq1dwtoaoarY3eSfzEwQimol9Ze59tO2wRKPPhRlf");
     Gender gender = new Gender();
     gender.setGender("0IzCh1KvL9XWov89IDUmRXS6BXMKLJvcgp9xyW60r9vEf3RgoU");
     Gender GenderTest = genderRepository.save(gender);
     map.put("GenderPrimaryKey", gender._getPrimarykey());
     Language language = new Language();
     language.setAlpha2("pa");
     language.setAlpha3("dRu");
     language.setAlpha4("IUPK");
     language.setAlpha4parentid(5);
     language.setLanguage("sZ15m9XltDaNF9BlqmGiQKnJMlGC7PN0txJMhsrtC7pywVpwK0");
     language.setLanguageDescription("1BCrCLrkom7ggzD2ICUthQ8mCoFs2ckomXZFbbSUDK7Pm9VSXR");
     language.setLanguageIcon("wlzmksbgem2lNvhpcIIB9JIRKMC6NjtsjiVD5AJQZBhJOI3Yr4");
     language.setLanguageType("dXXcNIAhgt2Bgfe78jy07hwGBezrjRSB");
     Language LanguageTest = languageRepository.save(language);
     map.put("LanguagePrimaryKey", language._getPrimarykey());
     Timezone timezone = new Timezone();
     timezone.setCities("T7TSYOJ3zAxaNXBZ7Ev6Cof4Jqf5DEEEf3SbUPIJZkeHf8NZnH");
     timezone.setCountry("YVkyFW5LWxSvzFFmgkj5iwnlPBua7Ei9qrhNwG87S6AagufTy6");
     timezone.setGmtLabel("lphjadEmwpTzBN2p56mRsgjQHmqRKisW1RrKDCV9Of3kjthSTZ");
     timezone.setTimeZoneLabel("zPYbeUTsG0MaHuTtfdJ97QH807hJ7Q4Maz5BMAhI6pnukEjKWS");
     timezone.setUtcdifference(6);
     Timezone TimezoneTest = timezoneRepository.save(timezone);
     map.put("TimezonePrimaryKey", timezone._getPrimarykey());
     Title title = new Title();
     title.setTitles("uZ6LTeuOpKLDP0AEu4yEBs4I76L7qcxuHNKDjS5z4wSQ8tdsOH");
     Title TitleTest = titleRepository.save(title);
     map.put("TitlePrimaryKey", title._getPrimarykey());
     corecontacts.setAge(116);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("T9yX1Zie9UnSqZgOqnjGVtxQBziE92i6nnk1qvaxWAW08BITGc");
     corecontacts.setFirstName("8xzJ4QFJdX9aiIpdQeUn190gnXjABAnKbNTrJ8JMliVm4GUJQZ");
     corecontacts.setGenderId(
         (java.lang.String) GenderTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setLastName("AA6ouUtsCLjZsnzdarWfu4UTs7KNaDzlMaLTPYO4Mi3tn6LOAv");
     corecontacts.setMiddleName("ggEkqExFSWUt8bxmRZyOyPInw8ayMpXmk8ocgVWWp8uXF5tot0");
     corecontacts.setNativeFirstName("GQqQ6Vf6M0uLPWdLzWIQNYs2ayD3Q845vscInFZ1FhXwcNgdPP");
     corecontacts.setNativeLanguageCode(
         (java.lang.String) LanguageTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setNativeLastName("BLLiLHTP2QzOXlnCSAumYzfx0WThmndugrolTcKThsPR3CiBx2");
     corecontacts.setNativeMiddleName("nUQHPNXhGuqggicNd9OY1fIpR3hH2XFXOe8NahI8Gc8aGPM7lT");
     corecontacts.setNativeTitle("pQ4DeV5UVup28b807hlFSr0Hb43zy9SKSd96xfMAGWHhTgODLe");
     corecontacts.setPhoneNumber("tLtZ1RfffnqodgTLw1IR");
     corecontacts.setTimeZone(
         (java.lang.String) TimezoneTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setTitleId(
         (java.lang.String) TitleTest._getPrimarykey()); /* ******Adding refrenced table data */
     DepartmentType departmenttype = new DepartmentType();
     departmenttype.setDeptTypeDesc("MHEIRn49FJrqmvnWP9okQcHErhM8TrvHvA4xVYbmZOaooqdIoM");
     departmenttype.setDeptTypeHelp("quj75JcKFwiDi2cac46FSvAFY4qnSXMgtfWlXNHN7VQ6AkV4Jh");
     departmenttype.setDeptTypeIcon("mWm");
     DepartmentType DepartmentTypeTest = departmenttypeRepository.save(departmenttype);
     map.put("DepartmentTypePrimaryKey", departmenttype._getPrimarykey());
     DesignationType designationtype = new DesignationType();
     designationtype.setDesignatnTypeDesc("okSr58SyPai0NVPLncmgX2846dMvPhT2qmaW5KIefmf2uT9Wta");
     designationtype.setDesignatnTypeHelp("yyU3zL9diJoXvP7fiVrfJrIZYD2dUdaRH97iFb3N96UiUPyvV7");
     designationtype.setDesignatnTypeIcon("IbO");
     DesignationType DesignationTypeTest = designationtypeRepository.save(designationtype);
     map.put("DesignationTypePrimaryKey", designationtype._getPrimarykey());
     JobType jobtype = new JobType();
     jobtype.setJobDesc("WJWBYHfNhoJjG17aBLYWeArnhAXWPwq7AW9Yn55mJW7HtSsv3q");
     jobtype.setJobHelp("J2V4pMFtEC15k0R5luHqJqwzmWMsjBFGc7QLTMzY4CP7LFwyDI");
     jobtype.setJobIcon("Wj9");
     JobType JobTypeTest = jobtypeRepository.save(jobtype);
     map.put("JobTypePrimaryKey", jobtype._getPrimarykey());
     Visa visa = new Visa();
     visa.setVisaDesc("K1RQXmD7C8dnKlRx6oZ8ZSzjGcZy7I2KJJ6jnup631CipQbeXT");
     visa.setVisaHelp("JWMg8dyUQ93tV3GinXuH5gZA003qkCCkvyXjevSawyQALs8bKV");
     visa.setVisaIcon("pZY");
     Visa VisaTest = visaRepository.save(visa);
     map.put("VisaPrimaryKey", visa._getPrimarykey());
     empinformation.setCoreContacts(corecontacts);
     empinformation.setDeptTypeCode(
         (java.lang.String)
             DepartmentTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     empinformation.setDesignatnTypeCode(
         (java.lang.String)
             DesignationTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     empinformation.setJobCode(
         (java.lang.String) JobTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     empinformation.setpAN("duxpZG2XABXsir72FVNk52NC9dPodNtldw5BCcq3XLeGZtCwXA");
     empinformation.setReportingOfficer("fTe14QqSAeY5FIqD1UogSIMsK4FcXT2S5VUMsMXhszf8OnSp1Y");
     empinformation.setVisaCode(
         (java.lang.String) VisaTest._getPrimarykey()); /* ******Adding refrenced table data */
     EmpInformation EmpInformationTest = empinformationRepository.save(empinformation);
     map.put("EmpInformationPrimaryKey", empinformation._getPrimarykey());
     SalaryStructureFinancialWise salarystructurefinancialwise =
         new SalaryStructureFinancialWise();
     salarystructurefinancialwise.setBasic(12.34);
     salarystructurefinancialwise.setConvenceAllowance(12.34);
     salarystructurefinancialwise.setEducationalAllowance(12.34);
     salarystructurefinancialwise.setEmpId((java.lang.String) EmpInformationTest._getPrimarykey());
     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.setYear(4176);
     salarystructurefinancialwise.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     salarystructurefinancialwise.setEntityValidator(entityValidator);
     salarystructurefinancialwise.isValid();
     salarystructurefinancialwiseRepository.save(salarystructurefinancialwise);
     map.put(
         "SalaryStructureFinancialWisePrimaryKey", salarystructurefinancialwise._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());
   }
 }
Esempio n. 2
0
 @Test
 public void test1Save() {
   try {
     EmpInformation empinformation = new EmpInformation();
     CoreContacts corecontacts = new CoreContacts();
     corecontacts.setAge(117);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("sapephLshPmfXPzzbI1VEnDfDfqb2ZLmpWCWcFyrXiitv8MIDz");
     corecontacts.setFirstName("TQzWAzCLzvnM5nt0JmIvDSp8Cm3xSKmO3pMKFTIz8OLUFFlQWq");
     Gender gender = new Gender();
     gender.setGender("gj5NJk5xDT4LPGBe9X67EyFSBTQi4H8fJREAWewqGh8ckbtyXN");
     Gender GenderTest = genderRepository.save(gender);
     map.put("GenderPrimaryKey", gender._getPrimarykey());
     Language language = new Language();
     language.setAlpha2("Wz");
     language.setAlpha3("QYQ");
     language.setAlpha4("lUVT");
     language.setAlpha4parentid(1);
     language.setLanguage("0JRxGvNa24ccse2pG4DjO55hOZARtpb3Jp3l7leVoIZkpIOwkX");
     language.setLanguageDescription("jzwQWgndCs2D7Jofpk0iqQOE8XzDkhDsT4n5hAuvMxCJrqoN4Q");
     language.setLanguageIcon("NQYNhiXcuaYaY4BIwjAnsyGHuEUNB92rJjvpZywZHEi8rsXNPp");
     language.setLanguageType("FzLqRCL0LtBW5OdnwduwERxtz3IPHr1T");
     Language LanguageTest = languageRepository.save(language);
     map.put("LanguagePrimaryKey", language._getPrimarykey());
     Timezone timezone = new Timezone();
     timezone.setCities("AbJKciLqvogTZ9z2Hw9aqOXOC2jGgcKWgDXPdhnlVueYH9MS3I");
     timezone.setCountry("6f7EoVs8LegxUpVaVdi83rdRxJkD1ZM4GBMijx8jdROOMDRlFI");
     timezone.setGmtLabel("8v1C812eJV1yYJWljlyB6ZRR7hNjouAVIeFzywd6ixH6MuyNlI");
     timezone.setTimeZoneLabel("8U1bhj2vmAIrWsxoRlzVGRojKvDu8UR9YKjo9GEhV9Tazkrtjd");
     timezone.setUtcdifference(8);
     Timezone TimezoneTest = timezoneRepository.save(timezone);
     map.put("TimezonePrimaryKey", timezone._getPrimarykey());
     Title title = new Title();
     title.setTitles("pLW6zHDkvU6nK9wNyzRWZDCpCwE8BudjGmtP3NMbBKO2FLHaHB");
     Title TitleTest = titleRepository.save(title);
     map.put("TitlePrimaryKey", title._getPrimarykey());
     corecontacts.setAge(7);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("iGhONBIEPZ4ezS0giFB5ivMDhXZHnCQMVfMRFp2vxtE528eYL0");
     corecontacts.setFirstName("PkOQOD0BYoVRilhzZWiFFtb9rN88mnysRVewY2vvD40W4f2N3Q");
     corecontacts.setGenderId(
         (java.lang.String) GenderTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setLastName("PiNwfvN71BzqAHnD1tnD2ixYvFHjJOZe8OMxLNrSjE5t8a0M1k");
     corecontacts.setMiddleName("I5hjlIAUkfdm4fNheMZX1JWfMuJgjUURuUPsTvZxxnIhrEcl6z");
     corecontacts.setNativeFirstName("ZQBUpZIT7HoCWeWxUxOK2xJLpw871BM0IdCGDM1BDDFp0EAw0A");
     corecontacts.setNativeLanguageCode(
         (java.lang.String) LanguageTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setNativeLastName("1rV7jfvPhZpT65TmkCGUnq5BEoniiIRH2uOm2ZPOo3E4nTevLe");
     corecontacts.setNativeMiddleName("PkqnS5bAdaDQMiMtCxgQNeoZWU4JKMYX3eFMtErU8yDzFRSMnW");
     corecontacts.setNativeTitle("kqtp9WYdUjHGgMrOD11lTvEwadASZKKMIB75sMI3Z2vepe18ds");
     corecontacts.setPhoneNumber("0umIFhseyqZprwU7pvRW");
     corecontacts.setTimeZone(
         (java.lang.String) TimezoneTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setTitleId(
         (java.lang.String) TitleTest._getPrimarykey()); /* ******Adding refrenced table data */
     DepartmentType departmenttype = new DepartmentType();
     departmenttype.setDeptTypeDesc("e2sJc3l5P47gJg6QTUtU1fy7jgKxkOMFL6IB78a30uN55bztus");
     departmenttype.setDeptTypeHelp("tzJGIXEG05kLCucFUPRFv450Fe9x8KVzsncvP2swj8xPs1A9vP");
     departmenttype.setDeptTypeIcon("aB2");
     DepartmentType DepartmentTypeTest = departmenttypeRepository.save(departmenttype);
     map.put("DepartmentTypePrimaryKey", departmenttype._getPrimarykey());
     DesignationType designationtype = new DesignationType();
     designationtype.setDesignatnTypeDesc("CM3mr1qxQOOmAO1ZNHibBXVeJ6rnEz6LdQI6loLKJxg9STNGmT");
     designationtype.setDesignatnTypeHelp("YcuLU8SbnH1vF86oskHK48VJ56BsirqSO6dOpZRn9AMzq4JQQy");
     designationtype.setDesignatnTypeIcon("53w");
     DesignationType DesignationTypeTest = designationtypeRepository.save(designationtype);
     map.put("DesignationTypePrimaryKey", designationtype._getPrimarykey());
     JobType jobtype = new JobType();
     jobtype.setJobDesc("7327zQ2ryMP9Gj7AHC0d3nt4VAQmMnoE9tsarmQbrUnKMFtA8r");
     jobtype.setJobHelp("W5r0UxT8sU3yWXwtjeWMsjw49tzump4zcBqrpWLbaCXTVIyXkV");
     jobtype.setJobIcon("L3r");
     JobType JobTypeTest = jobtypeRepository.save(jobtype);
     map.put("JobTypePrimaryKey", jobtype._getPrimarykey());
     Visa visa = new Visa();
     visa.setVisaDesc("M0mB5XSbJ0EydNlZ1J6hlRI8OxSxeGSEsaaz4pMwA1YlNVPxsG");
     visa.setVisaHelp("WtZVP26Zfv4zhnSmw6FPjnco1IT1ZoSMzSXXFofwIMmB5UoXkh");
     visa.setVisaIcon("NbC");
     Visa VisaTest = visaRepository.save(visa);
     map.put("VisaPrimaryKey", visa._getPrimarykey());
     empinformation.setCoreContacts(corecontacts);
     empinformation.setDeptTypeCode(
         (java.lang.String)
             DepartmentTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     empinformation.setDesignatnTypeCode(
         (java.lang.String)
             DesignationTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     empinformation.setJobCode(
         (java.lang.String) JobTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     empinformation.setpAN("c6IZciK197byxpgmnPxj9zOqBrLexZaudFLHfpZpXx3mZL4KBw");
     empinformation.setReportingOfficer("wuo7YSx1PrOScpTaaTjvqI5zfdtVygYGsevfW0ExAN09crJwlU");
     empinformation.setVisaCode(
         (java.lang.String) VisaTest._getPrimarykey()); /* ******Adding refrenced table data */
     EmpInformation EmpInformationTest = empinformationRepository.save(empinformation);
     map.put("EmpInformationPrimaryKey", empinformation._getPrimarykey());
     LeaveRequest leaverequest = new LeaveRequest();
     leaverequest.setCasualLeave(3);
     leaverequest.setEmpId((java.lang.String) EmpInformationTest._getPrimarykey());
     leaverequest.setFromDate(new java.sql.Date(123456789));
     leaverequest.setMaternityLeave(3);
     leaverequest.setPrivilege(5);
     leaverequest.setSickLeave(2);
     leaverequest.setToDate(new java.sql.Date(123456789));
     leaverequest.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     leaverequest.setEntityValidator(entityValidator);
     leaverequest.isValid();
     leaverequestRepository.save(leaverequest);
     map.put("LeaveRequestPrimaryKey", leaverequest._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());
   }
 }