Class MonitTraceFilteringServiceConsumerTest
- java.lang.Object
-
- org.junit.Assert
-
- org.ow2.petals.component.framework.test.Assert
-
- org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest
-
- org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
- org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBCWithExtEvtCfg
-
- org.ow2.petals.binding.soap.monit.MonitTraceFilteringServiceConsumerTest
-
public class MonitTraceFilteringServiceConsumerTest extends org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBCWithExtEvtCfgUnit tests about MONIT trace filtering for mode 'consumer'.
The environment used for these unit tests is based on
AbstractComponentTest.- Author:
- Christophe DENEUX - Linagora
-
-
Constructor Summary
Constructors Constructor Description MonitTraceFilteringServiceConsumerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.ow2.petals.commons.log.FlowLogDatacheckMonitConsumerExtBeginLog(org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, String prefixMsg, LogRecord logRecord)protected org.ow2.petals.component.framework.junit.MessagecreateResponseMessage(org.ow2.petals.component.framework.junit.RequestMessage request, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType)protected org.ow2.petals.component.framework.junit.impl.ConsumesServiceConfigurationcreateServiceConsumer(int ruleIdx, org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep)protected voidfiresExternalEvent(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg rule)protected StringgetConsumedServiceEndpoint()protected QNamegetConsumedServiceInterface()protected QNamegetConsumedServiceName()protected QNamegetConsumedServiceOperation(org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep)protected URLgetConsumedServiceWsdl()protected org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants[]getMepsSupported()protected voidwaitExchangeExecutionEnd(Optional<javax.jbi.messaging.ExchangeStatus> statusReturned, boolean faultReturned, String ruleIdPrefix, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, boolean isConsMonitTraceExpected)-
Methods inherited from class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBCWithExtEvtCfg
getCellProcessor, getCsvBeanClass, getRuleResourceName
-
Methods inherited from class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC
assertMonitTracesForServiceConsumption, executeExchangeReturningFault, executeExchangeReturningResponse, executeExchangeReturningStatus, monitTracesFiltering
-
Methods inherited from class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest
extractEnd, extractFailure, onExchangeExecutionEnd, onExchangeExecutionStart, onServiceUnitStartup, parseAsOptional, parseExpectedResultAsBool, parseExpectedResultAsOptional
-
Methods inherited from class org.ow2.petals.component.framework.test.Assert
assertMonitConsumerExtBeginLog, assertMonitConsumerExtBeginLog, assertMonitConsumerExtBeginLog, assertMonitConsumerExtBeginLog, assertMonitConsumerExtEndLog, assertMonitConsumerExtEndLog, assertMonitConsumerExtFailureLog, assertMonitConsumerExtFailureLog, assertMonitFlowInstanceIdEquals, assertMonitFlowInstanceIdNotEquals, assertMonitFlowStepCorrelatedFlowStep, assertMonitFlowStepIdEquals, assertMonitFlowStepIdNotEquals, assertMonitProviderBeginLog, assertMonitProviderBeginLog, assertMonitProviderBeginLog, assertMonitProviderBeginLog, assertMonitProviderBeginLog, assertMonitProviderBeginLog, assertMonitProviderBeginLogNotInFlow, assertMonitProviderEndLog, assertMonitProviderEndLog, assertMonitProviderEndLog, assertMonitProviderEndLog, assertMonitProviderExtBeginLog, assertMonitProviderExtBeginLog, assertMonitProviderExtEndLog, assertMonitProviderExtEndLog, assertMonitProviderExtFailureLog, assertMonitProviderExtFailureLog, assertMonitProviderFailureLog, assertMonitProviderFailureLog, checkCommonsAttribute, checkCommonsAttribute
-
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
-
-
-
-
Method Detail
-
getMepsSupported
protected org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants[] getMepsSupported()
- Specified by:
getMepsSupportedin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest
-
getConsumedServiceEndpoint
protected String getConsumedServiceEndpoint()
- Specified by:
getConsumedServiceEndpointin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
getConsumedServiceName
protected QName getConsumedServiceName()
- Specified by:
getConsumedServiceNamein classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
getConsumedServiceInterface
protected QName getConsumedServiceInterface()
- Specified by:
getConsumedServiceInterfacein classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
getConsumedServiceOperation
protected QName getConsumedServiceOperation(org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep)
- Specified by:
getConsumedServiceOperationin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
getConsumedServiceWsdl
protected URL getConsumedServiceWsdl()
- Overrides:
getConsumedServiceWsdlin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
createServiceConsumer
protected org.ow2.petals.component.framework.junit.impl.ConsumesServiceConfiguration createServiceConsumer(int ruleIdx, org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep)- Specified by:
createServiceConsumerin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
firesExternalEvent
protected void firesExternalEvent(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg rule) throws Exception- Specified by:
firesExternalEventin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>- Throws:
Exception
-
waitExchangeExecutionEnd
protected void waitExchangeExecutionEnd(Optional<javax.jbi.messaging.ExchangeStatus> statusReturned, boolean faultReturned, String ruleIdPrefix, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, boolean isConsMonitTraceExpected) throws Exception
- Overrides:
waitExchangeExecutionEndin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>- Throws:
Exception
-
createResponseMessage
protected org.ow2.petals.component.framework.junit.Message createResponseMessage(org.ow2.petals.component.framework.junit.RequestMessage request, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType)- Specified by:
createResponseMessagein classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
checkMonitConsumerExtBeginLog
protected org.ow2.petals.commons.log.FlowLogData checkMonitConsumerExtBeginLog(org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, String prefixMsg, LogRecord logRecord)- Specified by:
checkMonitConsumerExtBeginLogin classorg.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
-
-