public abstract class AvcMatchers
extends com.avcompris.util.AbstractUtils
| Constructor and Description |
|---|
AvcMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<T> |
contains(String ref)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
contains(String ref,
String description)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
containsFileCount(int refFileCount)
create a new constraint on a directory.
|
static <T> org.hamcrest.Matcher<T> |
containsFileCount(int refFileCount,
String description)
create a new constraint on a directory.
|
static <T> org.hamcrest.Matcher<T> |
doesntContain(String ref)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
doesntContain(String ref,
String description)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
endsWith(String ref)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
endsWith(String ref,
String description)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
equalTo(int ref)
create a new constraint on an integer.
|
static <T> org.hamcrest.Matcher<T> |
equalTo(int ref,
String description)
create a new constraint on an integer.
|
static <T> org.hamcrest.Matcher<T> |
equalTo(long ref)
create a new constraint on an long.
|
static <T> org.hamcrest.Matcher<T> |
equalTo(long ref,
String description)
create a new constraint on an long.
|
static <T> org.hamcrest.Matcher<T> |
fileContains(String text)
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileContains(String text,
String description)
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileDoesntContain(String text)
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileDoesntContain(String text,
String description)
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileDoesntExist()
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileDoesntExist(String description)
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileExists()
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
fileExists(String description)
create a new constraint on a file.
|
static <T> org.hamcrest.Matcher<T> |
greaterThan(int ref)
create a new constraint on an integer.
|
static <T> org.hamcrest.Matcher<T> |
greaterThan(int ref,
String description)
create a new constraint on an integer.
|
static <T> org.hamcrest.Matcher<T> |
greaterThan(long ref)
create a new constraint on an long.
|
static <T> org.hamcrest.Matcher<T> |
greaterThan(long ref,
String description)
create a new constraint on an long.
|
static <T> org.hamcrest.Matcher<T> |
instanceOf(Class<?> c)
create a new constraint on an instance.
|
static <T> org.hamcrest.Matcher<T> |
instanceOf(Class<?> c,
String description)
create a new constraint on an instance.
|
static <T> org.hamcrest.Matcher<T> |
isIn(String[] ref) |
static <T> org.hamcrest.Matcher<T> |
isIn(String[] ref,
String description) |
static <T> org.hamcrest.Matcher<T> |
isIn(String methodName,
Object[] ref) |
static <T> org.hamcrest.Matcher<T> |
isIn(String methodName,
Object[] ref,
String description) |
static <T> org.hamcrest.Matcher<T> |
isLowerCase()
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
isLowerCase(String description)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
isUpperCase()
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
isUpperCase(String description)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
lengthGreaterOrEqualThan(int refArrayLength)
create a new constraint on an array's length.
|
static <T> org.hamcrest.Matcher<T> |
lengthGreaterOrEqualThan(int refArrayLength,
String description)
create a new constraint on an array's length.
|
static <T> org.hamcrest.Matcher<T> |
lesserThan(org.joda.time.DateTime ref)
create a new constraint on an date.
|
static <T> org.hamcrest.Matcher<T> |
lesserThan(int ref)
create a new constraint on an integer.
|
static <T> org.hamcrest.Matcher<T> |
lesserThan(int ref,
String description)
create a new constraint on an integer.
|
static <T> org.hamcrest.Matcher<T> |
lesserThan(long ref)
create a new constraint on an long.
|
static <T> org.hamcrest.Matcher<T> |
lesserThan(long ref,
String description)
create a new constraint on an long.
|
static <T> org.hamcrest.Matcher<T> |
lesserThan(String refDescription,
org.joda.time.DateTime ref,
String description)
create a new constraint on an date.
|
static <T> org.hamcrest.Matcher<T> |
notNullValue()
create a new constraint on an object.
|
static <T> org.hamcrest.Matcher<T> |
notNullValue(String description)
create a new constraint on an object.
|
static <T> org.hamcrest.Matcher<T> |
nullValue()
create a new constraint on an object.
|
static <T> org.hamcrest.Matcher<T> |
nullValue(String description)
create a new constraint on an object.
|
static <T> org.hamcrest.Matcher<T> |
startsWith(String ref)
create a new constraint on an
String. |
static <T> org.hamcrest.Matcher<T> |
startsWith(String ref,
String description)
create a new constraint on an
String. |
public static <T> org.hamcrest.Matcher<T> equalTo(int ref,
@Nullable
String description)
T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
fileCount"Matcher that will take an integer as a parameterpublic static <T> org.hamcrest.Matcher<T> equalTo(int ref)
T - the actual value's typeref - the reference valueMatcher that will take an integer as a parameterpublic static <T> org.hamcrest.Matcher<T> lesserThan(int ref,
@Nullable
String description)
T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
fileCount"Matcher that will take an integer as a parameterpublic static <T> org.hamcrest.Matcher<T> lesserThan(int ref)
T - the actual value's typeref - the reference valueMatcher that will take an integer as a parameterpublic static <T> org.hamcrest.Matcher<T> greaterThan(int ref,
@Nullable
String description)
T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
fileCount"Matcher that will take an integer as a parameterpublic static <T> org.hamcrest.Matcher<T> greaterThan(int ref)
T - the actual value's typeref - the reference valueMatcher that will take an integer as a parameterpublic static <T> org.hamcrest.Matcher<T> equalTo(long ref,
@Nullable
String description)
T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "filesizeMatcher that will take a long as a parameterpublic static <T> org.hamcrest.Matcher<T> equalTo(long ref)
T - the actual value's typeref - the reference valueMatcher that will take a long as a parameterpublic static <T> org.hamcrest.Matcher<T> greaterThan(long ref,
@Nullable
String description)
T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "filesize
"Matcher that will take a long as a parameterpublic static <T> org.hamcrest.Matcher<T> greaterThan(long ref)
T - the actual value's typeref - the reference valueMatcher that will take a long as a parameterpublic static <T> org.hamcrest.Matcher<T> lesserThan(long ref,
@Nullable
String description)
T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "filesize
"Matcher that will take a long as a parameterpublic static <T> org.hamcrest.Matcher<T> lesserThan(long ref)
T - the actual value's typeref - the reference valueMatcher that will take a long as a parameterpublic static <T> org.hamcrest.Matcher<T> lesserThan(org.joda.time.DateTime ref)
T - the actual value's typeref - the reference dateMatcher that will take a date as a parameterpublic static <T> org.hamcrest.Matcher<T> lesserThan(@Nullable
String refDescription,
org.joda.time.DateTime ref,
@Nullable
String description)
T - the actual value's typerefDescription - the description for the ref date valueref - the reference datedescription - the name of the value, for instance "fileDate
"Matcher that will take a date as a parameterpublic static <T> org.hamcrest.Matcher<T> lengthGreaterOrEqualThan(int refArrayLength)
T - the actual value's typerefArrayLength - the reference length for the arrayMatcher that will take an array as a parameterpublic static <T> org.hamcrest.Matcher<T> lengthGreaterOrEqualThan(int refArrayLength,
@Nullable
String description)
T - the actual value's typerefArrayLength - the reference length for the arraydescription - the name of the array, for instance "dir".Matcher that will take an array as a parameterpublic static <T> org.hamcrest.Matcher<T> notNullValue()
T - the actual value's typeMatcher that will take an object as a parameterpublic static <T> org.hamcrest.Matcher<T> notNullValue(@Nullable
String description)
T - the actual value's typedescription - the name of the value, for instance "file"Matcher that will take an object as a parameterpublic static <T> org.hamcrest.Matcher<T> nullValue()
T - the actual value's typeMatcher that will take an object as a parameterpublic static <T> org.hamcrest.Matcher<T> nullValue(@Nullable
String description)
T - the actual value's typedescription - the name of the value, for instance "file"Matcher that will take an object as a parameterpublic static <T> org.hamcrest.Matcher<T> fileExists()
T - the actual value's typeMatcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileExists(@Nullable
String description)
T - the actual value's typedescription - the name of the file, for instance "xmlFile"Matcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileDoesntExist()
T - the actual value's typeMatcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileDoesntExist(@Nullable
String description)
T - the actual value's typedescription - the name of the file, for instance "xmlFile"Matcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileContains(String text, @Nullable String description)
T - the actual value's typetext - the text to check the presence for in the given filedescription - the name of the file, for instance "xmlFile"Matcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileContains(String text)
T - the actual value's typetext - the text to check the presence for in the given fileMatcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileDoesntContain(String text)
T - the actual value's typetext - the text to check the presence for in the given fileMatcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> fileDoesntContain(String text, @Nullable String description)
T - the actual value's typetext - the text to check the presence for in the given filedescription - the name of the file, for instance "xmlFile"Matcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> containsFileCount(int refFileCount)
T - the actual value's typerefFileCount - the reference file countMatcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> containsFileCount(int refFileCount,
@Nullable
String description)
T - the actual value's typerefFileCount - the reference file countdescription - the name of the dir, for instance "outputDir"Matcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> startsWith(String ref)
String.T - the actual value's typeref - the reference valueMatcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> startsWith(String ref, @Nullable String description)
String.T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
firstName"Matcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> endsWith(String ref)
String.T - the actual value's typeref - the reference valueMatcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> endsWith(String ref, @Nullable String description)
String.T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
firstName"Matcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> contains(String ref, @Nullable String description)
String.T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
firstName"Matcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> contains(String ref)
String.T - the actual value's typeref - the reference valueMatcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> doesntContain(String ref, @Nullable String description)
String.T - the actual value's typeref - the reference valuedescription - the name of the value, for instance "
firstName"Matcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> doesntContain(String ref)
String.T - the actual value's typeref - the reference valueMatcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> isIn(String[] ref)
public static <T> org.hamcrest.Matcher<T> isIn(String methodName, Object[] ref, @Nullable String description)
public static <T> org.hamcrest.Matcher<T> isLowerCase()
String.T - the actual value's typeMatcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> isLowerCase(@Nullable
String description)
String.T - the actual value's typedescription - the name of the value, for instance "
firstName"Matcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> isUpperCase()
String.T - the actual value's typeMatcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> isUpperCase(@Nullable
String description)
String.T - the actual value's typedescription - the name of the value, for instance "
firstName"Matcher that will take an String as a parameterpublic static <T> org.hamcrest.Matcher<T> instanceOf(Class<?> c)
T - the actual value's typec - the class the instance should be an instance ofMatcher that will take an file as a parameterpublic static <T> org.hamcrest.Matcher<T> instanceOf(Class<?> c, @Nullable String description)
T - the actual value's typec - the class the instance should be an instance ofdescription - the name the bvalue, for instance "firstName"Matcher that will take an file as a parameterCopyright © 2018 David Andrianavalontsalama. All rights reserved.