Class Assert
- java.lang.Object
-
- org.junit.Assert
-
- org.ow2.petals.component.framework.test.Assert
-
- org.ow2.petals.binding.soap.monit.Assert
-
public class Assert extends org.ow2.petals.component.framework.test.AssertAssertion class for unit tests about MONIT trace of BC SOAP- Author:
- Christophe DENEUX - Linagora
-
-
Constructor Summary
Constructors Constructor Description Assert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.ow2.petals.commons.log.FlowLogDataassertMonitSoapConsumerExtBegin(String prefixMsg, String expectedUrl, LogRecord logRecord)Asserts that a log record is a MONIT trace associated to the start of an external service consumer of the BC SOAP.static org.ow2.petals.commons.log.FlowLogDataassertMonitSoapConsumerExtBegin(String prefixMsg, URI expectedUrl, LogRecord logRecord)Asserts that a log record is a MONIT trace associated to the start of an external service consumer of the BC SOAP.static org.ow2.petals.commons.log.FlowLogDataassertMonitSoapConsumerExtBeginLog(LogRecord logRecord, String externalWebServiceUrl)Asserts that a log record is a MONIT trace associated to the start of an external service consumer of the BC SOAP.static org.ow2.petals.commons.log.FlowLogDataassertMonitSoapProviderExtBeginLog(org.ow2.petals.commons.log.FlowLogData previousFlowLogData, LogRecord logRecord, String externalWebServiceUrl)Asserts that a log record is a MONIT trace associated to the start of an external service provider of the BC SOAP.-
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
-
assertMonitSoapConsumerExtBegin
public static org.ow2.petals.commons.log.FlowLogData assertMonitSoapConsumerExtBegin(String prefixMsg, URI expectedUrl, LogRecord logRecord)
Asserts that a log record is a MONIT trace associated to the start of an external service consumer of the BC SOAP. If it isn't, it throws an
AssertionError.In addition to the checks of
Assert.assertMonitConsumerExtBeginLog(String, LogRecord), the following checks are applied:- the web-service URL used is the expected one.
- Parameters:
prefixMsg- Prefix message to add before the assertion message. No prefix added ifnull.expectedUrl- The expected web-service URL.logRecord- The actual log record to check.- Returns:
- The flow log data of the log record
-
assertMonitSoapConsumerExtBegin
public static org.ow2.petals.commons.log.FlowLogData assertMonitSoapConsumerExtBegin(String prefixMsg, String expectedUrl, LogRecord logRecord)
Asserts that a log record is a MONIT trace associated to the start of an external service consumer of the BC SOAP. If it isn't, it throws an
AssertionError.In addition to the checks of
Assert.assertMonitConsumerExtBeginLog(String, LogRecord), the following checks are applied:- the web-service URL used is the expected one.
- Parameters:
prefixMsg- Prefix message to add before the assertion message. No prefix added ifnull.expectedUrl- The expected web-service URL.logRecord- The actual log record to check.- Returns:
- The flow log data of the log record
-
assertMonitSoapProviderExtBeginLog
public static org.ow2.petals.commons.log.FlowLogData assertMonitSoapProviderExtBeginLog(org.ow2.petals.commons.log.FlowLogData previousFlowLogData, LogRecord logRecord, String externalWebServiceUrl)Asserts that a log record is a MONIT trace associated to the start of an external service provider of the BC SOAP. If it isn't it throws an
AssertionError.In addition to the checks of
Assert.assertMonitProviderExtBeginLog(FlowLogData, LogRecord), the following checks are applied:- the URL of the external web-service invoked.
- Parameters:
previousFlowLogData- The flow attributes of the MONIT trace associated to the step startup of the internal service provider running on BC sidelogRecord- The actual log record to checkexternalWebServiceUrl- The URL of the external web-service invoked- Returns:
- The flow log data of the log record
-
assertMonitSoapConsumerExtBeginLog
public static org.ow2.petals.commons.log.FlowLogData assertMonitSoapConsumerExtBeginLog(LogRecord logRecord, String externalWebServiceUrl)
Asserts that a log record is a MONIT trace associated to the start of an external service consumer of the BC SOAP. If it isn't it throws an
AssertionError.In addition to the checks of
Assert.assertMonitConsumerExtBeginLog(LogRecord), the following checks are applied:- the URL of the web-service invoked.
- Parameters:
logRecord- The actual log record to checkexternalWebServiceUrl- The URL of the external web-service invoked- Returns:
- The flow log data of the log record
-
-