public final class ValueMatcher
extends org.hamcrest.TypeSafeMatcher<org.mule.tooling.client.api.value.Value>
Matcher to easily test the structure of a Value| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(org.mule.tooling.client.api.value.Value value) |
static ValueMatcher |
valueWithId(org.hamcrest.Matcher<String> id)
Creates a new instance of the
org.mule.tck.junit4.matcher.ValueMatcher |
static ValueMatcher |
valueWithId(String id)
Creates a new instance of the
ValueMatcher |
ValueMatcher |
withChilds(ValueMatcher... valueMatcher)
Adds the
Value parts to compare. |
ValueMatcher |
withDisplayName(org.hamcrest.Matcher<String> displayName)
Adds a displayName to compare.
|
ValueMatcher |
withDisplayName(String displayName)
Adds a displayName to compare.
|
ValueMatcher |
withPartName(org.hamcrest.Matcher<String> partName)
Adds a partName to compare.
|
ValueMatcher |
withPartName(String partName)
Adds a partName to compare.
|
describeMismatch, describeMismatchSafely, matchespublic static ValueMatcher valueWithId(org.hamcrest.Matcher<String> id)
org.mule.tck.junit4.matcher.ValueMatcherid - of the ValueValueMatcherpublic static ValueMatcher valueWithId(String id)
ValueMatcherid - of the ValueValueMatcherprotected boolean matchesSafely(org.mule.tooling.client.api.value.Value value)
matchesSafely in class org.hamcrest.TypeSafeMatcher<org.mule.tooling.client.api.value.Value>public void describeTo(org.hamcrest.Description description)
public ValueMatcher withDisplayName(String displayName)
displayName - of the ValueValueMatcherpublic ValueMatcher withDisplayName(org.hamcrest.Matcher<String> displayName)
displayName - of the ValueValueMatcherpublic ValueMatcher withPartName(String partName)
partName - of the ValueValueMatcherpublic ValueMatcher withPartName(org.hamcrest.Matcher<String> partName)
partName - of the ValueValueMatcherpublic ValueMatcher withChilds(ValueMatcher... valueMatcher)
Value parts to compare. If is not added the matcher won't compare the childs.valueMatcher - child's matchersValueMatcherCopyright © 2018 MuleSoft, Inc.. All rights reserved.