public class StringCollectionMatcher extends org.hamcrest.TypeSafeMatcher<Collection<String>>
| Constructor and Description |
|---|
StringCollectionMatcher(Collection<String> stringCollection) |
StringCollectionMatcher(Collection<String> stringCollection,
String item) |
StringCollectionMatcher(String item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areContainedIn(Collection<String> collection) |
static StringCollectionMatcher |
collectionContains(Collection<String> collection) |
static boolean |
collectionContains(Collection<String> stringCollection1,
Collection<String> stringCollection2) |
static boolean |
collectionContains(Collection<String> stringCollection,
String stringItem) |
static StringCollectionMatcher |
collectionContains(String item) |
boolean |
collectionContainsItem(String item) |
static boolean |
collectionIsContained(Collection<String> stringCollection1,
Collection<String> stringCollection2) |
static boolean |
collectionsMatch(Collection<String> firstCollection,
Collection<String> secondCollection) |
boolean |
contains(Collection<String> collection) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
isContainedIn(Collection<String> collection) |
protected boolean |
matchesSafely(Collection<String> stringCollection) |
protected boolean |
matchesSafely(String item) |
describeMismatch, describeMismatchSafely, matchespublic StringCollectionMatcher(Collection<String> stringCollection)
public StringCollectionMatcher(String item)
public StringCollectionMatcher(Collection<String> stringCollection, String item)
protected boolean matchesSafely(Collection<String> stringCollection)
matchesSafely in class org.hamcrest.TypeSafeMatcher<Collection<String>>protected boolean matchesSafely(String item)
public boolean isContainedIn(Collection<String> collection)
public boolean areContainedIn(Collection<String> collection)
public boolean contains(Collection<String> collection)
public void describeTo(org.hamcrest.Description description)
public static StringCollectionMatcher collectionContains(Collection<String> collection)
public static StringCollectionMatcher collectionContains(String item)
public boolean collectionContainsItem(String item)
public static boolean collectionsMatch(Collection<String> firstCollection, Collection<String> secondCollection)
public static boolean collectionContains(Collection<String> stringCollection, String stringItem)
public static boolean collectionContains(Collection<String> stringCollection1, Collection<String> stringCollection2)
public static boolean collectionIsContained(Collection<String> stringCollection1, Collection<String> stringCollection2)
Copyright © 2016–2024. All rights reserved.