public class AssertModule extends Object
Module to assert payload's results
| Constructor and Description |
|---|
AssertModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertMatcherResult(MatcherResult matcherResult,
String message)
Asserts the results of a matcher expression
|
protected void |
assertThat(String message,
Object value,
org.hamcrest.Matcher is)
Assert that an expression value matches a condition .
|
void |
assertThat(String message,
org.mule.runtime.api.metadata.TypedValue expression,
org.hamcrest.Matcher is)
Assert that expression matches a condition .
|
public void assertThat(String message, org.mule.runtime.api.metadata.TypedValue expression, org.hamcrest.Matcher is)
Assert that expression matches a condition .
message - Description message to be shown in case of failure.expression - Expression result to be assertedis - Matcher expressionprotected void assertThat(String message, Object value, org.hamcrest.Matcher is)
Assert that an expression value matches a condition .
Useful for testing since it is easier to use
message - Description message to be shown in case of failure.value - Expression value to be assertedis - Matcher expressionpublic void assertMatcherResult(MatcherResult matcherResult, String message)
Asserts the results of a matcher expression
message - Description message to be shown in case of failure.matcherResult - Matcher result to be assertedCopyright © 2019. All rights reserved.