Uses of Class
com.consol.citrus.context.TestContext
-
-
Uses of TestContext in com.consol.citrus
Methods in com.consol.citrus with parameters of type TestContext Modifier and Type Method Description default voidTestCase. afterTest(TestContext context)Sequence of test actions after test case.default voidTestCase. beforeTest(TestContext context)Sequence of test actions before the test case.voidTestAction. execute(TestContext context)Main execution method doing all workvoidTestCase. executeAction(TestAction action, TestContext context)Executes a single test action with given test context.voidTestCase. finish(TestContext context)Method that will be executed in any case of test case result (success, error) Usually used for clean up tasks.default booleanTestAction. isDisabled(TestContext context)Checks if this action is disabled.booleanCompletable. isDone(TestContext context)Checks for test action to be finished.voidTestCase. start(TestContext context)Starts the test case. -
Uses of TestContext in com.consol.citrus.annotations
Methods in com.consol.citrus.annotations with parameters of type TestContext Modifier and Type Method Description static voidCitrusEndpointAnnotations. injectEndpoints(Object target, TestContext context)Reads allCitrusEndpointandCitrusEndpointConfigrelated annotations on target object field declarations and injects proper endpoint instances. -
Uses of TestContext in com.consol.citrus.condition
Methods in com.consol.citrus.condition with parameters of type TestContext Modifier and Type Method Description StringCondition. getErrorMessage(TestContext context)Construct proper error message for this condition.StringCondition. getSuccessMessage(TestContext context)Construct proper success message for this condition.booleanCondition. isSatisfied(TestContext context)Tests the condition returning true if it is satisfied. -
Uses of TestContext in com.consol.citrus.endpoint
Methods in com.consol.citrus.endpoint with parameters of type TestContext Modifier and Type Method Description EndpointDefaultEndpointFactory. create(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context)EndpointDefaultEndpointFactory. create(String uri, TestContext context)EndpointDefaultEndpointFactory. create(String endpointName, Annotation endpointConfig, TestContext context)EndpointEndpointFactory. create(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context)Finds endpoint by parsing the given endpoint properties.EndpointEndpointFactory. create(String endpointUri, TestContext context)Finds endpoint by parsing the given endpoint uri.EndpointEndpointFactory. create(String endpointName, Annotation endpointConfig, TestContext context)Finds endpoint by parsing the given endpoint annotation.EndpointEndpointComponent. createEndpoint(String endpointUri, TestContext context)Creates proper endpoint instance from endpoint uri. -
Uses of TestContext in com.consol.citrus.functions
Methods in com.consol.citrus.functions with parameters of type TestContext Modifier and Type Method Description StringFunction. execute(List<String> parameterList, TestContext context)Method called on execution.static StringFunctionUtils. replaceFunctionsInString(String str, TestContext context)Search for functions in string and replace with respective function result.static StringFunctionUtils. replaceFunctionsInString(String stringValue, TestContext context, boolean enableQuoting)Search for functions in string and replace with respective function result.static StringFunctionUtils. resolveFunction(String functionString, TestContext context)This method resolves a custom function to its respective result. -
Uses of TestContext in com.consol.citrus.message
Methods in com.consol.citrus.message with parameters of type TestContext Modifier and Type Method Description MessageMessageBuilder. build(TestContext context, String messageType)Builds the control message.Map<String,Object>MessageHeaderBuilder. builderHeaders(TestContext context)Build headers for a message.default Map<String,Object>MessageHeaderDataBuilder. builderHeaders(TestContext context)StringMessageHeaderDataBuilder. buildHeaderData(TestContext context)Build header fragment data for a message.ObjectMessagePayloadBuilder. buildPayload(TestContext context)Builds the message payload.MessageMessageConverter. convertInbound(I externalMessage, C endpointConfiguration, TestContext context)Converts external message to internal representation.OMessageConverter. convertOutbound(Message internalMessage, C endpointConfiguration, TestContext context)Converts internal message representation to external message for outbound communication.voidMessageConverter. convertOutbound(O externalMessage, Message internalMessage, C endpointConfiguration, TestContext context)Converts internal message representation to external message for outbound communication.MessageSelectorMessageSelector.MessageSelectorFactory. create(String key, String value, TestContext context)Create new message selector for given predicates.default StringMessage. print(TestContext context)Prints message content and applies log modifier provided in given test context.voidAbstractMessageProcessor. process(Message message, TestContext context)voidMessageProcessor. process(Message message, TestContext context)Process message with given test context.protected voidAbstractMessageProcessor. processMessage(Message message, TestContext context)Subclasses may overwrite this method in order to modify payload and/or headers of the processed message.default MessageMessageProcessor. transform(Message message, TestContext context)Adapt to message transformer API.MessageMessageTransformer. transform(Message message, TestContext context)Transform message with given test context and return new message. -
Uses of TestContext in com.consol.citrus.message.correlation
Methods in com.consol.citrus.message.correlation with parameters of type TestContext Modifier and Type Method Description StringCorrelationManager. getCorrelationKey(String correlationKeyName, TestContext context)Gets correlation key for given identifier.voidCorrelationManager. saveCorrelationKey(String correlationKeyName, String correlationKey, TestContext context)Creates new correlation key in test context by saving as test variable. -
Uses of TestContext in com.consol.citrus.messaging
Methods in com.consol.citrus.messaging with parameters of type TestContext Modifier and Type Method Description MessageAbstractMessageConsumer. receive(TestContext context)MessageAbstractSelectiveMessageConsumer. receive(TestContext context, long timeout)MessageAbstractSelectiveMessageConsumer. receive(String selector, TestContext context)MessageConsumer. receive(TestContext context)Receive message with default timeout.MessageConsumer. receive(TestContext context, long timeout)Receive message with a given timeout.MessageSelectiveConsumer. receive(String selector, TestContext context)Receive message with a message selector and default timeout.MessageSelectiveConsumer. receive(String selector, TestContext context, long timeout)Receive message with a message selector and a receive timeout.voidProducer. send(Message message, TestContext context)Sends the message. -
Uses of TestContext in com.consol.citrus.report
Methods in com.consol.citrus.report with parameters of type TestContext Modifier and Type Method Description voidMessageListener. onInboundMessage(Message message, TestContext context)Invoked on inbound message event.voidMessageListeners. onInboundMessage(Message message, TestContext context)Delegate to all known message listener instances.voidMessageListener. onOutboundMessage(Message message, TestContext context)Invoked on outbound message event.voidMessageListeners. onOutboundMessage(Message message, TestContext context)Delegate to all known message listener instances. -
Uses of TestContext in com.consol.citrus.util
Methods in com.consol.citrus.util with parameters of type TestContext Modifier and Type Method Description static <T> TTypeConversionUtils. convertStringToType(String value, Class<T> type, TestContext context)Convert value string to required type or read bean of type from application context. -
Uses of TestContext in com.consol.citrus.validation
Methods in com.consol.citrus.validation with parameters of type TestContext Modifier and Type Method Description default voidValidationProcessor. process(Message message, TestContext context)voidGenericValidationProcessor. validate(T payload, Map<String,Object> headers, TestContext context)Subclasses do override this method for validation purpose.voidSchemaValidator. validate(Message message, TestContext context, T validationContext)Validates the given message against schemasvoidValidationProcessor. validate(Message message, TestContext context)Validate callback method with received message.booleanValueMatcher. validate(Object received, Object control, TestContext context)Value matcher verifies the match of given received and control values.voidHeaderValidator. validateHeader(String name, Object received, Object control, TestContext context, HeaderValidationContext validationContext)Validate header values with received value and control value.voidAbstractMessageValidator. validateMessage(Message receivedMessage, Message controlMessage, TestContext context, List<ValidationContext> validationContexts)voidAbstractMessageValidator. validateMessage(Message receivedMessage, Message controlMessage, TestContext context, T validationContext)Validates message with most appropriate validation context.voidDefaultEmptyMessageValidator. validateMessage(Message receivedMessage, Message controlMessage, TestContext context, ValidationContext validationContext)voidMessageValidator. validateMessage(Message receivedMessage, Message controlMessage, TestContext context, List<ValidationContext> validationContexts)Validates a message with given test context and validation context. -
Uses of TestContext in com.consol.citrus.validation.interceptor
Methods in com.consol.citrus.validation.interceptor with parameters of type TestContext Modifier and Type Method Description MessageMessageConstructionInterceptor. interceptMessageConstruction(Message message, String messageType, TestContext context)Deprecated.Intercept the message construction.default MessageMessageConstructionInterceptor. transform(Message message, TestContext context)Deprecated. -
Uses of TestContext in com.consol.citrus.validation.matcher
Methods in com.consol.citrus.validation.matcher with parameters of type TestContext Modifier and Type Method Description static voidValidationMatcherUtils. resolveValidationMatcher(String fieldName, String fieldValue, String validationMatcherExpression, TestContext context)This method resolves a custom validationMatcher to its respective result.voidValidationMatcher. validate(String fieldName, String value, List<String> controlParameters, TestContext context)Method called on validation. -
Uses of TestContext in com.consol.citrus.validation.script
Methods in com.consol.citrus.validation.script with parameters of type TestContext Modifier and Type Method Description voidGroovyScriptExecutor. validate(Message receivedMessage, TestContext context) -
Uses of TestContext in com.consol.citrus.validation.script.sql
Methods in com.consol.citrus.validation.script.sql with parameters of type TestContext Modifier and Type Method Description voidSqlResultSetScriptExecutor. validate(List<Map<String,Object>> rows, TestContext context)Validates the SQL result set. -
Uses of TestContext in com.consol.citrus.variable
Methods in com.consol.citrus.variable with parameters of type TestContext Modifier and Type Method Description booleanSegmentVariableExtractor. canExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)Extract variables from given object.booleanSegmentVariableExtractorRegistry.MapVariableExtractor. canExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)booleanSegmentVariableExtractorRegistry.ObjectFieldValueExtractor. canExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)protected abstract ObjectSegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor. doExtractIndexedValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)Extract the indexed value from the objectprotected ObjectSegmentVariableExtractorRegistry.MapVariableExtractor. doExtractIndexedValue(TestContext testContext, Object parentObject, VariableExpressionSegmentMatcher matcher)protected ObjectSegmentVariableExtractorRegistry.ObjectFieldValueExtractor. doExtractIndexedValue(TestContext testContext, Object parentObject, VariableExpressionSegmentMatcher matcher)protected abstract ObjectSegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor. doExtractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)ObjectSegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor. doExtractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)ObjectSegmentVariableExtractor. extractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)Extract variables from given object.ObjectSegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor. extractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)voidVariableExtractor. extractVariables(Message message, TestContext context)Extract variables from given message.static ObjectVariableExpressionIterator. getLastExpressionValue(String variableExpression, TestContext testContext, List<SegmentVariableExtractor> extractors)default voidVariableExtractor. process(Message message, TestContext context)static StringVariableUtils. replaceVariablesInString(String str, TestContext context, boolean enableQuoting)Replace all variable expression in a string with its respective value.Constructors in com.consol.citrus.variable with parameters of type TestContext Constructor Description VariableExpressionIterator(String variableExpression, TestContext testContext, List<SegmentVariableExtractor> segmentValueExtractors) -
Uses of TestContext in com.consol.citrus.variable.dictionary
Methods in com.consol.citrus.variable.dictionary with parameters of type TestContext Modifier and Type Method Description <R> RDataDictionary. translate(T key, R value, TestContext context)Translate value with given path in message content.
-