Class HttpSoapServiceConsumersTest


  • public class HttpSoapServiceConsumersTest
    extends AbstractComponentTest
    Unit tests about HTTP(S)/SOAP service consumers processing.
    Author:
    Christophe DENEUX - Linagora
    • Constructor Detail

      • HttpSoapServiceConsumersTest

        public HttpSoapServiceConsumersTest()
    • Method Detail

      • simpleWsHttpInvocation_InOut_Nominal

        public void simpleWsHttpInvocation_InOut_Nominal()
                                                  throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • MEP is InOut,
        • a nominal response is returned by the service provider.

        Expected results:

        • no error occurs,
        • no attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable
      • simpleWsHttpInvocation_InOut_Nominal_withMtomAttachments

        public void simpleWsHttpInvocation_InOut_Nominal_withMtomAttachments()
                                                                      throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • MEP is InOut,
        • with an MTOM attachment,
        • a nominal response is returned by the service provider.

        Expected results:

        • no error occurs,
        • only the provided attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable
      • simpleWsHttpInvocation_InOut_Nominal_withWSS

        public void simpleWsHttpInvocation_InOut_Nominal_withWSS()
                                                          throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • web-service is protected with WS-Security,
        • MEP is InOut,
        • a nominal response is returned by the service provider.

        Expected results:

        • no error occurs,
        • no attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable
      • simpleWsHttpInvocation_InOut_Error

        public void simpleWsHttpInvocation_InOut_Error()
                                                throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • MEP is InOut,
        • a error is returned by the service provider.

        Expected results:

        • no error occurs,
        • no attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable
      • simpleWsHttpInvocation_InOut_Fault

        public void simpleWsHttpInvocation_InOut_Fault()
                                                throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • MEP is InOut,
        • a fault is returned by the service provider.

        Expected results:

        • no error occurs,
        • no attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable
      • simpleWsHttpInvocation_RobustInOnly_Nominal

        public void simpleWsHttpInvocation_RobustInOnly_Nominal()
                                                         throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • MEP is RobustInOnly,
        • an acknowledgment is returned by the service provider.

        Expected results:

        • no error occurs,
        • no attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable
      • simpleWsHttpInvocation_RobustInOnly_Fault

        public void simpleWsHttpInvocation_RobustInOnly_Fault()
                                                       throws Throwable

        Check the processing of the component when receiving a SOAP request when:

        • request is over HTTP,
        • MEP is RobustInOnly,
        • a fault is returned by the service provider.

        Expected results:

        • no error occurs,
        • no attachment is put in the JBI message exchange,
        • the expected reply is received by the service consumer,
        • expected MONIT traces are logged
        Throws:
        Throwable