public final class BaselineMatchers extends Object
Matchers class.
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<Map<? extends Object,? extends Object>> |
aMapWithSize()
Matches map size against baseline.
|
static org.hamcrest.Matcher<Object[]> |
arrayWithSize()
Matches array with size.
|
static org.hamcrest.Matcher<Boolean> |
baselineBoolean()
Matcher using persistence.
|
static org.hamcrest.Matcher<Integer> |
baselineInteger()
Matcher using persistence.
|
static DifferentiatingMatcher<String> |
baselineString()
Matcher using persistence.
|
static org.hamcrest.Matcher<List<String>> |
baselineStringList()
Matcher using persistence.
|
static <T> DifferentiatingMatcher<T> |
on(Difference difference,
org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
|
static <T> DifferentiatingMatcher<T> |
on(Differences differences,
org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
|
static <T> DifferentiatingMatcher<T> |
on(Enum difference,
org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
|
static <T> DifferentiatingMatcher<T> |
on(String difference,
org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
|
public static org.hamcrest.Matcher<Map<? extends Object,? extends Object>> aMapWithSize()
Matchers.aMapWithSize(int)
public static org.hamcrest.Matcher<Object[]> arrayWithSize()
Matchers.arrayWithSize(int)
public static org.hamcrest.Matcher<Boolean> baselineBoolean()
public static org.hamcrest.Matcher<Integer> baselineInteger()
public static DifferentiatingMatcher<String> baselineString()
public static org.hamcrest.Matcher<List<String>> baselineStringList()
public static <T> DifferentiatingMatcher<T> on(String difference, org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
T
- type matcher can handledifference
- a Difference
object.matcher
- a Matcher
object.DifferentiatingMatcher
object.public static <T> DifferentiatingMatcher<T> on(Enum difference, org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
T
- type matcher can handledifference
- enum value to use as differencematcher
- to differentiate with this differenceDifferentiatingMatcher
object.public static <T> DifferentiatingMatcher<T> on(Difference difference, org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
T
- type matcher can handledifference
- a Difference
object.matcher
- a Matcher
object.DifferentiatingMatcher
object.public static <T> DifferentiatingMatcher<T> on(Differences differences, org.hamcrest.Matcher<T> matcher)
Adds a difference to following matchers.
T
- type matcher can handledifferences
- will be used to differentiate the matchermatcher
- a Matcher
to be differentiated.DifferentiatingMatcher
object.Copyright © 2017–2022 wcm.io QA. All rights reserved.