
com.nitorcreations.Matchers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matchers Show documentation
Show all versions of matchers Show documentation
Useful Hamcrest 1.3 matchers
The newest version!
// Generated source.
package com.nitorcreations;
public class Matchers {
public static > org.hamcrest.Matcher emptyList() {
return com.nitorcreations.matchers.CollectionMatchers.emptyList();
}
/**
* Matches an {@link Iterable} that contains exactly the elements of the given collection
* in the same order.
*/
public static org.hamcrest.Matcher> containsElements(java.util.Collection coll) {
return com.nitorcreations.matchers.CollectionMatchers.containsElements(coll);
}
/**
* Matches an {@link Iterable} that contains exactly the elements of the given collection
* in any order.
*/
public static org.hamcrest.Matcher> containsElementsInAnyOrder(java.util.Collection coll) {
return com.nitorcreations.matchers.CollectionMatchers.containsElementsInAnyOrder(coll);
}
/**
* Matches an {@link Iterable} that contains all elements of the given collection in any order.
*/
public static org.hamcrest.Matcher> hasItemsOf(java.util.Collection items) {
return com.nitorcreations.matchers.CollectionMatchers.hasItemsOf(items);
}
/**
* Matches an {@link Iterable} that contains no duplicate elements.
*/
public static > org.hamcrest.Matcher super S> hasNoDuplicates(java.lang.Class ofClass) {
return com.nitorcreations.matchers.CollectionMatchers.hasNoDuplicates(ofClass);
}
/**
*
*
* @see CountThat
*/
public static org.hamcrest.Matcher> countThat(org.hamcrest.Matcher itemMatcher, int size) {
return com.nitorcreations.matchers.CountThat.countThat(itemMatcher, size);
}
/**
*
*
* @see CountThat
*/
public static org.hamcrest.Matcher> countThat(org.hamcrest.Matcher itemMatcher, org.hamcrest.Matcher size) {
return com.nitorcreations.matchers.CountThat.countThat(itemMatcher, size);
}
public static org.hamcrest.Matcher> hasLastItem(org.hamcrest.Matcher item) {
return com.nitorcreations.matchers.HasItemAtIndex.hasLastItem(item);
}
public static org.hamcrest.Matcher> hasFirstItem(org.hamcrest.Matcher item) {
return com.nitorcreations.matchers.HasItemAtIndex.hasFirstItem(item);
}
public static org.hamcrest.Matcher> hasItemAtIndex(int index, org.hamcrest.Matcher item) {
return com.nitorcreations.matchers.HasItemAtIndex.hasItemAtIndex(index, item);
}
/**
*
*
* @see IteratorMatcher
* @param iterableMatcher the matcher for the converted list
* @param the type of a single element in the list
* @return the matcher
*/
public static , X extends java.lang.Iterable>> org.hamcrest.Matcher super T> iteratorThat(org.hamcrest.Matcher iterableMatcher) {
return com.nitorcreations.matchers.IteratorMatcher.iteratorThat(iterableMatcher);
}
public static > org.hamcrest.Matcher emptyMap() {
return com.nitorcreations.matchers.MapMatchers.emptyMap();
}
public static org.hamcrest.Matcher reflectEquals(T target, java.lang.String... excludedFields) {
return com.nitorcreations.matchers.ReflectionEqualsMatcher.reflectEquals(target, excludedFields);
}
public static org.hamcrest.Matcher serializable() {
return com.nitorcreations.matchers.SerializableMatcher.serializable();
}
/**
* Matches a {@link String} containing the target string case-insensitively.
*/
public static org.hamcrest.Matcher containsIgnoreCase(java.lang.String substring) {
return com.nitorcreations.matchers.StringMatchers.containsIgnoreCase(substring);
}
/**
* Creates a matcher that matches when the examined object has a field
* with the specified name whose value satisfies the specified matcher.
*
* For example:
* assertThat(myBean, hasField("foo", equalTo("bar"))
*/
public static com.nitorcreations.matchers.FieldMatcher hasField(java.lang.String fieldName, org.hamcrest.Matcher> withValue) {
return com.nitorcreations.matchers.FieldMatcher.hasField(fieldName, withValue);
}
/**
* Creates a matcher that matches when the examined object has a field
* with the specified name.
*
* For example:
* assertThat(myBean, hasField("foo")
*/
public static com.nitorcreations.matchers.FieldMatcher hasField(java.lang.String fieldName) {
return com.nitorcreations.matchers.FieldMatcher.hasField(fieldName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy