Class MonitTraceFilteringServiceConsumerTest


  • public class MonitTraceFilteringServiceConsumerTest
    extends org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBCWithExtEvtCfg

    Unit tests about MONIT trace filtering for mode 'consumer'.

    The environment used for these unit tests is based on AbstractComponentTest.

    Author:
    Christophe DENEUX - Linagora
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest

        org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType
    • Field Summary

      • Fields inherited from class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC

        chain, component, componentUnderTest, LOG
      • Fields inherited from class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest

        IN_MEMORY_LOG_HANDLER, SU_NAME, TEMP_FOLDER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)  
      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)  
      protected org.ow2.petals.component.framework.junit.impl.ConsumesServiceConfiguration createServiceConsumer​(int ruleIdx, org.ow2.petals.component.framework.jbidescriptor.generated.MEPType mep)  
      protected void firesExternalEvent​(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep, org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg rule)  
      protected String getConsumedServiceEndpoint()  
      protected QName getConsumedServiceInterface()  
      protected QName getConsumedServiceName()  
      protected QName getConsumedServiceOperation​(org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest.ExpectedResponseType expectedResponseType, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants mep)  
      protected URL getConsumedServiceWsdl()  
      protected org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants[] getMepsSupported()  
      protected void waitExchangeExecutionEnd​(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
    • Constructor Detail

      • MonitTraceFilteringServiceConsumerTest

        public MonitTraceFilteringServiceConsumerTest()
    • Method Detail

      • getMepsSupported

        protected org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfOperation.MEPPatternConstants[] getMepsSupported()
        Specified by:
        getMepsSupported in class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTest
      • getConsumedServiceEndpoint

        protected String getConsumedServiceEndpoint()
        Specified by:
        getConsumedServiceEndpoint in class org.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:
        getConsumedServiceName in class org.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:
        getConsumedServiceInterface in class org.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:
        getConsumedServiceOperation in class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>
      • getConsumedServiceWsdl

        protected URL getConsumedServiceWsdl()
        Overrides:
        getConsumedServiceWsdl in class org.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:
        createServiceConsumer in class org.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:
        firesExternalEvent in class org.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:
        waitExchangeExecutionEnd in class org.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:
        createResponseMessage in class org.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:
        checkMonitConsumerExtBeginLog in class org.ow2.petals.component.framework.junit.monitoring.business.filtering.AbstractMonitTraceFilteringTestForServiceConsumerBC<org.ow2.petals.component.framework.junit.monitoring.business.filtering.MonitTraceFilteringRuleForServiceConsumerWithExtEvtCfg>