Class SoapCallerTest


  • public class SoapCallerTest
    extends Object
    Author:
    Adrien Ruffie - EBM WebSourcing
    • Field Detail

      • inMemoryLogHandler

        public static org.ow2.petals.junit.rules.log.handler.InMemoryLogHandler inMemoryLogHandler
    • Constructor Detail

      • SoapCallerTest

        public SoapCallerTest()
    • Method Detail

      • afterClass

        public static void afterClass()
      • after

        public void after()
      • testLogOnOutgoingRequestMonitDisabledInOutMode

        public void testLogOnOutgoingRequestMonitDisabledInOutMode()
                                                            throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In/Out'
        • request without attachment
        • the reply is a normal reply, not a fault
        • log level set to a value to not log MONIT traces, INFO for example

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_END is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutMode

        public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutMode()
                                                                            throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In/Out'
        • request with attachment
        • the reply is a normal reply, not a fault
        • log level set to MONIT

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_END is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutModeError

        public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutModeError()
                                                                                 throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In/Out'
        • request with attachment
        • a technical error (not a fault) occurs invoking the external service provider.
        • log level set to MONIT

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_FAILURE is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestWithAttachmentsMonitEnabled

        public void testLogOnOutgoingRequestWithAttachmentsMonitEnabled()
                                                                 throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In-Out'
        • request with attachment
        • the reply is a normal reply, not a fault
        • log level set to MONIT

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_END is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestMonitDisabledInOnlyMode

        public void testLogOnOutgoingRequestMonitDisabledInOnlyMode()
                                                             throws Exception
        Throws:
        Exception
      • testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyMode

        public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyMode()
                                                                             throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In-Only'
        • no error occurs during service invocation
        • log level set to MONIT

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_END is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyModeError

        public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyModeError()
                                                                                  throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In-Only'
        • log level set to MONIT
        • a technical error (not a fault) occurs invoking the external service provider.

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_FAILURE is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestMonitDisabledRobustInOnlyMode

        public void testLogOnOutgoingRequestMonitDisabledRobustInOnlyMode()
                                                                   throws Exception
        Throws:
        Exception
      • testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyMode

        public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyMode()
                                                                                   throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In-Only'
        • no error occurs during service invocation
        • log level set to MONIT

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_END is logged with expected detailed values,
        Throws:
        Exception
      • testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyModeError

        public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyModeError()
                                                                                        throws Exception

        Check the MONIT traces about an outgoing service invocation, where:

        • the message exchange pattern is 'In-Only'
        • log level set to MONIT
        • a technical error (not a fault) occurs invoking the external service provider.

        Expected results:

        • no error occurs,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_BEGIN is logged with expected detailed values,
        • the MONIT trace with trace code TraceCode.PROVIDE_EXT_FLOW_STEP_FAILURE is logged with expected detailed values,
        Throws:
        Exception