コード例 #1
0
 @Test
 public void test1Save() {
   try {
     AppCustomerCategory appcustomercategory = new AppCustomerCategory();
     appcustomercategory.setCustomerCategory("Zf3hFT4peHWhRCsoLCMHvYBxvg44jqptI0ReNmfwKw8RDaX8Ph");
     AppCustomerCategory AppCustomerCategoryTest =
         appcustomercategoryRepository.save(appcustomercategory);
     map.put("AppCustomerCategoryPrimaryKey", appcustomercategory._getPrimarykey());
     AppCustomerType appcustomertype = new AppCustomerType();
     appcustomertype.setCustomerType("8mfGABtFGAzoZxO7qwdY2jOvwBcx8MUkk7NoVAQMgmL1Rx3eAl");
     appcustomertype.setDefaults(0);
     appcustomertype.setSequenceId(2147483647);
     AppCustomerType AppCustomerTypeTest = appcustomertypeRepository.save(appcustomertype);
     map.put("AppCustomerTypePrimaryKey", appcustomertype._getPrimarykey());
     CoreContacts corecontacts = new CoreContacts();
     corecontacts.setAge(63);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("m0Mwq01KVMiuEywjJIT9Lrclh1YcNgbuld9o6dfggRhOkTJjUK");
     corecontacts.setFirstName("zyF6VE3P4Qc0dac32oNr1ejemg4JjN5MVyGUP4ittvup8bU8nw");
     Gender gender = new Gender();
     gender.setGender("sRL1ivxb5b770PM7f2suzeEyca7vwrcD1etv8XkzbPsw9gryjc");
     Gender GenderTest = genderRepository.save(gender);
     map.put("GenderPrimaryKey", gender._getPrimarykey());
     Language language = new Language();
     language.setAlpha2("T5");
     language.setAlpha3("C93");
     language.setAlpha4("KSnJ");
     language.setAlpha4parentid(6);
     language.setLanguage("Ex4LqON4kLEGHbq4u7Ka8RuhxCJGWcsOS3JDtWcV410zivoS8k");
     language.setLanguageDescription("fw33PxJSMYALNXynFQTzmgIgtuTfLQYUetdyD2Q5Pgx4yBrYfc");
     language.setLanguageIcon("Ds07JeC2fhYly3KySXbwW42Blz7icPFxJ5DmZMffAUTpyUfWne");
     language.setLanguageType("G4LRG2ctRQNB90vWgUNW1IKgyv3BNqPE");
     Language LanguageTest = languageRepository.save(language);
     map.put("LanguagePrimaryKey", language._getPrimarykey());
     Timezone timezone = new Timezone();
     timezone.setCities("WXcNDYMhTrCwADyUG0euHlOdyw55hOuy3TH7q9q4w06PhT6avh");
     timezone.setCountry("6l5oA4mG0SOrvCBHwIpeOqToDNWiRehJa2y1Ck8ki1Ns1GedPl");
     timezone.setGmtLabel("X07FCTG5n4hBVG0YwRvQhqX82pYFY8vOdLtDqKB3fbLh5WlYFq");
     timezone.setTimeZoneLabel("2a3dY3g22K3IqOKIUWYaldQFv9sMz283PtRebz3VfdlGof8hAT");
     timezone.setUtcdifference(6);
     Title title = new Title();
     title.setTitles("4mrEkkEElyCQ28nFAqoQpmmEu9711zt874gyFHr6uabGZSP2eI");
     Title TitleTest = titleRepository.save(title);
     map.put("TitlePrimaryKey", title._getPrimarykey());
     corecontacts.setAge(58);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("r6fr7EFOWA24G81Vob5QcNS3YnaFVdjMIGjsb4d2nc45J44zwP");
     corecontacts.setFirstName("Q9WgJmk1HPzt3OBr7EeYQSh79Xz0UisM4z13Ens0xlQ3UtdR0Q");
     corecontacts.setGenderId(
         (java.lang.String) GenderTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setLastName("5vANUnpEVnMEGDm49G97omkG3TCR7eBSYe31TazsdhuBYLu8uc");
     corecontacts.setMiddleName("LhedZZ569ZKmDRJHq8ZUqLiFcQzkNYErFwCDi5ElOEBa7Mfp2r");
     corecontacts.setNativeFirstName("itK3PuE5bkvw1oJtZjX0wfUCLcZna0N8hliLnHhYFyVNU1rLFH");
     corecontacts.setNativeLanguageCode(
         (java.lang.String) LanguageTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setNativeLastName("4vmEI2Fk7VFj17D9sWAtJRcuR959MJRmSnhg0sgZ9gr81BnKK5");
     corecontacts.setNativeMiddleName("et5eOxB3SiSjtkR9c7YLp2fCBEd3y3a3c2LO8p9lEFssDsnjbp");
     corecontacts.setNativeTitle("KJnTtITihEzk7WjXcUHg31Mp4QGAqlD3eBCKSlO2w1IZEV3Fh0");
     corecontacts.setPhoneNumber("jEDphPutEElSjfzvAD5X");
     corecontacts.setTimezone(timezone);
     corecontacts.setTitleId(
         (java.lang.String) TitleTest._getPrimarykey()); /* ******Adding refrenced table data */
     CoreContacts CoreContactsTest = corecontactsRepository.save(corecontacts);
     map.put("CoreContactsPrimaryKey", corecontacts._getPrimarykey());
     AppCustomer appcustomer = new AppCustomer();
     appcustomer.setAppCustomerCategory(
         (java.lang.String)
             AppCustomerCategoryTest._getPrimarykey()); /* ******Adding refrenced table data */
     appcustomer.setAppCustomerType(
         (java.lang.String)
             AppCustomerTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     appcustomer.setContactId((java.lang.String) CoreContactsTest._getPrimarykey());
     appcustomer.setCustomerName("helgJfzm6Z9Iy2IxlEsev1Q5sJRVzwkBEk711mN8vcJGNM71yZ");
     appcustomer.setCustomerStatus(0);
     appcustomer.setDeploymentModel(true);
     appcustomer.setEvalTimePeriod(2147483647);
     appcustomer.setUserRequested(2147483647);
     appcustomer.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appcustomer.setEntityValidator(entityValidator);
     appcustomer.isValid();
     appcustomerRepository.save(appcustomer);
     map.put("AppCustomerPrimaryKey", appcustomer._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());
   }
 }
コード例 #2
0
 @Test
 public void test1Save() {
   try {
     AppCustomerCategory appcustomercategory = new AppCustomerCategory();
     appcustomercategory.setCustomerCategory("6OsT9WYdgxjd7xYREG4kFgw6Hwr26rXd82sEu4OiEhiycMpUVd");
     AppCustomerCategory AppCustomerCategoryTest =
         appcustomercategoryRepository.save(appcustomercategory);
     map.put("AppCustomerCategoryPrimaryKey", appcustomercategory._getPrimarykey());
     AppCustomerType appcustomertype = new AppCustomerType();
     appcustomertype.setCustomerType("mheOOCgLzFQq0JZ8xPrWt7rAsuHHWvmdsic1BOdfOnEPHCE4At");
     appcustomertype.setDefaults(1);
     appcustomertype.setSequenceId(2147483647);
     AppCustomerType AppCustomerTypeTest = appcustomertypeRepository.save(appcustomertype);
     map.put("AppCustomerTypePrimaryKey", appcustomertype._getPrimarykey());
     CoreContacts corecontacts = new CoreContacts();
     corecontacts.setAge(55);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("ucyiA8D8KwPpcQZUjmsbzkvXmdqWfjbY4hqpVTq1x4yU8qAEqU");
     corecontacts.setFirstName("hGn7lNm6TCBqbl52gOpZwAZAIjhxLeLzliYfIet9jIODxukzuL");
     Gender gender = new Gender();
     gender.setGender("PHtpf5KrRb60cqMTVmN2vjw15YZzatbkcuPTZP1cjECh4R6EXN");
     Gender GenderTest = genderRepository.save(gender);
     map.put("GenderPrimaryKey", gender._getPrimarykey());
     Language language = new Language();
     language.setAlpha2("l4");
     language.setAlpha3("LYd");
     language.setAlpha4("XgGJ");
     language.setAlpha4parentid(10);
     language.setLanguage("ODViXLUI8pVtugI0my17lupDm43zU2IGmkqGLZh42DfmRc9RV5");
     language.setLanguageDescription("X5kucHQzvUTobglZaOSRtLldMxFFwHdydGs1wXYK87MIqtR2IC");
     language.setLanguageIcon("qkOYlqSbfE0CCaxvYfYjHiuGOkcN0lTtkw7WFJ9knAW6t6pZdO");
     language.setLanguageType("xvyjd950OU5OthLP6TsvDNDS7EjEtddd");
     Language LanguageTest = languageRepository.save(language);
     map.put("LanguagePrimaryKey", language._getPrimarykey());
     Timezone timezone = new Timezone();
     timezone.setCities("Nw2TnBoYn6Xf5Q1UFFxDyl3OjIZojRPN0IrfzPRKhrUiyrEbwP");
     timezone.setCountry("zzT085UkOrZ9DXLYrgELbXFWfMmPWzR1diNnpgdwC6ZZUGUKwb");
     timezone.setGmtLabel("XXJlFeSQn3NIIwPiTpfzwLGMoUSCXhxAM7U9SmAQqA7O4CeRgD");
     timezone.setTimeZoneLabel("rdpyeuv0cVznMPQQJ12KQlos9dVbMW6Qd2iciair3k1QaXSyXj");
     timezone.setUtcdifference(5);
     Title title = new Title();
     title.setTitles("rg0QkAvEChiVJPy6mJGPro3TbUXLvhz3t2gKC1Y7FTS9yUqPuL");
     Title TitleTest = titleRepository.save(title);
     map.put("TitlePrimaryKey", title._getPrimarykey());
     corecontacts.setAge(16);
     corecontacts.setApproximateDOB(new java.sql.Date(123456789));
     corecontacts.setDateofbirth(new java.sql.Date(123456789));
     corecontacts.setEmailId("pbPiUpnLOEB8IjA6ezMobG6M3kREcwuwOmO8w4bkDMfDbvguAb");
     corecontacts.setFirstName("QSczRsHVgTASCFPoc9PENyzoTWEHQArt6y8zkcOUngzMAxMDYo");
     corecontacts.setGenderId(
         (java.lang.String) GenderTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setLastName("lmLlCxpIxdcWjiI5U1POImAtkbcEmgbjMwvNa0hkOKb2E7CEOa");
     corecontacts.setMiddleName("S2wiWc6HaB4V726ZI7OrfJz8qIH0eAXSAmgrB39F3hUjfw334v");
     corecontacts.setNativeFirstName("VfPEQmLXJ5EOzeed2LVmiaM9MV1brbUEK14bkIJ31te4FZZkF1");
     corecontacts.setNativeLanguageCode(
         (java.lang.String) LanguageTest._getPrimarykey()); /* ******Adding refrenced table data */
     corecontacts.setNativeLastName("KKTfhFpfoMbQIBZDKOOhE5sXEcEEOgU8oY8jI4WlNmYeaqkvMd");
     corecontacts.setNativeMiddleName("JqIPxd2l2W2SxTCNNFs7U2jQdrS6HdBga9JaqJK8Vs1WhXfxBW");
     corecontacts.setNativeTitle("jWrv7iqxnCr31G650oACdRYTDP0v2aHKJPyxfedY6m7IJTJeTK");
     corecontacts.setPhoneNumber("Z8kiKFlpGISrzZVHMwYc");
     timezone.setTimeZoneId(null);
     corecontacts.setTimezone(timezoneRepository.save(timezone));
     map.put("TimezonePrimaryKey", timezone._getPrimarykey());
     corecontacts.setTitleId(
         (java.lang.String) TitleTest._getPrimarykey()); /* ******Adding refrenced table data */
     CoreContacts CoreContactsTest = corecontactsRepository.save(corecontacts);
     map.put("CoreContactsPrimaryKey", corecontacts._getPrimarykey());
     AppCustomer appcustomer = new AppCustomer();
     appcustomer.setAppCustomerCategory(
         (java.lang.String)
             AppCustomerCategoryTest._getPrimarykey()); /* ******Adding refrenced table data */
     appcustomer.setAppCustomerType(
         (java.lang.String)
             AppCustomerTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
     appcustomer.setContactId((java.lang.String) CoreContactsTest._getPrimarykey());
     appcustomer.setCustomerName("DUBBw6VIAzUxKVgbI6O138ojrg6WLliFKExOlf2pv9iJ9rEPsc");
     appcustomer.setCustomerStatus(0);
     appcustomer.setDeploymentModel(true);
     appcustomer.setEvalTimePeriod(2147483647);
     appcustomer.setUserRequested(2147483647);
     appcustomer.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
     appcustomer.setEntityValidator(entityValidator);
     appcustomer.isValid();
     appcustomerRepository.save(appcustomer);
     map.put("AppCustomerPrimaryKey", appcustomer._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());
   }
 }