public class CoreMatcherFunctions extends Object
| Constructor and Description |
|---|
CoreMatcherFunctions() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.munit.assertion.api.matchers.Matcher |
both(org.mule.munit.assertion.api.matchers.Matcher first,
org.mule.munit.assertion.api.matchers.Matcher second) |
org.mule.munit.assertion.api.matchers.Matcher |
either(org.mule.munit.assertion.api.matchers.Matcher first,
org.mule.munit.assertion.api.matchers.Matcher second) |
org.mule.munit.assertion.api.matchers.Matcher |
equalTo(Object value) |
org.mule.munit.assertion.api.matchers.Matcher |
not(org.mule.munit.assertion.api.matchers.Matcher matcher) |
org.mule.munit.assertion.api.matchers.Matcher |
notNullValue() |
org.mule.munit.assertion.api.matchers.Matcher |
nullValue() |
org.mule.munit.assertion.api.matchers.Matcher |
withEncoding(String encoding) |
org.mule.munit.assertion.api.matchers.Matcher |
withMediaType(String mediaType) |
@Summary(value="Matches if expression equals a value") public org.mule.munit.assertion.api.matchers.Matcher equalTo(Object value)
@Summary(value="Matches if expression value is not null") public org.mule.munit.assertion.api.matchers.Matcher notNullValue()
@Summary(value="Matches if expression value is null") public org.mule.munit.assertion.api.matchers.Matcher nullValue()
@Summary(value="Matches if expression does not match the given matcher") public org.mule.munit.assertion.api.matchers.Matcher not(org.mule.munit.assertion.api.matchers.Matcher matcher)
@Summary(value="Matches if expression matches both given matchers")
public org.mule.munit.assertion.api.matchers.Matcher both(org.mule.munit.assertion.api.matchers.Matcher first,
org.mule.munit.assertion.api.matchers.Matcher second)
@Summary(value="Matches if expression matches at least one of the given matchers")
public org.mule.munit.assertion.api.matchers.Matcher either(org.mule.munit.assertion.api.matchers.Matcher first,
org.mule.munit.assertion.api.matchers.Matcher second)
@Summary(value="Matches if the expression has a particular encoding")
public org.mule.munit.assertion.api.matchers.Matcher withEncoding(@Optional @Example(value="UTF-8")
String encoding)
@Summary(value="Matches if the expression has a particular media type")
public org.mule.munit.assertion.api.matchers.Matcher withMediaType(@Example(value="text/xml")
String mediaType)
Copyright © 2017 MuleSoft, Inc.. All rights reserved.