Ejemplo n.º 1
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());
   }
 }
Ejemplo n.º 2
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 {
     Roles roles = new Roles();
     roles.setRoleDescription("bT9ANlwjMOfADErXaUuUnfmzvctWDiEqshI8rdPjBRgyqQMwRJ");
     roles.setRoleHelp("b9W63r2kDHB466DXj8Tz1zy52BGYSpcCM0y5awaI9UJYncBI8s");
     roles.setRoleIcon("QYJhtXbJ6OIXKePzchy5uJ7O3SxIPR1XTGQzluVPs4DTspQSyC");
     roles.setRoleName("73WIZN6IFrfD5lJ5x9QJfTiWidlpRVO5WRxeaV1UQTqdXKshFz");
     Roles RolesTest = rolesRepository.save(roles);
     map.put("RolesPrimaryKey", roles._getPrimarykey());
     User user = new User();
     user.setAllowMultipleLogin(0);
     user.setChangePasswordNextLogin(0);
     user.setGenTempOneTimePassword(0);
     user.setIsDeleted(0);
     user.setIsLocked(1);
     user.setLastPasswordChangeDate(new java.sql.Timestamp(123456789));
     user.setMultiFactorAuthEnabled(0);
     user.setPasswordAlgo("DRzwgwqmvj7wXykOefWXmUlrignW0ZedFJnfx8fR3lwBbjSKDy");
     user.setPasswordExpiryDate(new java.sql.Timestamp(123456789));
     user.setSessionTimeout(827);
     user.setUserAccessCode(2);
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("e4ulu03ILHFdrbOTlHOCZTbj37vOvTdgzlQRNWjKP25ndKN0HF");
     useraccessdomain.setDomainHelp("8gfmndOY8ppdyY0jF5aUm5SXiOW1oxL5GbentjLaHzqs8nUHEh");
     useraccessdomain.setDomainIcon("7z9Gv39FpfxEalhvjbrNwRy1sejsLRDXqSeAD8HoIdakkA9l7h");
     useraccessdomain.setDomainName("JglqOgtbbI7Ejkdu4HTp3ROWBqFmaCUVflm0eItcECOAvTWqIA");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     UserAccessDomain UserAccessDomainTest = useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._getPrimarykey());
     UserAccessLevel useraccesslevel = new UserAccessLevel();
     useraccesslevel.setLevelDescription("4gnKY98wxzvoACrC0B2j4pjtmDr8ZXfj5b2Pa9Qg1DsuQq0Je4");
     useraccesslevel.setLevelHelp("0aNJKSoBA40ePmiHjARF9ni9qiNeu35pJUpbDDRKyMPa2sXo3Q");
     useraccesslevel.setLevelIcon("G0j8xLUqmIWIF3lluD4udSu8Bq4lZ7JvJB0Hciydah10uQZrni");
     useraccesslevel.setLevelName("xqJPsueEnwRphwPhqqr6fcdiCeQzMJgmkCSngPcC5WBO4eVykl");
     useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
     UserAccessLevel UserAccessLevelTest = useraccesslevelRepository.save(useraccesslevel);
     map.put("UserAccessLevelPrimaryKey", useraccesslevel._getPrimarykey());
     user.setAllowMultipleLogin(1);
     user.setChangePasswordNextLogin(1);
     user.setGenTempOneTimePassword(1);
     user.setIsDeleted(0);
     user.setIsLocked(1);
     user.setLastPasswordChangeDate(new java.sql.Timestamp(123456789));
     user.setMultiFactorAuthEnabled(0);
     user.setPasswordAlgo("dKNdF8ibikxQ5wiczceTGgw6kn3MlnbnZoOGtuNL8BJcjeCrXT");
     user.setPasswordExpiryDate(new java.sql.Timestamp(123456789));
     user.setSessionTimeout(349);
     user.setUserAccessCode(7);
     user.setUserAccessDomainId(
         (java.lang.String)
             UserAccessDomainTest._getPrimarykey()); /* ******Adding refrenced table data */
     user.setUserAccessLevelId(
         (java.lang.String)
             UserAccessLevelTest._getPrimarykey()); /* ******Adding refrenced table data */
     User UserTest = userRepository.save(user);
     map.put("UserPrimaryKey", user._getPrimarykey());
     UserRoleBridge userrolebridge = new UserRoleBridge();
     userrolebridge.setRoleId(
         (java.lang.String) RolesTest._getPrimarykey()); /* ******Adding refrenced table data */
     userrolebridge.setUserId((java.lang.String) UserTest._getPrimarykey());
     userrolebridge.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     userrolebridge.setEntityValidator(entityValidator);
     userrolebridge.isValid();
     userrolebridgeRepository.save(userrolebridge);
     map.put("UserRoleBridgePrimaryKey", userrolebridge._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 {
         Roles roles = new Roles();
         roles.setRoleDescription("zih4chwTeX0YVzJEDrPDwwcSPzrh0OsZyqkBBbv6Syk8b6aDxk");
         roles.setRoleHelp("xPQH95WjeYbB1fbJzZgv6wG9J0dG2SwagqmPKrDjREsWYBKjdt");
         roles.setRoleIcon("EH6EsNk9i9qb8cWl1s9hQPDbzjqwxdCQu5P63DjatJe26Cp0GS");
         roles.setRoleName("8Q4Eca5Ng9Q6xz7RVuY27XhaoKvTMRYTCf0AVQAV36EvvC1ujP");
         Roles RolesTest = rolesRepository.save(roles);
         map.put("RolesPrimaryKey", roles._getPrimarykey());
         User user = new User();
         user.setUserAccessCode(29812);
         user.setPasswordAlgo("7nVJJ8tx9wiXOaSYorRvj5tNXVc7DIqVTG3hwIcXdGN8fPyl9C");
         user.setIsLocked(1);
         user.setGenTempOneTimePassword(1);
         user.setIsDeleted(1);
         user.setMultiFactorAuthEnabled(1);
         user.setSessionTimeout(1563);
         user.setPasswordExpiryDate(new java.sql.Timestamp(1457502213500l));
         UserAccessLevel useraccesslevel = new UserAccessLevel();
         useraccesslevel.setLevelDescription("LsM7xJOBYTs8b9IZ9Q3WvhFGMaMEnxVlBYOxdAB2OsLjw9Ekv3");
         useraccesslevel.setLevelHelp("3Js5PnJnEzNyabN6LSvhpE3gaRTaMi7zrxumR4R79uBa5YCZFA");
         useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
         useraccesslevel.setLevelName("0HDKxNXbGJMGyy0GVCcKJ27o5cX3MTr7qD2IrV8XubsQhQNe3q");
         useraccesslevel.setLevelIcon("SGYMhTbOTOsYGheVIh72YXWyLK5HTDGPhW7xj5w5oewWC54Fi8");
         UserAccessLevel UserAccessLevelTest = useraccesslevelRepository.save(useraccesslevel);
         map.put("UserAccessLevelPrimaryKey", useraccesslevel._getPrimarykey());
         UserAccessDomain useraccessdomain = new UserAccessDomain();
         useraccessdomain.setDomainDescription("6A4yyuokuFOCA22H36xjXg8gNDLlv09rKII21V5vgaFPZiKuRV");
         useraccessdomain.setDomainIcon("GH4BjqnZYvFAdfCCuBumRdsiKsrplPZdtZe1KOm2ko3FkxDYoq");
         useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
         useraccessdomain.setDomainHelp("nAtanyrcv6QrfeqabomSnbjeRtTvoSphVpzBA0BbGLaxogpQMS");
         useraccessdomain.setDomainName("KKQWvvHDL4mYukGR9fRwliuelH0msv9cum5fiGHZ8tA4dXmTcX");
         UserAccessDomain UserAccessDomainTest = useraccessdomainRepository.save(useraccessdomain);
         map.put("UserAccessDomainPrimaryKey", useraccessdomain._getPrimarykey());
         user.setUserAccessCode(26205);
         user.setPasswordAlgo("WO6uzqAccZ4KQCvWv3zq5HFOqSMeQCsUreOZqGMRQk1RfpDgYo");
         user.setIsLocked(1);
         user.setGenTempOneTimePassword(1);
         user.setIsDeleted(1);
         user.setMultiFactorAuthEnabled(1);
         user.setSessionTimeout(3149);
         user.setPasswordExpiryDate(new java.sql.Timestamp(1457502213509l));
         user.setUserAccessLevelId((java.lang.String) UserAccessLevelTest._getPrimarykey()); /* ******Adding refrenced table data */
         user.setLastPasswordChangeDate(new java.sql.Timestamp(1457502213541l));
         user.setChangePasswordNextLogin(1);
         user.setUserAccessDomainId((java.lang.String) UserAccessDomainTest._getPrimarykey()); /* ******Adding refrenced table data */
         user.setAllowMultipleLogin(1);
         java.util.List<PassRecovery> listOfPassRecovery = new java.util.ArrayList<PassRecovery>();
         PassRecovery passrecovery = new PassRecovery();
         passrecovery.setAnswer("noh5WnNg2Au8XBwYDN3BwilmrBS137fGqMjKrexdyCiVmNDil2");
         Question question = new Question();
         question.setQuestionDetails("B");
         question.setLevelid(9);
         question.setQuestion("5SC90aW9AzuUJOfd6uZI6pyX4PQu8BZjWHcHyJv7n4gu9zpRT5");
         question.setQuestionIcon("z3lz2asBFQA0E9U4P62axk9akWsKClIiZV82U0s0crjOiTRqwH");
         Question QuestionTest = questionRepository.save(question);
         map.put("QuestionPrimaryKey", question._getPrimarykey());
         passrecovery.setAnswer("VyKb00ar04uokWx50ArgANhWwwS3LGJAIK8B1AiUVQ13oROzMx");
         passrecovery.setQuestionId((java.lang.String) QuestionTest._getPrimarykey()); /* ******Adding refrenced table data */
         passrecovery.setUser(user);
         listOfPassRecovery.add(passrecovery);
         user.addAllPassRecovery(listOfPassRecovery);
         UserData userdata = new UserData();
         userdata.setOneTimePasswordGenDate(new java.sql.Timestamp(1457502213748l));
         userdata.setOneTimePasswordExpiry(3);
         userdata.setLast5Passwords("JHNkDKNTM6505x25FY9E7WdOatSDgQphHIvZL8v8ghYwFumVgV");
         userdata.setOneTimePasswordGenDate(new java.sql.Timestamp(1457502213756l));
         userdata.setOneTimePasswordExpiry(5);
         userdata.setLast5Passwords("v8wJ9Sn1xdhUKlqblPYTs3oKpdVzoyjaEJQfxSWSLDEyuYIHz6");
         userdata.setUser(user);
         userdata.setPassword("l2tt85jN3f0Y4CJ94gsF3BwRQVYlR5i9VtD3KmuawUVaUbUCG2");
         userdata.setOneTimePassword("M4Cv6to6HfCxyIrqraKaBu3laHznZqJO");
         user.setUserData(userdata);
         User UserTest = userRepository.save(user);
         map.put("UserPrimaryKey", user._getPrimarykey());
         UserRoleBridge userrolebridge = new UserRoleBridge();
         userrolebridge.setRoleId((java.lang.String) RolesTest._getPrimarykey()); /* ******Adding refrenced table data */
         userrolebridge.setUserId((java.lang.String) UserTest._getPrimarykey());
         userrolebridge.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
         userrolebridge.setEntityValidator(entityValidator);
         userrolebridge.isValid();
         userrolebridgeRepository.save(userrolebridge);
         map.put("UserRoleBridgePrimaryKey", userrolebridge._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 {
         User user = new User();
         user.setSessionTimeout(689);
         user.setPasswordAlgo("ZUWoTOVghMQEo7a4PN7otQHrL8quqOluq1HqS6rd3UsyOJDClV");
         user.setChangePasswordNextLogin(1);
         user.setIsDeleted(1);
         user.setIsLocked(1);
         user.setLastPasswordChangeDate(new java.sql.Timestamp(1457502861196l));
         UserAccessDomain useraccessdomain = new UserAccessDomain();
         useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
         useraccessdomain.setDomainIcon("Dyeeq6SqCTfdJF0U5tI2xhTo6PPA2viFZ4OvfyzvuddeE1DUIB");
         useraccessdomain.setDomainDescription("Dbb0gbne67MFns4D70ndeyccwwaAEzI1CA7ZHMDAVjd0HBg8hO");
         useraccessdomain.setDomainHelp("cTKhUUAQfsLXED0K7fCnrH8fLIJeAcGTFGx5r9QxgD0I5GEGyE");
         useraccessdomain.setDomainName("bFRjdLQgEPflYGerX1yVBWXEk0ragV6Ai1CfbkHDk9sNbqVdTt");
         UserAccessDomain UserAccessDomainTest = useraccessdomainRepository.save(useraccessdomain);
         map.put("UserAccessDomainPrimaryKey", useraccessdomain._getPrimarykey());
         UserAccessLevel useraccesslevel = new UserAccessLevel();
         useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
         useraccesslevel.setLevelHelp("QWAaf0lvtFBFH0p94M77iVZCa3dIaDXSmV3SLnLUbYwpfmXkYh");
         useraccesslevel.setLevelDescription("udvI9TjKKFJqXeHDh0TFeK1qJjI1LMYW6xiGFmiYjoaszpV4pf");
         useraccesslevel.setLevelIcon("ZzVzverW99V7sfGgpULXB6FSeN2pBglBApK6poLaOq1nfihzJl");
         useraccesslevel.setLevelName("37Oiu2bR4MukiDabRZEmSkVz7qPuNp0lUgrlbffahL6rLRBa3X");
         UserAccessLevel UserAccessLevelTest = useraccesslevelRepository.save(useraccesslevel);
         map.put("UserAccessLevelPrimaryKey", useraccesslevel._getPrimarykey());
         user.setSessionTimeout(1913);
         user.setPasswordAlgo("9zunbQnog2841yHPLTVhrDMQtxJqcGLgsZ8mZezofkBYMI92OG");
         user.setChangePasswordNextLogin(1);
         user.setIsDeleted(1);
         user.setIsLocked(1);
         user.setLastPasswordChangeDate(new java.sql.Timestamp(1457502861202l));
         user.setUserAccessDomainId((java.lang.String) UserAccessDomainTest._getPrimarykey()); /* ******Adding refrenced table data */
         user.setPasswordExpiryDate(new java.sql.Timestamp(1457502861232l));
         user.setGenTempOneTimePassword(1);
         user.setAllowMultipleLogin(1);
         user.setMultiFactorAuthEnabled(1);
         user.setUserAccessCode(4647);
         user.setUserAccessLevelId((java.lang.String) UserAccessLevelTest._getPrimarykey()); /* ******Adding refrenced table data */
         java.util.List<PassRecovery> listOfPassRecovery = new java.util.ArrayList<PassRecovery>();
         PassRecovery passrecovery = new PassRecovery();
         passrecovery.setAnswer("CCmacNp4wFTPIA8LQS204HUizSbUfTwssOYdXCsRLxURjIBHmf");
         Question question = new Question();
         question.setLevelid(8);
         question.setQuestionIcon("g4lmQjcYYzfuQQpG2vqA1omjbl8BjVf4fEU6imVMPBJZGADtM1");
         question.setQuestion("PDrSGUCg8oBBXF1r3p78AEiFDb6I6D47v7D0ENFLVlHyKpXfj3");
         question.setQuestionDetails("g");
         Question QuestionTest = questionRepository.save(question);
         map.put("QuestionPrimaryKey", question._getPrimarykey());
         passrecovery.setAnswer("CIy8nqId4XA6qfNWLTx6qjHMvOtELeXEifeKibZIGPCREEb5tL");
         passrecovery.setUser(user);
         passrecovery.setQuestionId((java.lang.String) QuestionTest._getPrimarykey()); /* ******Adding refrenced table data */
         listOfPassRecovery.add(passrecovery);
         user.addAllPassRecovery(listOfPassRecovery);
         UserData userdata = new UserData();
         userdata.setPassword("HifBXUEuVmO2LJKaOej6zT0zsNqFQUagmX7mDuIdd4TtWrksFP");
         userdata.setLast5Passwords("TIGelpnzc2by0NcR1rEH7pHAFnU9TvWYEtofGYS1KGPQKv1JRH");
         userdata.setPassword("ochKuehA53QmMajEpk2sU5aAu1WNaeum81rwIXz2QqJ8dBK9wj");
         userdata.setLast5Passwords("3Sk3ojQW9VLL54S4G0Vv93mBTpt8gSzxqfiKPpG6gNcHThcOYi");
         userdata.setUser(user);
         userdata.setOneTimePasswordExpiry(4);
         userdata.setOneTimePasswordGenDate(new java.sql.Timestamp(1457502861472l));
         userdata.setOneTimePassword("EM0St7HG3urlyPxEy8h7WUhbkOtNpbQa");
         user.setUserData(userdata);
         User UserTest = userRepository.save(user);
         map.put("UserPrimaryKey", user._getPrimarykey());
         Roles roles = new Roles();
         roles.setRoleIcon("Ms7fjM16G9Cjz8UC9lpI6N9aIMCnerwtDovWfCesnqrecVG3cl");
         roles.setRoleHelp("Hq37DUbqVXpbFcADdNNd1d0e7Nnzfsf3MBAeFuJNlrknBxOAXy");
         roles.setRoleDescription("sgea7ZFgXdWuk6UddhZbgi1r0Z3ERbBpHMVzOuCv2EQAlvEK0G");
         roles.setRoleName("BeeupfZAtmttkit2q54sv5M2l1a89FQU3nTvIa2MZFV9CUnNFd");
         Roles RolesTest = rolesRepository.save(roles);
         map.put("RolesPrimaryKey", roles._getPrimarykey());
         UserRoleBridge userrolebridge = new UserRoleBridge();
         userrolebridge.setUserId((java.lang.String) UserTest._getPrimarykey()); /* ******Adding refrenced table data */
         userrolebridge.setRoleId((java.lang.String) RolesTest._getPrimarykey());
         userrolebridge.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
         userrolebridge.setEntityValidator(entityValidator);
         userrolebridge.isValid();
         userrolebridgeRepository.save(userrolebridge);
         map.put("UserRoleBridgePrimaryKey", userrolebridge._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());
     }
 }
Ejemplo n.º 8
0
 @Test
 public void test1Save() {
   try {
     CoreContacts corecontacts = new CoreContacts();
     corecontacts.setAge(7);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("eJ9fB10vJaXKiGH4lLTyc06pRkCYj7mEUaC9dJ6oARfC2RYMga");
     corecontacts.setFirstName("JFJr9FbEu8KBkVJqEiLUO9DX82YSBgf9i4r6Wy0hsWTmzkmNt9");
     Gender gender = new Gender();
     gender.setGender("Rj8XbmbdosxvDEfOzba9e5oW0wxRM1KBEDEBkrqLS4YcfWkEab");
     Gender GenderTest = genderRepository.save(gender);
     map.put("GenderPrimaryKey", gender._getPrimarykey());
     Language language = new Language();
     language.setAlpha2("FG");
     language.setAlpha3("53q");
     language.setAlpha4("NNj7");
     language.setAlpha4parentid(8);
     language.setLanguage("raEXeDOVJHXUrT2c6urWj08Vi6CYNyuGPdCSed6tUCyYHsXJF3");
     language.setLanguageDescription("Rotx8eTVOCPyCzVysiWvyvIKd178V1mbj3Ozv3sWKc8z4Zuthv");
     language.setLanguageIcon("wZSgxBSL6GCYrKA4TOh1zx9suSl5pGObxNoSUJXKf95Bmh7DmR");
     language.setLanguageType("rdase2GWP8fswoqsbOwzXaH3Fi3gyDQb");
     Language LanguageTest = languageRepository.save(language);
     map.put("LanguagePrimaryKey", language._getPrimarykey());
     Timezone timezone = new Timezone();
     timezone.setCities("vgJ3UPDz6W5oyIrvzkSSCC5d6tSpIzNz9g0VwcScVSFBkFKM2X");
     timezone.setCountry("Cv9Xo9BEbvXbIu6PgT4TH8xJM8rdTume0Dorz6M8tRzzTvLZmP");
     timezone.setGmtLabel("rHc4byXDBbVI1jTzsjARRAFcrLOy3qvZnGo9lWWnbNnFTFNn8J");
     timezone.setTimeZoneLabel("FGyfVsEFrIl8adG2u6F39I1ynf7pmvCyVkB5jkrTnLFloFuIZ9");
     timezone.setUtcdifference(0);
     Title title = new Title();
     title.setTitles("wH9pCJUfTY4nHNawYKiFVtGZMHMRRnXhY4UiWoR1MxtLkAK7IH");
     Title TitleTest = titleRepository.save(title);
     map.put("TitlePrimaryKey", title._getPrimarykey());
     corecontacts.setAge(75);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("mRgWtLk9TSMALoHn6kC5LeR00ECAp5mf4fIOvb32sUnOjqIIef");
     corecontacts.setFirstName("dav2zeUCXDfOtgenmkHF1yrdd6f3tagwUAmXMDNiTI1joMQWLs");
     corecontacts.setGenderId(
         (java.lang.String) GenderTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setLastName("xCfYIb9pkPuWiWIRG0mnRm8SlbVhFFSox7TU9cDlB1FqEbDULD");
     corecontacts.setMiddleName("gi3ZiOROCt68nczQSw56BgmOvceP14UxayjQBDOyeFVfkYVtcM");
     corecontacts.setNativeFirstName("c5qfzI9lx7GjErVlUpPV4ySVoFLJPtldfKhIc3MWB5vberVv6K");
     corecontacts.setNativeLanguageCode(
         (java.lang.String) LanguageTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setNativeLastName("Vtx3JgZxnE8cCPMfJYeMy7W2eIj6p2zLs7a3gCYUR79WLGAZSR");
     corecontacts.setNativeMiddleName("euKfX21TwPKmzFNSc8dmQrAyqwuSeJ5qD3MEbSX8Qvdqq7eaP8");
     corecontacts.setNativeTitle("IEna59VJ3DzOBKVXkXbs2sxWLCM6LfXcNW2LDwQvukWTL4OjAV");
     corecontacts.setPhoneNumber("bM9034EbyiySEDO5msLI");
     timezone.setTimeZoneId(null);
     corecontacts.setTimezone(timezoneRepository.save(timezone));
     corecontacts.setTitleId(
         (java.lang.String) TitleTest._getPrimarykey()); /* ******Adding refrenced table data */
     User user = new User();
     user.setAllowMultipleLogin(0);
     user.setChangePasswordNextLogin(0);
     user.setGenTempOneTimePassword(0);
     user.setIsDeleted(1);
     user.setIsLocked(0);
     user.setLastPasswordChangeDate(new java.sql.Timestamp(123456789));
     user.setMultiFactorAuthEnabled(0);
     user.setPasswordAlgo("f0S3L1pqnIhyIwfsXlOquhySDHnVGl8N6t40rvuM36qjL0UXi8");
     user.setPasswordExpiryDate(new java.sql.Timestamp(123456789));
     user.setSessionTimeout(1162);
     user.setUserAccessCode(8);
     UserAccessDomain useraccessdomain = new UserAccessDomain();
     useraccessdomain.setDomainDescription("IzJ2I4mvJgp43pHl5p6BoCJ5hNF3pUIm3lqbxbJ1J4llm0ngFZ");
     useraccessdomain.setDomainHelp("6fVje0a7Ow4AkkQKu5Q6wd9CjmP4VFSvOerf09sOJnsthjL28a");
     useraccessdomain.setDomainIcon("wpbdK4nD2Rn9jujfnd6e6pGoS4gfH5MoPfgxpZT9dEWRr4Lq49");
     useraccessdomain.setDomainName("viItHKnY2XnwaGrJfS4vOGqmZqMDMWsWEV5gzRnvdKQmqysD2g");
     useraccessdomain.setUserAccessDomain(valueGenerator.getRandomInteger(99999, 0));
     UserAccessDomain UserAccessDomainTest = useraccessdomainRepository.save(useraccessdomain);
     map.put("UserAccessDomainPrimaryKey", useraccessdomain._getPrimarykey());
     UserAccessLevel useraccesslevel = new UserAccessLevel();
     useraccesslevel.setLevelDescription("EI2VzVKYuSzb3aUPPZSyNOeXFB3D1I0pHEFRfCieWxqfYpt1wG");
     useraccesslevel.setLevelHelp("LPiNVySp83hOaIWkd2ck46WsUK5DE5pRwSmeDn8zQz6hSQzV55");
     useraccesslevel.setLevelIcon("JFRRM4dcZ8SnsBpZyPZptXZvuXDExlgtPc2busjkrY90moyw0a");
     useraccesslevel.setLevelName("8PNkHqbWVgp2BiNMvrkwCYH1n7CRfXmFWH20mYs2JRlnkUp9up");
     useraccesslevel.setUserAccessLevel(valueGenerator.getRandomInteger(99999, 0));
     UserAccessLevel UserAccessLevelTest = useraccesslevelRepository.save(useraccesslevel);
     map.put("UserAccessLevelPrimaryKey", useraccesslevel._getPrimarykey());
     user.setAllowMultipleLogin(1);
     user.setChangePasswordNextLogin(1);
     user.setGenTempOneTimePassword(0);
     user.setIsDeleted(0);
     user.setIsLocked(1);
     user.setLastPasswordChangeDate(new java.sql.Timestamp(123456789));
     user.setMultiFactorAuthEnabled(0);
     user.setPasswordAlgo("1PJcMuWSkovMo8m4luulDGecBRNjOAvnuXw8iGSXDNGwrjEHbu");
     user.setPasswordExpiryDate(new java.sql.Timestamp(123456789));
     user.setSessionTimeout(87);
     user.setUserAccessCode(6);
     user.setUserAccessDomainId(
         (java.lang.String)
             UserAccessDomainTest._getPrimarykey()); /* ******Adding refrenced table data */
     user.setUserAccessLevelId((java.lang.String) UserAccessLevelTest._getPrimarykey());
     Login login = new Login();
     corecontacts.setContactId(null);
     login.setCoreContacts(corecontacts);
     login.setFailedLoginAttempts(4);
     login.setIsAuthenticated(true);
     login.setLoginId("6T4bGrswGnmYbyIn6vwQyEeZOYEJUo1PhQR4RK9zFrPPMLidlg");
     login.setServerAuthImage("PrQCVtK54bzidWg4jfztFiyp5sI0tWmv");
     login.setServerAuthText("bamAac5CiFfygMxf");
     user.setUserId(null);
     login.setUser(user);
     login.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     login.setEntityValidator(entityValidator);
     login.isValid();
     loginRepository.save(login);
     map.put("LoginPrimaryKey", login._getPrimarykey());
     map.put("CoreContactsPrimaryKey", login.getCoreContacts()._getPrimarykey());
     map.put("UserPrimaryKey", login.getUser()._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());
   }
 }