Class SoapCallerTest
- java.lang.Object
-
- org.ow2.petals.binding.soap.listener.outgoing.SoapCallerTest
-
public class SoapCallerTest extends Object
- Author:
- Adrien Ruffie - EBM WebSourcing
-
-
Field Summary
Fields Modifier and Type Field Description static org.ow2.petals.junit.rules.log.handler.InMemoryLogHandlerinMemoryLogHandler
-
Constructor Summary
Constructors Constructor Description SoapCallerTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()static voidafterClass()voidbefore()static voidbeforeClass()voidtestFilter()voidtestLogOnOutgoingRequestMonitDisabledInOnlyMode()voidtestLogOnOutgoingRequestMonitDisabledInOutMode()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestMonitDisabledRobustInOnlyMode()voidtestLogOnOutgoingRequestWithAttachmentsMonitEnabled()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyMode()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyModeError()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutMode()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutModeError()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyMode()Check the MONIT traces about an outgoing service invocation, where:voidtestLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyModeError()Check the MONIT traces about an outgoing service invocation, where:
-
-
-
Method Detail
-
afterClass
public static void afterClass()
-
after
public void after()
-
testLogOnOutgoingRequestMonitDisabledInOutMode
public void testLogOnOutgoingRequestMonitDisabledInOutMode() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_ENDis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutMode
public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutMode() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_ENDis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutModeError
public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOutModeError() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_FAILUREis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestWithAttachmentsMonitEnabled
public void testLogOnOutgoingRequestWithAttachmentsMonitEnabled() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_ENDis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestMonitDisabledInOnlyMode
public void testLogOnOutgoingRequestMonitDisabledInOnlyMode() throws Exception- Throws:
Exception
-
testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyMode
public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyMode() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_ENDis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyModeError
public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledInOnlyModeError() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_FAILUREis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestMonitDisabledRobustInOnlyMode
public void testLogOnOutgoingRequestMonitDisabledRobustInOnlyMode() throws Exception- Throws:
Exception
-
testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyMode
public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyMode() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_ENDis logged with expected detailed values,
- Throws:
Exception
-
testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyModeError
public void testLogOnOutgoingRequestWithoutAttachmentMonitEnabledRobustInOnlyModeError() throws ExceptionCheck 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_BEGINis logged with expected detailed values, - the MONIT trace with trace code
TraceCode.PROVIDE_EXT_FLOW_STEP_FAILUREis logged with expected detailed values,
- Throws:
Exception
-
-