NdsBeisEsb/src/test/java/com/northgateps/nds/beis/esb/passwordreset/BeisPasswordResetRouteTest.java
//method to register a new user and return registered details

method to register a new user and return registered details
method to register a new user and return registered details
private BeisRegistrationDetails registerANewUser(MockNdsDirectoryKernel mockDirectoryKernel)
            throws Exception {
        final BeisRegistrationNdsRequest requestNewUser = createRegistrationNdsRequestWithNewUserName();
        BeisRegistrationDetails registeredUser = registerNewUser(null, mockDirectoryKernel, requestNewUser,
                new MockEndpointInitializer() {
                    @Override
                    public void request(MockEndpoint requestMock) throws Exception {
                        requestMock.expectedMessageCount(1);
                    }
                    @Override
                    public void response(MockEndpoint responseMock) throws Exception {
                        responseMock.expectedBodiesReceived(JaxbXmlMarshaller.convertToPrettyPrintXml(
                                createSuccessfulBeisRegistrationResponse(), BeisRegistrationNdsResponse.class));
                    }
                });
        return registeredUser;
    }
private BeisRegistrationDetails registerANewUser ( MockNdsDirectoryKernel mockDirectoryKernel ) throws Exception { final BeisRegistrationNdsRequest requestNewUser = createRegistrationNdsRequestWithNewUserName ( ) ; BeisRegistrationDetails registeredUser = registerNewUser ( null , mockDirectoryKernel , requestNewUser , new MockEndpointInitializer ( ) { @ Override public void request ( MockEndpoint requestMock ) throws Exception { requestMock . expectedMessageCount ( 1 ) ; } @ Override public void response ( MockEndpoint responseMock ) throws Exception { responseMock . expectedBodiesReceived ( JaxbXmlMarshaller . convertToPrettyPrintXml ( createSuccessfulBeisRegistrationResponse ( ) , BeisRegistrationNdsResponse . class ) ) ; } } ) ; return registeredUser ; }
method to register a new user and return registered details
method to register a new user and return registered details