public class CollectionAssert extends Object
Constructor and Description |
---|
CollectionAssert() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
assertContainsExactly(Collection<?> expected,
Collection<?> actual)
Asserts that the given collections have exactly the same items in an unordered manner.
|
static void |
checkSingleElementCollection(Collection collection,
Object expected)
Check that a collection has only one element, and that is the object provided
|
public static void checkSingleElementCollection(Collection collection, Object expected)
public static <T> void assertContainsExactly(Collection<?> expected, Collection<?> actual)
expected
- Collectionactual
- CollectionCopyright © 2002-2022 Atlassian. All Rights Reserved.