DataBuilder

public final class DataBuilder

Class for building data matchers

This class helps to build matches for data. Please note that any function invoking will add specific matcher to the list and after that all of them will be combined with help of AllOf.allOf()

See also

AllOf.allOf

()

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final Unit equals(Object obj)

Matches data which is equal to given object

Link copied to clipboard
public final Matcher<Object> getDataMatcher()

Returns combined data matchers with AllOf.allOf()

Link copied to clipboard
public final Unit isInstanceOf(Class<?> clazz)

Matches data whose class matches given class

Link copied to clipboard
public final Unit notEquals(Object obj)

Matches data which is not equal to given object

Link copied to clipboard
public final Unit withMatcher(Matcher<Object> matcher)

Matches data with given custom matcher