Package | Description |
---|---|
org.fest.assertions.api |
Modifier and Type | Method and Description |
---|---|
ObjectArrayAssert<T> |
ObjectArrayAssert.are(Condition<? super T> condition)
Verifies that each element value satisfies the given condition
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areAtLeast(int times,
Condition<? super T> condition)
Verifies that there is at least n elements in the actual group satisfying the given condition.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areAtMost(int times,
Condition<? super T> condition)
Verifies that there is at most n elements in the actual group satisfying the given condition.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areExactly(int times,
Condition<? super T> condition)
Verifies that there is exactly n elements in the actual group satisfying the given condition.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areNot(Condition<? super T> condition)
Verifies that each element value not satisfies the given condition
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areNotAtLeast(int times,
Condition<? super T> condition)
Verifies that there is at least n elements in the actual group not satisfying the given
condition.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areNotAtMost(int times,
Condition<? super T> condition)
Verifies that there is at most n elements in the actual group not satisfying the given
condition.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.areNotExactly(int times,
Condition<? super T> condition)
Verifies that there is exactly n elements in the actual group not satisfying the given
condition.
|
static <T> ObjectArrayAssert<T> |
Assertions.assertThat(T[] actual)
Creates a new instance of
. |
ObjectArrayAssert<T> |
ObjectArrayAssert.contains(T... values)
Verifies that the actual group contains the given values, in any order.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.contains(T value,
Index index)
Verifies that the actual group contains the given object at the given index.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.containsAll(Iterable<? extends T> iterable)
Verifies that the actual group contains all the elements of given
Iterable , in any order. |
ObjectArrayAssert<T> |
ObjectArrayAssert.containsExactly(T... values)
Verifies that the actual group contains only the given values and nothing else, in order.
This assertion should only be used with Iterable that have a consistent iteration order (i.e. |
ObjectArrayAssert<T> |
ObjectArrayAssert.containsNull()
Verifies that the actual group contains at least a null element.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.containsOnly(T... values)
Verifies that the actual group contains only the given values and nothing else, in any order.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.containsSequence(T... sequence)
Verifies that the actual group contains the given sequence, without any other values between them.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.doesNotContain(T... values)
Verifies that the actual group does not contain the given values.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.doesNotContain(T value,
Index index)
Verifies that the actual group does not contain the given object at the given index.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.doesNotContainNull()
Verifies that the actual group does not contain null elements.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.doesNotHaveDuplicates()
Verifies that the actual group does not contain duplicates.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.doNotHave(Condition<? super T> condition)
Verifies that each element value not satisfies the given condition
|
ObjectArrayAssert<T> |
ObjectArrayAssert.doNotHaveAtLeast(int times,
Condition<? super T> condition)
This method is an alias
ObjectEnumerableAssert.areNotAtLeast(int, Condition) . |
ObjectArrayAssert<T> |
ObjectArrayAssert.doNotHaveAtMost(int times,
Condition<? super T> condition)
This method is an alias
ObjectEnumerableAssert.areNotAtMost(int, Condition) . |
ObjectArrayAssert<T> |
ObjectArrayAssert.doNotHaveExactly(int times,
Condition<? super T> condition)
This method is an alias
ObjectEnumerableAssert.areNotExactly(int, Condition) . |
ObjectArrayAssert<T> |
ObjectArrayAssert.endsWith(T... sequence)
Verifies that the actual group ends with the given sequence of objects, without any other objects between them.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.hasSameSizeAs(Iterable<?> other)
Verifies that the actual group has the same size as given
Iterable . |
ObjectArrayAssert<T> |
ObjectArrayAssert.hasSameSizeAs(Object[] other)
Verifies that the actual group has the same size as given array.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.hasSize(int expected)
Verifies that the number of values in the actual group is equal to the given one.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.have(Condition<? super T> condition)
Verifies that each element value satisfies the given condition
|
ObjectArrayAssert<T> |
ObjectArrayAssert.haveAtLeast(int times,
Condition<? super T> condition)
This method is an alias for
ObjectEnumerableAssert.areAtLeast(int, Condition) . |
ObjectArrayAssert<T> |
ObjectArrayAssert.haveAtMost(int times,
Condition<? super T> condition)
This method is an alias
ObjectEnumerableAssert.areAtMost(int, Condition) . |
ObjectArrayAssert<T> |
ObjectArrayAssert.haveExactly(int times,
Condition<? super T> condition)
This method is an alias
ObjectEnumerableAssert.areExactly(int, Condition) . |
ObjectArrayAssert<T> |
ObjectArrayAssert.isNotEmpty()
Verifies that the actual group of values is not empty.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.isSorted()
Verifies that the actual array is sorted into ascending order according to the natural ordering of its elements.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.isSortedAccordingTo(Comparator<? super T> comparator)
Verifies that the actual array is sorted according to the given comparator. Empty arrays are considered sorted whatever
the comparator is. One element arrays are considered sorted if element is compatible with comparator, otherwise an
AssertionError is thrown.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.startsWith(T... sequence)
Verifies that the actual group starts with the given sequence of objects, without any other objects between them.
|
ObjectArrayAssert<T> |
ObjectArrayAssert.usingDefaultElementComparator() |
ObjectArrayAssert<T> |
ObjectArrayAssert.usingElementComparator(Comparator<? super T> customComparator) |
Copyright © 2007–2014. All rights reserved.