NdsBeisEsb/src/test/java/com/northgateps/nds/beis/esb/registerprsexemption/RegisterPrsExemptionRouteTest.java
/**
     * Runs the Register Prs exemption Service camel route  as agent expecting a successful outcome
     */
Runs the Register Prs exemption Service camel route  as agent expecting a successful outcome
Runs the Register Prs exemption Service camel route as agent expecting a successful outcome
@Test
    public void testExemptionRegistrationAsAgent() throws Exception {
        logger.info("RegisterPrsExemption test started");        
        context = getContextConfiguredWithRoute();
        context.start();
        MockEndpoint registerPrsExemptionServiceMock = getMockEndpoint(MOCK_RE_REQUEST_CHECK);
        registerPrsExemptionServiceMock.expectedMessageCount(3);
        MockEndpoint registerPrsExemptionResponseMock = getMockEndpoint(MOCK_RE_RESPONSE_CHECK);
        registerPrsExemptionResponseMock.expectedMessageCount(1);
        registerPrsExemptionResponseMock.expectedBodiesReceived(JaxbXmlMarshaller.convertToPrettyPrintXml(
                createRegisterPrsExemptionNdsResponse(), RegisterPrsExemptionNdsResponse.class));
        apiEndpoint.sendBody(createRegisterPrsExemptionAsAgentNdsRequest());
        assertMockEndpointsSatisfied();
    }
@ Test public void testExemptionRegistrationAsAgent ( ) throws Exception { logger . info ( "RegisterPrsExemption test started" ) ; context = getContextConfiguredWithRoute ( ) ; context . start ( ) ; MockEndpoint registerPrsExemptionServiceMock = getMockEndpoint ( MOCK_RE_REQUEST_CHECK ) ; registerPrsExemptionServiceMock . expectedMessageCount ( 3 ) ; MockEndpoint registerPrsExemptionResponseMock = getMockEndpoint ( MOCK_RE_RESPONSE_CHECK ) ; registerPrsExemptionResponseMock . expectedMessageCount ( 1 ) ; registerPrsExemptionResponseMock . expectedBodiesReceived ( JaxbXmlMarshaller . convertToPrettyPrintXml ( createRegisterPrsExemptionNdsResponse ( ) , RegisterPrsExemptionNdsResponse . class ) ) ; apiEndpoint . sendBody ( createRegisterPrsExemptionAsAgentNdsRequest ( ) ) ; assertMockEndpointsSatisfied ( ) ; }
Runs the Register Prs exemption Service camel route  as agent expecting a successful outcome
Runs the Register Prs exemption Service camel route as agent expecting a successful outcome