Class HttpSoapServiceConsumersTest
- java.lang.Object
-
- org.ow2.petals.binding.soap.AbstractComponentTest
-
- org.ow2.petals.binding.soap.listener.incoming.HttpSoapServiceConsumersTest
-
public class HttpSoapServiceConsumersTest extends AbstractComponentTest
Unit tests about HTTP(S)/SOAP service consumers processing.- Author:
- Christophe DENEUX - Linagora
-
-
Field Summary
-
Fields inherited from class org.ow2.petals.binding.soap.AbstractComponentTest
ATTACHMENT_SU_CONSUME, ATTACHMENT_SU_PROVIDE, BC_SOAP_LISTENING_PORT, chain, COMPONENT, COMPONENT_UNDER_TEST, CONSUMED_OPERATION, CXFSERVER, HTTP_LISTENING_PORT, IN_MEMORY_LOG_HANDLER, INTEGRATION_SVC_CFG, MARSHALLER, SERVICE_NAMESPACE_ATTACHMENT, SERVICE_NAMESPACE_SIMPLE, SIMPLE_SU_CONSUME, SIMPLE_SU_PROVIDE, STANDARD_HTTP_PORT, SVC_ENDPOINT_ATTACHMENT, SVC_ENDPOINT_SIMPLE, SVC_ITF_NAME_ATTACHMENT, SVC_ITF_NAME_SIMPLE, SVC_LOCAL_NAME_ATTACHMENT, SVC_LOCAL_NAME_SIMPLE, SVC_NAME_ATTACHMENT, SVC_NAME_SIMPLE, TEST_OPERATION_ATTACHMENT_ECHO, TEST_OPERATION_SIMPLE_ECHO, TEST_OPERATION_SIMPLE_PRINT, UNMARSHALLER, VALID_SU_CONSUME_POP3, WSS_SIMPLE_SU_CONSUME
-
-
Constructor Summary
Constructors Constructor Description HttpSoapServiceConsumersTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcreateWsClientStub()voidsimpleWsHttpInvocation_InOut_Error()Check the processing of the component when receiving a SOAP request when:voidsimpleWsHttpInvocation_InOut_Fault()Check the processing of the component when receiving a SOAP request when:voidsimpleWsHttpInvocation_InOut_Nominal()Check the processing of the component when receiving a SOAP request when:voidsimpleWsHttpInvocation_InOut_Nominal_withMtomAttachments()Check the processing of the component when receiving a SOAP request when:voidsimpleWsHttpInvocation_InOut_Nominal_withWSS()Check the processing of the component when receiving a SOAP request when:voidsimpleWsHttpInvocation_RobustInOnly_Fault()Check the processing of the component when receiving a SOAP request when:voidsimpleWsHttpInvocation_RobustInOnly_Nominal()Check the processing of the component when receiving a SOAP request when:-
Methods inherited from class org.ow2.petals.binding.soap.AbstractComponentTest
addresingMarFileName, avoidClassCastExceptionOnWSCltStub, clearLogTraces, createSimpleServiceConsumerConfiguration, createSimpleServiceProviderConfiguration, restoreHackAvoidingClassCastExceptionOnWSCltStub
-
-
-
-
Method Detail
-
createWsClientStub
public static void createWsClientStub() throws MalformedURLException- Throws:
MalformedURLException
-
simpleWsHttpInvocation_InOut_Nominal
public void simpleWsHttpInvocation_InOut_Nominal() throws ThrowableCheck 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 ThrowableCheck 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 ThrowableCheck 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 ThrowableCheck 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 ThrowableCheck 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 ThrowableCheck 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 ThrowableCheck 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
-
-