Package org.ow2.petals.binding.soap
Class AbstractComponentTest
- java.lang.Object
-
- org.ow2.petals.binding.soap.AbstractComponentTest
-
- Direct Known Subclasses:
HttpSoapServiceConsumersTest,SoapServiceProvidersTest
public abstract class AbstractComponentTest extends Object
Abstract class for unit tests about request processing- Author:
- Christophe DENEUX - Linagora
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringATTACHMENT_SU_CONSUMEprotected static StringATTACHMENT_SU_PROVIDEstatic intBC_SOAP_LISTENING_PORTstatic org.junit.rules.TestRulechainprotected static org.ow2.petals.component.framework.junit.helpers.SimpleComponentCOMPONENTprotected static org.ow2.petals.component.framework.junit.ComponentCOMPONENT_UNDER_TESTprotected static QNameCONSUMED_OPERATIONstatic org.ow2.petals.junit.rules.cxfserver.CxfServerCXFSERVERprotected static intHTTP_LISTENING_PORTprotected static org.ow2.petals.junit.rules.log.handler.InMemoryLogHandlerIN_MEMORY_LOG_HANDLERprotected static StringINTEGRATION_SVC_CFGstatic javax.xml.bind.MarshallerMARSHALLERprotected static StringSERVICE_NAMESPACE_ATTACHMENTprotected static StringSERVICE_NAMESPACE_SIMPLEstatic StringSIMPLE_SU_CONSUMEstatic StringSIMPLE_SU_PROVIDEprotected static intSTANDARD_HTTP_PORTprotected static StringSVC_ENDPOINT_ATTACHMENTstatic StringSVC_ENDPOINT_SIMPLEprotected static QNameSVC_ITF_NAME_ATTACHMENTstatic QNameSVC_ITF_NAME_SIMPLEprotected static StringSVC_LOCAL_NAME_ATTACHMENTstatic StringSVC_LOCAL_NAME_SIMPLEprotected static QNameSVC_NAME_ATTACHMENTstatic QNameSVC_NAME_SIMPLEprotected static QNameTEST_OPERATION_ATTACHMENT_ECHOstatic QNameTEST_OPERATION_SIMPLE_ECHOstatic QNameTEST_OPERATION_SIMPLE_PRINTstatic javax.xml.bind.UnmarshallerUNMARSHALLERprotected static StringVALID_SU_CONSUME_POP3protected static StringWSS_SIMPLE_SU_CONSUME
-
Constructor Summary
Constructors Constructor Description AbstractComponentTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringaddresingMarFileName()static voidavoidClassCastExceptionOnWSCltStub()Avoid the error 'java.lang.ClassCastException: org.ow2.petals.bc.soap.attachments.EchoResponse$JaxbAccessorF_attachment cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor' when creating the WS client stub.voidclearLogTraces()All log traces must be cleared before starting a unit teststatic org.ow2.petals.component.framework.junit.impl.ConsumesServiceConfigurationcreateSimpleServiceConsumerConfiguration()static org.ow2.petals.component.framework.junit.impl.ProvidesServiceConfigurationcreateSimpleServiceProviderConfiguration()static voidrestoreHackAvoidingClassCastExceptionOnWSCltStub()
-
-
-
Field Detail
-
STANDARD_HTTP_PORT
protected static final int STANDARD_HTTP_PORT
- See Also:
- Constant Field Values
-
HTTP_LISTENING_PORT
protected static final int HTTP_LISTENING_PORT
-
BC_SOAP_LISTENING_PORT
public static final int BC_SOAP_LISTENING_PORT
-
SERVICE_NAMESPACE_ATTACHMENT
protected static final String SERVICE_NAMESPACE_ATTACHMENT
- See Also:
- Constant Field Values
-
SVC_ITF_NAME_ATTACHMENT
protected static final QName SVC_ITF_NAME_ATTACHMENT
-
SVC_LOCAL_NAME_ATTACHMENT
protected static final String SVC_LOCAL_NAME_ATTACHMENT
- See Also:
- Constant Field Values
-
SVC_NAME_ATTACHMENT
protected static final QName SVC_NAME_ATTACHMENT
-
SVC_ENDPOINT_ATTACHMENT
protected static final String SVC_ENDPOINT_ATTACHMENT
- See Also:
- Constant Field Values
-
TEST_OPERATION_ATTACHMENT_ECHO
protected static final QName TEST_OPERATION_ATTACHMENT_ECHO
-
SERVICE_NAMESPACE_SIMPLE
protected static final String SERVICE_NAMESPACE_SIMPLE
- See Also:
- Constant Field Values
-
SVC_ITF_NAME_SIMPLE
public static final QName SVC_ITF_NAME_SIMPLE
-
SVC_LOCAL_NAME_SIMPLE
public static final String SVC_LOCAL_NAME_SIMPLE
- See Also:
- Constant Field Values
-
SVC_NAME_SIMPLE
public static final QName SVC_NAME_SIMPLE
-
SVC_ENDPOINT_SIMPLE
public static final String SVC_ENDPOINT_SIMPLE
- See Also:
- Constant Field Values
-
TEST_OPERATION_SIMPLE_ECHO
public static final QName TEST_OPERATION_SIMPLE_ECHO
-
TEST_OPERATION_SIMPLE_PRINT
public static final QName TEST_OPERATION_SIMPLE_PRINT
-
CXFSERVER
public static org.ow2.petals.junit.rules.cxfserver.CxfServer CXFSERVER
-
VALID_SU_CONSUME_POP3
protected static final String VALID_SU_CONSUME_POP3
- See Also:
- Constant Field Values
-
ATTACHMENT_SU_CONSUME
protected static final String ATTACHMENT_SU_CONSUME
- See Also:
- Constant Field Values
-
ATTACHMENT_SU_PROVIDE
protected static final String ATTACHMENT_SU_PROVIDE
- See Also:
- Constant Field Values
-
SIMPLE_SU_CONSUME
public static final String SIMPLE_SU_CONSUME
- See Also:
- Constant Field Values
-
WSS_SIMPLE_SU_CONSUME
protected static final String WSS_SIMPLE_SU_CONSUME
- See Also:
- Constant Field Values
-
SIMPLE_SU_PROVIDE
public static final String SIMPLE_SU_PROVIDE
- See Also:
- Constant Field Values
-
INTEGRATION_SVC_CFG
protected static final String INTEGRATION_SVC_CFG
- See Also:
- Constant Field Values
-
CONSUMED_OPERATION
protected static final QName CONSUMED_OPERATION
-
IN_MEMORY_LOG_HANDLER
protected static final org.ow2.petals.junit.rules.log.handler.InMemoryLogHandler IN_MEMORY_LOG_HANDLER
-
COMPONENT_UNDER_TEST
protected static final org.ow2.petals.component.framework.junit.Component COMPONENT_UNDER_TEST
-
MARSHALLER
public static javax.xml.bind.Marshaller MARSHALLER
-
UNMARSHALLER
public static javax.xml.bind.Unmarshaller UNMARSHALLER
-
chain
public static final org.junit.rules.TestRule chain
-
COMPONENT
protected static final org.ow2.petals.component.framework.junit.helpers.SimpleComponent COMPONENT
-
-
Method Detail
-
createSimpleServiceProviderConfiguration
public static org.ow2.petals.component.framework.junit.impl.ProvidesServiceConfiguration createSimpleServiceProviderConfiguration()
-
createSimpleServiceConsumerConfiguration
public static org.ow2.petals.component.framework.junit.impl.ConsumesServiceConfiguration createSimpleServiceConsumerConfiguration()
-
addresingMarFileName
public static final String addresingMarFileName()
-
avoidClassCastExceptionOnWSCltStub
public static void avoidClassCastExceptionOnWSCltStub()
Avoid the error 'java.lang.ClassCastException: org.ow2.petals.bc.soap.attachments.EchoResponse$JaxbAccessorF_attachment cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor' when creating the WS client stub. I don't know why. TODO: To remove when the cause will be fixed. Remove alsorestoreHackAvoidingClassCastExceptionOnWSCltStub()
-
restoreHackAvoidingClassCastExceptionOnWSCltStub
public static void restoreHackAvoidingClassCastExceptionOnWSCltStub()
-
clearLogTraces
public void clearLogTraces()
All log traces must be cleared before starting a unit test
-
-