Package | Description |
---|---|
de.tobiasroeser.lambdatest |
Modifier and Type | Method and Description |
---|---|
ExpectCollection<T> |
ExpectCollection.contains(T element)
Checks, that the collection contains the given element.
|
ExpectCollection<T> |
ExpectCollection.containsIdentical(T element)
Same as
contains(Object) , but not using Object.equals(Object)
to compare the contained elements but the == operation. |
ExpectCollection<T> |
ExpectCollection.containsNot(T fragment)
Checks, that the collection does not contain the given element.
|
ExpectCollection<T> |
ExpectCollection.containsNotIdentical(T element)
Same as
containsNot(Object) , but not using
Object.equals(Object) to compare the contained elements but the ==
operation. |
ExpectCollection<Map.Entry<K,V>> |
ExpectMap.entrySet()
Returns an
ExpectCollection to futher check the map’s entry set. |
static <T> ExpectCollection<T> |
Expect.expectCollection(Collection<T> actual)
Check for non-null
Collection and provides further checks on the
actual collection in a fluent API. |
static <T> ExpectCollection<T> |
ExpectCollection.expectCollection(Collection<T> actual)
Check for non-null
Collection and provides further checks on the
actual collection in a fluent API. |
ExpectCollection<T> |
ExpectCollection.hasDuplicates(int expectedCount)
Check, that the collection has
count duplicates. |
ExpectCollection<T> |
ExpectCollection.hasNoDuplicates()
Check, that the collection has no duplicates.
|
ExpectCollection<T> |
ExpectCollection.hasSize(int expectedSize)
Checks, that the collection has the expected site.
|
ExpectCollection<T> |
ExpectCollection.isEmpty() |
ExpectCollection<K> |
ExpectMap.keys()
Returns an
ExpectCollection for the keys of this map for further
checks. |
ExpectCollection<V> |
ExpectMap.values()
Returns an
ExpectCollection for the values of this map for
further checks. |
Copyright © 2019. All rights reserved.