@Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("IgjvgrUfs84sjzWopSfdgLdPdbIRn3Qz");
     country.setCapitalLatitude(5);
     country.setCapitalLongitude(1);
     country.setCountryCode1("ntp");
     country.setCountryCode2("Xzp");
     country.setCountryFlag("zsX5LRkkQHGDKA0J4jBVwJ852MCEdoP7e8EOS1iW2BIuhos1Ec");
     country.setCountryName("FzrugbwLGLsxY3NX0Yx8UOGSodiWe5nKH7s1EnXIDAnDuSeFqH");
     country.setCurrencyCode("VOY");
     country.setCurrencyName("UN41bj6Ud3jukaJL3Bd7BUdmVq8lUI44UJDHjt5RlPXlujBQOa");
     country.setCurrencySymbol("YWs3o5cbPCUouFDipTUfRtmLZnP4aZgu");
     country.setIsoNumeric(5);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     Currency currency = new Currency();
     currency.setCountryId((java.lang.String) CountryTest._getPrimarykey());
     currency.setCurrencyCode("JHdx71fl6fNcUr5trQNWlCv6H91QDTtWaQL1NFXVOdwDvWNcQJ");
     currency.setUnicodeDecimal("Ov2aQMMWABkqqD9PYgcKXVxuhqAWGzexbat9yDaLQ2IAaMnLlv");
     currency.setUnicodeHex("Bkdhy6EjSRtxU0AddQvoYwqC9rFXSVLSOYBA7bktg7xsP7uHdd");
     currency.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     currency.setEntityValidator(entityValidator);
     currency.isValid();
     currencyRepository.save(currency);
     map.put("CurrencyPrimaryKey", currency._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     AppMenus appmenus = new AppMenus();
     appmenus.setAppId("N2eA8c1r0YVRXHsQUAWJgFrIluzYrTZcVtECTUhSEi235jeffP");
     appmenus.setAppType(1);
     appmenus.setMenuAccessRights(5);
     appmenus.setMenuAction("sbSvOYmynmDZcnkMAMB2wiHn5PGsZFPMdim5ZcxsPtzgjWaQuf");
     appmenus.setMenuCommands("RZ2sYNLRgPrmzBALAkfW4mlo1QImpix69t5LUvjmjA04MJsVEE");
     appmenus.setMenuDisplay(true);
     appmenus.setMenuHead(true);
     appmenus.setMenuIcon("dIhKG6nZhNfzvp7I1fwORk50OIDJTz0oxuHU9kQaQtftyHMrxj");
     appmenus.setMenuLabel("DBg4R4rAxECYq0XB4Ao1CvCizSToxoP7o8ZczBgnNsiV3qJjv6");
     appmenus.setMenuTreeId("MAAJBHbyG16zpAorop1GsRDlDtrn5rFRQIrz9QRT3ykHKcvzSt");
     appmenus.setRefObjectId("VUfQW6QgMvqee7GWmBjikp2eRROCOnStZ6AUf4CsmJQedRjtM1");
     appmenus.setUiType("R7K");
     appmenus.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appmenus.setEntityValidator(entityValidator);
     appmenus.isValid();
     appmenusRepository.save(appmenus);
     map.put("AppMenusPrimaryKey", appmenus._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
Exemplo n.º 3
0
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("YbOPjn2u508Er4hSXSO1hULI09SMDn9o");
     country.setCapitalLatitude(9);
     country.setCapitalLongitude(4);
     country.setCountryCode1("2aI");
     country.setCountryCode2("LK4");
     country.setCountryFlag("SvHj7x1Ni82E0xIXPvXoyQcZsuIyoDpJfye0QOe9JAEQjLDhbx");
     country.setCountryName("Wp1CWUIxybGRYpLXLjFnlcbU0jn22QaNG8hcWXJtx5W5JrLsL8");
     country.setCurrencyCode("0VA");
     country.setCurrencyName("JF5cR1jh7Vi8z81vhe3htipojisDszOxFBKYhD0kyqWRfThLaC");
     country.setCurrencySymbol("0bRJ4VAN65vAuYxzJn8XzV7zgWAWEyNP");
     country.setIsoNumeric(10);
     country.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     country.setEntityValidator(entityValidator);
     country.isValid();
     countryRepository.save(country);
     map.put("CountryPrimaryKey", country._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());
   }
 }
Exemplo n.º 4
0
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("cSNqLCWNde1Opv6cY1qG7Y3E1IWVUCmG");
     country.setCapitalLatitude(9);
     country.setCapitalLongitude(2);
     country.setCountryCode1("pOj");
     country.setCountryCode2("0le");
     country.setCountryFlag("rb4iNFmDh8gqaLOydgscCUlkqCmEOPa14ujeu2AZLMiTuow7wb");
     country.setCountryName("lwZFkfQ4W2ls00581hTUcf1m9EZqmnRgg2IuaWGsnSW4aCj9Fo");
     country.setCurrencyCode("gfk");
     country.setCurrencyName("HHNqFANATERwrI9hQUBQwMQrVkxkJymDg5D8I9MwfpJDknHkZ2");
     country.setCurrencySymbol("R2HCOjrkel1UBziW9X5jjoNlSsbq8z7t");
     country.setIsoNumeric(0);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     State state = new State();
     state.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     state.setStateCapital("k0iFoQpliMCUh6X4B19sBeQNNNNlqZE5iZSsV6Rr5Z3LwXn1Z0");
     state.setStateCapitalLatitude(7);
     state.setStateCapitalLongitude(1);
     state.setStateCode(1);
     state.setStateCodeChar2("gK5sHyJJx6sg9cItt2cmc91dFEEC23gp");
     state.setStateCodeChar3("vT9EF2GXPqUykPiWlnkrQCgHMGeermIu");
     state.setStateDescription("iS3RXNVZHpfIPOgJFic35GJ5rQUkruyCKkwvvnmf1yC9ItlM7Z");
     state.setStateFlag("ws09AzdNYCplj58WrzyyZAT4ZxI3OtiBrnSXNw4pIMUzlpOKAM");
     state.setStateName("qClaEaOhZmPblhAxMyZ2PN13nP2ZtxyuoxMDclYw0tn2E9JbvQ");
     State StateTest = stateRepository.save(state);
     map.put("StatePrimaryKey", state._getPrimarykey());
     Region region = new Region();
     region.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     region.setRegionCode1(0);
     region.setRegionCodeChar2("zNhOYWX0ebFxpkNApaGv8ewYuhis6aUH");
     region.setRegionDescription("YuD7Dvra1Un7T8AntaHGkpGApeKDsDph23S4GZLO51zIYzkGXp");
     region.setRegionFlag("VwXRhWZE4eHTHv5K2OAEUvg7yXl4bRJsS4hZrCox8O2mspzj6g");
     region.setRegionLatitude(1);
     region.setRegionLongitude(7);
     region.setRegionName("t5rbGRdmH7rI3xJ3XYAm3CNZP1VEEoMMuNmaROyltO5EDgLlcD");
     region.setStateId((java.lang.String) StateTest._getPrimarykey());
     region.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     region.setEntityValidator(entityValidator);
     region.isValid();
     regionRepository.save(region);
     map.put("RegionPrimaryKey", region._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());
   }
 }
Exemplo n.º 5
0
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("uPASVEmsnXpJogYXQM8YTTHgGVTedHTP");
     country.setCapitalLatitude(1);
     country.setCapitalLongitude(4);
     country.setCountryCode1("3Gm");
     country.setCountryCode2("hdA");
     country.setCountryFlag("oOX0EB7WoOp8QZlCKh49m2GGJTIRn74tlvipMK5spINOCGJMJz");
     country.setCountryName("90cmWqA8N29B4cK4rakjdVTIdExw7qBBl8LfNWe5rdH3RgsImp");
     country.setCurrencyCode("dHb");
     country.setCurrencyName("1Izq8qH3Ze5rxTN1zAPriEihHg1PJK8SVgp9jG9H6IdFEX2z1h");
     country.setCurrencySymbol("7OYelMgo4L8MUwYCntkR0bIeC7XGvrOP");
     country.setIsoNumeric(2);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     State state = new State();
     state.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     state.setStateCapital("n2eJO2aGImIsvrBmSzTJ9S9DPCCiDAHxE30BzrOdPSVsSK3LGj");
     state.setStateCapitalLatitude(2);
     state.setStateCapitalLongitude(4);
     state.setStateCode(0);
     state.setStateCodeChar2("TH2om1Hjj3RvoxRwjPtOJ80OzGuXNu6S");
     state.setStateCodeChar3("oELUcD7Dg4iAAaMYa8dFPzoFzFiN9FTo");
     state.setStateDescription("MeFkmSL6AJtEagoOnCl1nM10vGWTKAhqqje2bEU7fG9GC3mhpd");
     state.setStateFlag("lgOZ6QNNAzBGbWqb7BPVxgRgcuVxFfM4VpveeCj44zR2UFehAN");
     state.setStateName("LAilOMkqq6fCJq5mVhK5dXNTh2UsuIZBO4DzOwMGce6H9J71i1");
     State StateTest = stateRepository.save(state);
     map.put("StatePrimaryKey", state._getPrimarykey());
     City city = new City();
     city.setCityCode(0);
     city.setCityCodeChar2("gi3qQcitMayrYRT84gaLNkMitJLtWCnG");
     city.setCityDescription("nHaaBJFNk5O0PSmrIfj7MIFbYMd4wepetRWL0bwPjlQYOL1EKi");
     city.setCityFlag("7Sea35bKK6DG3hVBVyTax9dSzt4t8u7HIkANCYELGFfOPhN3Nq");
     city.setCityLatitude(1);
     city.setCityLongitude(0);
     city.setCityName("Dzdo6uhGiThON5aUz7acFXegRTeGvhe7RGVBr7PITE30sc1LX4");
     city.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     city.setStateId((java.lang.String) StateTest._getPrimarykey());
     city.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     city.setEntityValidator(entityValidator);
     city.isValid();
     cityRepository.save(city);
     map.put("CityPrimaryKey", city._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
Exemplo n.º 6
0
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("pFupc1e01pvHk0ZWifxZR9Um9UMKldxg");
     country.setCapitalLatitude(7);
     country.setCapitalLongitude(8);
     country.setCountryCode1("CKK");
     country.setCountryCode2("gH9");
     country.setCountryFlag("GuYc2aupSQvVS5vAtqiZ6kTvukJ074NgjIMUhobob2RMPsaTnW");
     country.setCountryName("LzW0ScflbwrtS6mcyn6guSbNQtxE0lLVhHttSl0PB35hm8KG2J");
     country.setCurrencyCode("T0p");
     country.setCurrencyName("AVS5a8rGCPSPnlt1qakVUB3rOUQF1o6nEphLinc2rSjRmW0aFX");
     country.setCurrencySymbol("JsWBX42zy2dtIQA0KEe4Gm3U6oukBTOB");
     country.setIsoNumeric(4);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     State state = new State();
     state.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     state.setStateCapital("WX3A3zkQXuTAkOTijHDiDCGuPJdkAMf9nTRjSolyb5G6C6nCpp");
     state.setStateCapitalLatitude(11);
     state.setStateCapitalLongitude(2);
     state.setStateCode(1);
     state.setStateCodeChar2("HT5r8Z5NZ0quFWFMddGDULfhHC3oZ5WL");
     state.setStateCodeChar3("ahVLWW0MKdzUAE4XbQ1zPHKaty6AOb4G");
     state.setStateDescription("Ngr21FHL8Wg0y3yxfNAFgOMZOuMKeeMNJogUAiA0HYlcfaa76f");
     state.setStateFlag("14ZaXQueKYAQYHwXfEnHiWy0F2mBg0cO3WdFZZ7ABM26mIXRdw");
     state.setStateName("wTXOLlA2T8JXKhcEfGhXhqiBmJpx7jZ102xZGTHJkqNgXkfcFg");
     State StateTest = stateRepository.save(state);
     map.put("StatePrimaryKey", state._getPrimarykey());
     Region region = new Region();
     region.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     region.setRegionCode1(3);
     region.setRegionCodeChar2("l7O3bcDzpvLgH6YW4B3dV8yHX5Ande5E");
     region.setRegionDescription("pLGfdNzRikelUdyCJBdNvSmSK4r6mDGEwubCFSjaNK95b34g2f");
     region.setRegionFlag("o69Ph5H3AtkfF4E4FY5mrL83d6gHWu4Hf02uNH1RyIutAMeIhh");
     region.setRegionLatitude(10);
     region.setRegionLongitude(8);
     region.setRegionName("sURdxBqocpdP1Z9B2rw8bug9y8xNI0xVoHxUgefUOiQ1aHOVdO");
     region.setStateId((java.lang.String) StateTest._getPrimarykey());
     region.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     region.setEntityValidator(entityValidator);
     region.isValid();
     regionRepository.save(region);
     map.put("RegionPrimaryKey", region._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());
   }
 }
Exemplo n.º 7
0
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("O67y8JA4cq21CIhG02CtENkMUApstMgX");
     country.setCapitalLatitude(9);
     country.setCapitalLongitude(7);
     country.setCountryCode1("NXY");
     country.setCountryCode2("c0C");
     country.setCountryFlag("n0wGMg5rtJrqPZcb13ZeNJZ35JxtovByhzKd1cOFsEq8FxzoSP");
     country.setCountryName("Mo5wLwjQwzVmQ12zAzvqHTRouSKc5UtKa0EMIuSRcz94DvQtfW");
     country.setCurrencyCode("vhA");
     country.setCurrencyName("JWQYJnymCE5TmwtMLAQojJiz9cZAmEm756abSVQ3wSMOKKCJWd");
     country.setCurrencySymbol("nUeZfjgk1Huj6SmVmmXnIBM0ksPfOpXs");
     country.setIsoNumeric(0);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     State state = new State();
     state.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     state.setStateCapital("4RXrfXSwQ4jeRNkPwZHTXf9pJUrOCS0TXg8Ru7dLYpqIVApAY5");
     state.setStateCapitalLatitude(10);
     state.setStateCapitalLongitude(0);
     state.setStateCode(0);
     state.setStateCodeChar2("PFyvmDjV5BkTdToVVeDmlTQRQSLMyuWt");
     state.setStateCodeChar3("jJQ0pGMxhlQyFIBT7r4Ah2yjHGlHNqcu");
     state.setStateDescription("9SCAwqila79ffAwInRqPWAilLtsjzPLT0Sn9WF90hB2wVSVCOq");
     state.setStateFlag("v9CyKDaGX7VbgItZkVfo1TOiHgAiTTGpWszOOCPp2TzEXaAmXg");
     state.setStateName("BRYJgDGDMiahbdn82ovgDfs7lCPCw2uwniarnWGALqRLUOX6Pb");
     State StateTest = stateRepository.save(state);
     map.put("StatePrimaryKey", state._getPrimarykey());
     City city = new City();
     city.setCityCode(3);
     city.setCityCodeChar2("0Ziz6i3ktBouhxSxo9FUAipy7FQw4CLo");
     city.setCityDescription("gx2biID8feMjUa9mVbZpSsZgPsTJdggtdbGFS1QJr7CQEynE25");
     city.setCityFlag("DOpisKgPFBJZ1UzYp3e6aujA43FB3c2sUpvSRAmlviC9OjnydQ");
     city.setCityLatitude(5);
     city.setCityLongitude(1);
     city.setCityName("K73xpCfdVoIdGTEoKrZn0IP6Ryg24eq3CfFeBTXXhbuXqHDAwz");
     city.setCountryId(
         (java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
     city.setStateId((java.lang.String) StateTest._getPrimarykey());
     city.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     city.setEntityValidator(entityValidator);
     city.isValid();
     cityRepository.save(city);
     map.put("CityPrimaryKey", city._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     ThirdEn thirden = createThirdEn(true);
     thirden.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     thirden.isValid();
     thirdenRepository.save(thirden);
     map.put("ThirdEnPrimaryKey", thirden._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     Country country = createCountry(true);
     country.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     country.isValid();
     countryRepository.save(country);
     map.put("CountryPrimaryKey", country._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());
   }
 }
Exemplo n.º 10
0
 @Test
 public void test1Save() {
   try {
     Roles roles = new Roles();
     roles.setRoleDescription("xJve90mRmx40aZOEFQVZGBjxXS6EmVeNRb0JRVv43GB2FpzabG");
     roles.setRoleHelp("iCO03VJqt8etBLfWDiSr5o4RPUFlOAHrGJF7CmfQCBC5T5hiai");
     roles.setRoleIcon("k1F6wPu73ABw1B5KpP9yCaweBLv3ebnk5oce83yW27h1ASJJBt");
     roles.setRoleName("WU7Ifu0xggOx2rEEGKhEjNqexS4T9rQqEVSEHUJPxS7VFt44ZQ");
     java.util.List<RoleMenuBridge> listOfRoleMenuBridge =
         new java.util.ArrayList<RoleMenuBridge>();
     RoleMenuBridge rolemenubridge = new RoleMenuBridge();
     rolemenubridge.setIsExecute(true);
     rolemenubridge.setIsRead(true);
     rolemenubridge.setIsWrite(true);
     AppMenus appmenus = new AppMenus();
     appmenus.setAppId("C2wTjDWngc2XErBNBrrrpFWr6tMrvBoeEaDCjUvHptmTjQCmC9");
     appmenus.setAppType(2);
     appmenus.setAutoSave(true);
     appmenus.setMenuAccessRights(11);
     appmenus.setMenuAction("dU75QtYfEWyk94yfhQC0ZSalcquLuVSAGjHr50bID5kjcGCx1h");
     appmenus.setMenuCommands("qD9b64KJCdW61ZxB0fEKBikHzq5JDTdRq6ImgUT7ffD9zGqPAn");
     appmenus.setMenuDisplay(true);
     appmenus.setMenuHead(true);
     appmenus.setMenuIcon("H6OWN8P2fnDKlpEZvGPLHheCpQS4XY1vnsTgpfxMOmkNHhn5jm");
     appmenus.setMenuLabel("sq1OWxITiBq5z3JaPCWvkNEjXiP2sLZPQev0DGnUf9JeYHyS24");
     appmenus.setMenuTreeId("GrmuKlO5ZLt7bwhxRQvqyEGCQoaOwky89yALp8UdhmpsenSlLu");
     appmenus.setRefObjectId("HwLNzEPs0RJZmRmQ3NcfcmfG9tMxvqpa2Wt1sIO1FioB5Om4L7");
     appmenus.setUiType("kOy");
     AppMenus AppMenusTest = appmenusRepository.save(appmenus);
     map.put("AppMenusPrimaryKey", appmenus._getPrimarykey());
     rolemenubridge.setIsExecute(true);
     rolemenubridge.setIsRead(true);
     rolemenubridge.setIsWrite(true);
     rolemenubridge.setMenuId((java.lang.String) AppMenusTest._getPrimarykey());
     rolemenubridge.setRoles(roles);
     listOfRoleMenuBridge.add(rolemenubridge);
     roles.addAllRoleMenuBridge(listOfRoleMenuBridge);
     roles.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     roles.setEntityValidator(entityValidator);
     roles.isValid();
     rolesRepository.save(roles);
     map.put("RolesPrimaryKey", roles._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     BloodGroup bloodgroup = new BloodGroup();
     bloodgroup.setBloodGroup("P5JygrLzy6jWoQs9pJbXDVlM4YhABxeaiLH5TaNOTCUeWaQPkh");
     bloodgroup.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     bloodgroup.setEntityValidator(entityValidator);
     bloodgroup.isValid();
     bloodgroupRepository.save(bloodgroup);
     map.put("BloodGroupPrimaryKey", bloodgroup._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());
   }
 }
Exemplo n.º 12
0
 @Test
 public void test1Save() {
   try {
     Roles roles = new Roles();
     roles.setRoleDescription("HZB6NpwntavuY85ulLxNClo2h2wdOwXbYXvlH0tHK5yfufUgrt");
     roles.setRoleHelp("5hWm5pieoyvOMtpiA91wNVYQ7AB53GIHeFDOADrJdhNb5rUFqn");
     roles.setRoleIcon("xfRi413ELOp9f8o0ebrTTUbQCmZFFOi0xPoA13WAUvsmd56snS");
     roles.setRoleName("T9rfQwEGrSCjeLT1NQsI8ZIv13uZug2lg9NgR35HtytJJxmlbd");
     java.util.List<RoleMenuBridge> listOfRoleMenuBridge =
         new java.util.ArrayList<RoleMenuBridge>();
     RoleMenuBridge rolemenubridge = new RoleMenuBridge();
     rolemenubridge.setIsExecute(true);
     rolemenubridge.setIsRead(true);
     rolemenubridge.setIsWrite(true);
     AppMenus appmenus = new AppMenus();
     appmenus.setAppId("Ec5qpVOXEEilvnMnn4CfQINjIkHhqJvIgwFELqgedsBAA1yls3");
     appmenus.setAppType(1);
     appmenus.setMenuAccessRights(8);
     appmenus.setMenuAction("652EKpZyhKQ4IsMc6R3qAcWHlW5bFN7RfmtjiESHoghR03lY6k");
     appmenus.setMenuCommands("r4BMAVJsZ84IixDKVWvk8o2aBcu4ThpgMsiA5hNf03gqvpjfe4");
     appmenus.setMenuDisplay(true);
     appmenus.setMenuHead(true);
     appmenus.setMenuIcon("Wi1LtlHEcFexdKj56JXw1zfFUlKlHjMqFQNizpvU3inu81Wy4Q");
     appmenus.setMenuLabel("AIrvbRhLercHDQlyr8wr1RNcIj2noNnuhvLAibiKaCS6ofklqf");
     appmenus.setMenuTreeId("OPpQtJuwoF4MM6vTJksJczuMnWg0KweGrjFbBqWNssG9C8SIho");
     appmenus.setRefObjectId("CAwswVw9L30lTryo56zmRsZFyGo5kPawVv11lOTwnj6NJQyR2g");
     appmenus.setUiType("SDw");
     AppMenus AppMenusTest = appmenusRepository.save(appmenus);
     map.put("AppMenusPrimaryKey", appmenus._getPrimarykey());
     rolemenubridge.setIsExecute(true);
     rolemenubridge.setIsRead(true);
     rolemenubridge.setIsWrite(true);
     rolemenubridge.setMenuId((java.lang.String) AppMenusTest._getPrimarykey());
     rolemenubridge.setRoles(roles);
     listOfRoleMenuBridge.add(rolemenubridge);
     roles.addAllRoleMenuBridge(listOfRoleMenuBridge);
     roles.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     roles.setEntityValidator(entityValidator);
     roles.isValid();
     rolesRepository.save(roles);
     map.put("RolesPrimaryKey", roles._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());
   }
 }
Exemplo n.º 13
0
 @Test
 public void test1Save() {
   try {
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("KBqyXqN9vA7jkwNfXBUIHufPNQBBcBYMl6k9CXXIpIEuduEDlS");
     useraccessdomain.setDomainHelp("XdjfsJIcPHhKmzt26Vm14mOWjP16ppJCgKaUWHwqH8Qv5dLRSG");
     useraccessdomain.setDomainIcon("8kZIOD4w8S5agSoosuDXON7hgj3dMbkzSGbZqNS7PhHBEwY36u");
     useraccessdomain.setDomainName("9wNkrrB4RSF6u4tNC489uPjg7UYAeviFnxqPPtFtqeFE18nEOH");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     UserAccessDomain UserAccessDomainTest = useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._getPrimarykey());
     UserAccessLevel useraccesslevel = new UserAccessLevel();
     useraccesslevel.setLevelDescription("RO0kpPYvWvUBhtmXGQD30TegZCYpsyEXhJoOULObuvOnFhlsW3");
     useraccesslevel.setLevelHelp("y5lfxTmezxUVqVzE9DA5I5HhJBmoMlc8Y5k4qNXjEYUpD7TcJX");
     useraccesslevel.setLevelIcon("zkxo1gyVjR7J7QhgtekZhguk4FYIKrz5PNxTGgNqkLTkzbCn4C");
     useraccesslevel.setLevelName("qoc0AMfJpzrlmUL1se1PxT0kjlVPm9ZHq5joQBQqf4FOnIeMvh");
     useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
     UserAccessLevel UserAccessLevelTest = useraccesslevelRepository.save(useraccesslevel);
     map.put("UserAccessLevelPrimaryKey", useraccesslevel._getPrimarykey());
     User user = new User();
     user.setAllowMultipleLogin(0);
     user.setChangePasswordNextLogin(1);
     user.setGenTempOneTimePassword(1);
     user.setIsDeleted(0);
     user.setIsLocked(1);
     user.setLastPasswordChangeDate(new java.sql.Timestamp(123456789));
     user.setMultiFactorAuthEnabled(0);
     user.setPasswordAlgo("DvVnyGY3mzlNf0iveyXKPah57bh8W1qwmc43hPEdwdo07ZJ0Sp");
     user.setPasswordExpiryDate(new java.sql.Timestamp(123456789));
     user.setSessionTimeout(895);
     user.setUserAccessCode(5);
     user.setUserAccessDomainId(
         (java.lang.String)
             UserAccessDomainTest._getPrimarykey()); /* ******Adding refrenced table data */
     user.setUserAccessLevelId((java.lang.String) UserAccessLevelTest._getPrimarykey());
     user.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     user.setEntityValidator(entityValidator);
     user.isValid();
     userRepository.save(user);
     map.put("UserPrimaryKey", user._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());
   }
 }
Exemplo n.º 14
0
 @Test
 public void test1Save() {
   try {
     IssuePriority issuepriority = new IssuePriority();
     issuepriority.setIssuePriorityDesc("82XaKjp7af1tu5ayYVJJR3WyVj7RP5Ng0tP2MDmEMBTIxuxKla");
     issuepriority.setIssuePriorityName("3wu59oGjczO0BDGMG3mO0bskbWxDArRkH9KlffzjcRJ6mcJHcO");
     issuepriority.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     issuepriority.setEntityValidator(entityValidator);
     issuepriority.isValid();
     issuepriorityRepository.save(issuepriority);
     System.setProperty("IssuePriorityPrimaryKey", issuepriority._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test1Save() {
   try {
     AppCustomerType appcustomertype = new AppCustomerType();
     appcustomertype.setCustomerType("5VaYVMoKIl7SVr5GmjpzA2blvnjI0OqqUvR2jjIiPllyqrVOSF");
     appcustomertype.setDefaults(0);
     appcustomertype.setSequenceId(2147483647);
     appcustomertype.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appcustomertype.setEntityValidator(entityValidator);
     appcustomertype.isValid();
     appcustomertypeRepository.save(appcustomertype);
     map.put("AppCustomerTypePrimaryKey", appcustomertype._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     CommunicationGroup communicationgroup = new CommunicationGroup();
     communicationgroup.setCommGroupDescription(
         "373DuHEiNGcOCKVQnwiSDc8n9h9NJlBx4NlWtfN7ES4z890Z7Q");
     communicationgroup.setCommGroupName("1BOsYLHQH4Et4tVi3HLUH4ZW5TIQAwkIQAxbG3A0ovO1NZ6gRe");
     communicationgroup.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     communicationgroup.setEntityValidator(entityValidator);
     communicationgroup.isValid();
     communicationgroupRepository.save(communicationgroup);
     map.put("CommunicationGroupPrimaryKey", communicationgroup._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test1Save() {
   try {
     CommunicationGroup communicationgroup = new CommunicationGroup();
     communicationgroup.setCommGroupDescription(
         "gXOGePzUBN7EpbSVBEj5eVrno74mWX3Z9Rze70ulmqVyoUgxHf");
     communicationgroup.setCommGroupName("Yks7BUYuluF53MjhJG30vy9wNWhRKQFD40hXKJN0ivjm8UjKRS");
     communicationgroup.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     communicationgroup.setEntityValidator(entityValidator);
     communicationgroup.isValid();
     communicationgroupRepository.save(communicationgroup);
     map.put("CommunicationGroupPrimaryKey", communicationgroup._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     CommunicationGroup communicationgroup = new CommunicationGroup();
     communicationgroup.setCommGroupDescription(
         "ZkH2cJTLgVlgeXzBPuMLJDDjeRX5XbbMsceMpXwdgaX2iNmE7K");
     communicationgroup.setCommGroupName("gr7XupPhNgaCi6TrfyW076hhrJSuQzolAUERglMQM8vf814BoW");
     communicationgroup.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     communicationgroup.setEntityValidator(entityValidator);
     communicationgroup.isValid();
     communicationgroupRepository.save(communicationgroup);
     map.put("CommunicationGroupPrimaryKey", communicationgroup._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     AppCustomerType appcustomertype = new AppCustomerType();
     appcustomertype.setCustomerType("odE0FdgyOGJcKSYNwqUUoRKn2tyiLwKncCtxpAI5gTDNrVTqnG");
     appcustomertype.setDefaults(1);
     appcustomertype.setSequenceId(2147483647);
     appcustomertype.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appcustomertype.setEntityValidator(entityValidator);
     appcustomertype.isValid();
     appcustomertypeRepository.save(appcustomertype);
     System.setProperty("AppCustomerTypePrimaryKey", appcustomertype._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test1Save() {
   try {
     AddressType addresstype = new AddressType();
     addresstype.setAddressType("8P6pnOc7c3U208sBDBpw7ZJynZPginggQ77arJXc65xauXHbjh");
     addresstype.setAddressTypeDesc("AoifH1KwQh1jzxktbIUYzNbr4XxHnzwFxPXalnRnfJ6jC9PRKY");
     addresstype.setAddressTypeIcon("8xFEwKaxtIGJXbqFAiuxcw3OffBvYvPT1ZD0HPR03DMjTuqpIa");
     addresstype.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     addresstype.setEntityValidator(entityValidator);
     addresstype.isValid();
     addresstypeRepository.save(addresstype);
     map.put("AddressTypePrimaryKey", addresstype._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     AppCustomerType appcustomertype = new AppCustomerType();
     appcustomertype.setCustomerType("9V0MKayjd0dt3aqUVjHB46Xo1SEPa4DwbO3hSgCNpOA41TlMLH");
     appcustomertype.setDefaults(0);
     appcustomertype.setSequenceId(2147483647);
     appcustomertype.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appcustomertype.setEntityValidator(entityValidator);
     appcustomertype.isValid();
     appcustomertypeRepository.save(appcustomertype);
     map.put("AppCustomerTypePrimaryKey", appcustomertype._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     AppCustomerType appcustomertype = new AppCustomerType();
     appcustomertype.setCustomerType("PyjMKfcFwptNCEFwOiMkdp8zixg8NQq3TmYbO73rARxBaXv4WS");
     appcustomertype.setDefaults(0);
     appcustomertype.setSequenceId(2147483647);
     appcustomertype.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appcustomertype.setEntityValidator(entityValidator);
     appcustomertype.isValid();
     appcustomertypeRepository.save(appcustomertype);
     map.put("AppCustomerTypePrimaryKey", appcustomertype._getPrimarykey());
   } catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
     org.junit.Assert.fail(e.getMessage());
   } catch (java.lang.Exception e) {
     e.printStackTrace();
   }
 }
 @Test
 public void test1Save() {
   try {
     SurveyQuestionGroup surveyquestiongroup = new SurveyQuestionGroup();
     surveyquestiongroup.setSurveyQuestionGroupDesc(
         "AZAGltIgTh84ncvYqbPwSNMq6pHlvpWTLkZd2HHDDEJo3D9E5a");
     surveyquestiongroup.setSurveyQuestionGroupName(
         "NRdcVr4HUvoTMdJKnAJ3kCGBI8Sv3HRGbLO3KQboTuaB2DLFMG");
     surveyquestiongroup.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     surveyquestiongroup.setEntityValidator(entityValidator);
     surveyquestiongroup.isValid();
     surveyquestiongroupRepository.save(surveyquestiongroup);
     map.put("SurveyQuestionGroupPrimaryKey", surveyquestiongroup._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());
   }
 }
Exemplo n.º 24
0
 @Test
 public void test1Save() {
   try {
     Question question = new Question();
     question.setLevelid(3);
     question.setQuestion("GWXmS2Ilnva4NNX99T95sgHEs1BWPxeT57R9uq783VVAv3UnGI");
     question.setQuestionDetails("J");
     question.setQuestionIcon("IudAFp6OwfyHwuoVYYRZA35bqqsRjYCtCeCsFkJXxvRWFJ7OgI");
     question.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     question.setEntityValidator(entityValidator);
     question.isValid();
     questionRepository.save(question);
     map.put("QuestionPrimaryKey", question._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());
   }
 }
Exemplo n.º 25
0
 @Test
 public void test1Save() {
   try {
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("HUYjjtd9OAARtWGM6Fqvq7GktBE1WCLxmHI9TNWDPHmhQfAo2k");
     useraccessdomain.setDomainHelp("KiadRixbosF98XuPD37azf0UoElOJ01rt988hn0L2i9kWVFZeh");
     useraccessdomain.setDomainIcon("hYinnvZTBQwCUFcMYHEE75MZOAcoGFzfW1VmRIQgGnjoDUyCIh");
     useraccessdomain.setDomainName("Wnuub4zWKEnZmqoWuOajV2rdarYrsepPHad7CDYGmrEjbJXlT5");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     useraccessdomain.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     useraccessdomain.setEntityValidator(entityValidator);
     useraccessdomain.isValid();
     useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("SplS2CsG7url3YwVi7EiObmvJzRRpKb3CvfcR3jGNV5B3UFK00");
     useraccessdomain.setDomainHelp("Jds4yTIBiMkNWoOTtrBBRvzHUaQJF5HdkeAMJ9j0bDAZX6q2G8");
     useraccessdomain.setDomainIcon("1CDbOGOlAvjXdQKKsXO9yA3bJC0Q2YRy7a4tXAuNtVUWl5823Y");
     useraccessdomain.setDomainName("rOBzO6X203DbEmpgxT6PUvoIkdTEC9Ws9Foiz39kNdKe3A0lZz");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     useraccessdomain.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     useraccessdomain.setEntityValidator(entityValidator);
     useraccessdomain.isValid();
     useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     UserAccessLevel useraccesslevel = new UserAccessLevel();
     useraccesslevel.setLevelDescription("i6jjebjISpLQYCtYSbbOlPoQQgLrBYMHOvdLpGnKBXyeuRCgPo");
     useraccesslevel.setLevelHelp("wnjcToyMYu1Gr9fUq58GZhwKrVodRkmt1yJ3tksXhAr2bACoUB");
     useraccesslevel.setLevelIcon("qS71cCbXnxyLjDWV6nWVHcpG4YHjwsEfE4h6mfKqrm4wYYIWyU");
     useraccesslevel.setLevelName("vfBDQk3xBHHDq97uYxqMKH9mY2tATz8I9ZwCnmnFMs1wAUAPWv");
     useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
     useraccesslevel.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     useraccesslevel.setEntityValidator(entityValidator);
     useraccesslevel.isValid();
     useraccesslevelRepository.save(useraccesslevel);
     map.put("UserAccessLevelPrimaryKey", useraccesslevel._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());
   }
 }
 @Test
 public void test1Save() {
   try {
     Country country = new Country();
     country.setCapital("rJTxJk2BJx7VGHOnpFU6A9yOc3fCgaw9");
     country.setCapitalLatitude(11);
     country.setCapitalLongitude(8);
     country.setCountryCode1("WnH");
     country.setCountryCode2("Ato");
     country.setCountryFlag("veFWgO6qz7elsSLx2T5kjuCHBtU46zJZ3m4RMYjy1vVGHDrps3");
     country.setCountryName("xEzBBYkQjwbMgeJA6BwSRzzLzUoXiU4tQvlqg4atSR0SWMFeIo");
     country.setCurrencyCode("xOB");
     country.setCurrencyName("IemWkJBUoPh2MaBCrXstklXG0NUxSKrPdzV8KwU6dTlp031zXM");
     country.setCurrencySymbol("263dEjCOnDwyAVchNVkWa4E4y0RvnojC");
     country.setIsoNumeric(2);
     Country CountryTest = countryRepository.save(country);
     map.put("CountryPrimaryKey", country._getPrimarykey());
     State state = new State();
     state.setCountryId((java.lang.String) CountryTest._getPrimarykey());
     state.setStateCapital("9hOlpqUiJbaGLHiGJ9flM2iChpFOhK6723l46cBVHWMFZ0Og0T");
     state.setStateCapitalLatitude(4);
     state.setStateCapitalLongitude(6);
     state.setStateCode(0);
     state.setStateCodeChar2("sZkzZypcJwGo9K3uId694v9o7L3SZg9J");
     state.setStateCodeChar3("3vfcuvx7NZlnAMVPHFL8dFs96KxeHZ55");
     state.setStateDescription("M5NLUSN0K0qoDvJKnBQsC4IhnX3RqixhkDLc7NPhzkN9yo0hs8");
     state.setStateFlag("WMPJ8ImKbs8U9zVIZaRtkQ1ICjwKhxEyPhWArLysdFzpMW4gdT");
     state.setStateName("5ZgOfNJrMyJQcFbNVCWk35TJRU0aPnp5EdcTsCxQHSDmuDy9TE");
     state.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     state.setEntityValidator(entityValidator);
     state.isValid();
     stateRepository.save(state);
     map.put("StatePrimaryKey", state._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());
   }
 }
Exemplo n.º 29
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());
   }
 }
 @Test
 public void test1Save() {
   try {
     PasswordPolicy passwordpolicy = new PasswordPolicy();
     passwordpolicy.setAllowedSpecialLetters("zYyS5IzX5w1Xf42bwDlhCdQyMv4vWZXLkkWRNzzKZCqyHEwaEJ");
     passwordpolicy.setMaxPwdLength(13);
     passwordpolicy.setMinCapitalLetters(4);
     passwordpolicy.setMinNumericValues(6);
     passwordpolicy.setMinPwdLength(6);
     passwordpolicy.setMinSmallLetters(7);
     passwordpolicy.setMinSpecialLetters(0);
     passwordpolicy.setPolicyDescription("YtLY3ltCP6rzfG260dygDnGz5pqb15zSiYtt8vhTwHendmllaN");
     passwordpolicy.setPolicyName("l7ybvPQxa1FZ7SBDGQ6GGeTkaMkncbw2WPi603VHmCoVxDRy58");
     passwordpolicy.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     passwordpolicy.setEntityValidator(entityValidator);
     passwordpolicy.isValid();
     passwordpolicyRepository.save(passwordpolicy);
     map.put("PasswordPolicyPrimaryKey", passwordpolicy._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());
   }
 }