public abstract class ColumnMatchers extends Object
ColumnMatchers class defines static factory methods for
column matching.| Constructor and Description |
|---|
ColumnMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<T> |
columnIsNotNull(String column,
Class<T> operand)
Creates a matcher that matches when the examined object has a given column
not
null, as determined by the associated fields' values. |
static <T> org.hamcrest.Matcher<T> |
columnIsNull(String column,
Class<T> operand)
Creates a matcher that matches when the examined object has a given column
null, as determined by the associated fields' values. |
static <T,V> org.hamcrest.Matcher<T> |
columnMatches(String column,
Class<T> operand,
org.hamcrest.Matcher<V> matcher)
Creates a matcher that matches when the examined object has a given column
value that matches the specified matcher, as determined by the associated
fields' value.
|
static <T> org.hamcrest.Matcher<T> |
columnsCloseTo(String column,
T operand,
double epsilon)
Creates a matcher that matches when the examined object has a given column
equal with a tolerable error to the same column on the specified
operand, as determined by calling
Objects.deepEquals(java.lang.Object, java.lang.Object, double) method with each associated fields'
values. |
static <T> org.hamcrest.Matcher<T> |
columnsCloseTo(T operand,
double epsilon,
String... ignore)
Creates a matcher that matches when the examined object has all columns
equal with a tolerable error to the same columns of the specified
operand, as determined by calling
Objects.deepEquals(java.lang.Object, java.lang.Object, double) method with each associated fields'
values. |
static <T> org.hamcrest.Matcher<T> |
columnsEqualTo(String column,
T operand)
Creates a matcher that matches when the examined object has a given column
equal to the same column on the specified
operand, as
determined by calling Objects.deepEquals(java.lang.Object, java.lang.Object) method with each
associated fields' values. |
static <T> org.hamcrest.Matcher<T> |
columnsEqualTo(T operand,
String... ignore)
Creates a matcher that matches when the examined object has all columns
equal to the same columns of the specified
operand, as
determined by calling Objects.deepEquals(java.lang.Object, java.lang.Object) method with each
associated fields' values. |
public static <T> org.hamcrest.Matcher<T> columnsEqualTo(T operand,
String... ignore)
operand, as
determined by calling Objects.deepEquals(java.lang.Object, java.lang.Object) method with each
associated fields' values.T - the type of object to matchoperand - the pojo to compare againstignore - column names to ignore during comparison (may be
null or empty)public static <T> org.hamcrest.Matcher<T> columnsEqualTo(String column, T operand)
operand, as
determined by calling Objects.deepEquals(java.lang.Object, java.lang.Object) method with each
associated fields' values.T - the type of object to matchcolumn - the name of the column to compareoperand - the pojo to compare againstpublic static <T> org.hamcrest.Matcher<T> columnsCloseTo(T operand,
double epsilon,
String... ignore)
operand, as determined by calling
Objects.deepEquals(java.lang.Object, java.lang.Object, double) method with each associated fields'
values.T - the type of object to matchoperand - the pojo to compare againstepsilon - the tolerable errorignore - column names to ignore during comparison (may be
null or empty)public static <T> org.hamcrest.Matcher<T> columnsCloseTo(String column, T operand, double epsilon)
operand, as determined by calling
Objects.deepEquals(java.lang.Object, java.lang.Object, double) method with each associated fields'
values.T - the type of object to matchcolumn - the name of the column to compareoperand - the pojo to compare againstepsilon - the tolerable errorpublic static <T> org.hamcrest.Matcher<T> columnIsNull(String column, Class<T> operand)
null, as determined by the associated fields' values.T - the type of object to matchcolumn - the name of the column to compareoperand - the class of object to compare againstpublic static <T> org.hamcrest.Matcher<T> columnIsNotNull(String column, Class<T> operand)
null, as determined by the associated fields' values.T - the type of object to matchcolumn - the name of the column to compareoperand - the class of object to compare againstpublic static <T,V> org.hamcrest.Matcher<T> columnMatches(String column, Class<T> operand, org.hamcrest.Matcher<V> matcher)
T - the type of object to matchV - the type of value for the column to matchcolumn - the name of the column to compareoperand - the class of object to compare againstmatcher - the matcher for the value of the column to match withCopyright (C) 2015-2017 The Helenus Driver Project Authors.