NdsBeisEsb/src/test/java/com/northgateps/nds/beis/esb/beisregistration/BeisRegistrationCamelSpringTestSupport.java
/**
     * Creates a request for a new LDAP user that has an invalid email address.
     */
Creates a request for a new LDAP user that has an invalid email address.
Creates a request for a new LDAP user that has an invalid email address .
public static BeisRegistrationNdsRequest createRegistrationNdsRequestWithAnInvalidEmailAddress() {
        final String latestRandomNewUserName = PlatformTokenFactory.generateInternalUniqueReferenceWithPrefix(
                INTEGRATION_TEST_USERNAME_PREFIX);
        BeisRegistrationNdsRequest request = new BeisRegistrationNdsRequest();
        BeisRegistrationDetails registrationDetails = new BeisRegistrationDetails();
        registrationDetails.setAccountDetails(new BeisAccountDetails());
        registrationDetails.setUserDetails(new BeisUserDetails());
        registrationDetails.getAccountDetails().setAccountType(AccountType.PERSON);
        registrationDetails.getAccountDetails().getPersonNameDetail().setFirstname("AA");
        registrationDetails.getAccountDetails().getPersonNameDetail().setSurname("CCC");
        registrationDetails.getUserDetails().setConfirmEmail("a@b.com.com");
        registrationDetails.getUserDetails().setUsername(latestRandomNewUserName);
        registrationDetails.getUserDetails().setEmail("a@b.com.com");
        registrationDetails.getUserDetails().setPassword(NEW_USER_PASSWORD);
        registrationDetails.getUserDetails().setConfirmPassword(NEW_USER_PASSWORD);
        registrationDetails.getUserDetails().setUserType(UserType.LANDLORD);
        registrationDetails.setTenant(TENANT);
        registrationDetails.getAccountDetails().setTelNumber("01234567890");
        request.setRegistrationDetails(registrationDetails);
        return request;
    }
public static BeisRegistrationNdsRequest createRegistrationNdsRequestWithAnInvalidEmailAddress ( ) { final String latestRandomNewUserName = PlatformTokenFactory . generateInternalUniqueReferenceWithPrefix ( INTEGRATION_TEST_USERNAME_PREFIX ) ; BeisRegistrationNdsRequest request = new BeisRegistrationNdsRequest ( ) ; BeisRegistrationDetails registrationDetails = new BeisRegistrationDetails ( ) ; registrationDetails . setAccountDetails ( new BeisAccountDetails ( ) ) ; registrationDetails . setUserDetails ( new BeisUserDetails ( ) ) ; registrationDetails . getAccountDetails ( ) . setAccountType ( AccountType . PERSON ) ; registrationDetails . getAccountDetails ( ) . getPersonNameDetail ( ) . setFirstname ( "AA" ) ; registrationDetails . getAccountDetails ( ) . getPersonNameDetail ( ) . setSurname ( "CCC" ) ; registrationDetails . getUserDetails ( ) . setConfirmEmail ( "a@b.com.com" ) ; registrationDetails . getUserDetails ( ) . setUsername ( latestRandomNewUserName ) ; registrationDetails . getUserDetails ( ) . setEmail ( "a@b.com.com" ) ; registrationDetails . getUserDetails ( ) . setPassword ( NEW_USER_PASSWORD ) ; registrationDetails . getUserDetails ( ) . setConfirmPassword ( NEW_USER_PASSWORD ) ; registrationDetails . getUserDetails ( ) . setUserType ( UserType . LANDLORD ) ; registrationDetails . setTenant ( TENANT ) ; registrationDetails . getAccountDetails ( ) . setTelNumber ( "01234567890" ) ; request . setRegistrationDetails ( registrationDetails ) ; return request ; }
Creates a request for a new LDAP user that has an invalid email address.
Creates a request for a new LDAP user that has an invalid email address .