Uses of Interface
org.assertj.core.api.AssertionInfo
Packages that use AssertionInfo
-
Uses of AssertionInfo in org.assertj.core.api
Classes in org.assertj.core.api that implement AssertionInfoModifier and TypeClassDescriptionclassWritable information about an assertion.Methods in org.assertj.core.api with parameters of type AssertionInfoModifier and TypeMethodDescriptionprivate AssertionErrorIterableAssert.actualDoesNotStartWithSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence) private AssertionErrorListAssert.actualDoesNotStartWithSequence(AssertionInfo info, Object[] sequence) private static voidAbstractInstantAssert.assertNotNull(AssertionInfo info, Instant actual) -
Uses of AssertionInfo in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type AssertionInfoModifier and TypeMethodDescriptionprivate AssertionErrorIterables.actualContainsSubsequence(AssertionInfo info, Iterable<?> actual, Object[] subsequence, int index) private AssertionErrorIterables.actualDoesContainSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence, int index) private AssertionErrorIterables.actualDoesNotContainSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence) private AssertionErrorIterables.actualDoesNotContainSubsequence(AssertionInfo info, Iterable<?> actual, Object[] subsequence) private AssertionErrorIterables.actualDoesNotEndWithSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence) private AssertionErrorIterables.actualDoesNotStartWithSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence) private booleanDates.actualIsBetweenGivenPeriod(AssertionInfo info, Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) private booleanObjects.actualIsExactlyInstanceOfType(Object actual, Class<?> expectedType, AssertionInfo info) private AssertionErrorArrays.arrayDoesNotEndWithSequence(AssertionInfo info, Failures failures, Object array, Object sequence) private AssertionErrorArrays.arrayDoesNotStartWithSequence(AssertionInfo info, Failures failures, Object array, Object sequence) <E> voidIterables.assertAllMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription) <E> voidIterables.assertAllSatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements) <E> voidIterables.assertAnySatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements) <E> voidArrays.assertAre(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) <T> voidIterables.assertAre(AssertionInfo info, Iterable<? extends T> actual, Condition<? super T> condition) Assert that each element of givenIterablesatisfies the given condition.<E> voidObjectArrays.assertAre(AssertionInfo info, E[] actual, Condition<? super E> condition) Assert that each element of given array satisfies the given condition.<E> voidArrays.assertAreAtLeast(AssertionInfo info, Failures failures, Conditions conditions, Object array, int times, Condition<E> condition) <E> voidIterables.assertAreAtLeast(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) Assert that there are at least n elements in the actualIterablesatisfying the given condition.<E> voidObjectArrays.assertAreAtLeast(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Assert that there are at least n array elements satisfying the given condition.<E> voidArrays.assertAreAtMost(AssertionInfo info, Failures failures, Conditions conditions, Object array, int times, Condition<E> condition) <E> voidIterables.assertAreAtMost(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there are at most n elements in the actualIterablesatisfying the given condition.<E> voidObjectArrays.assertAreAtMost(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Assert that there are at most n array elements satisfying the given condition.<E> voidArrays.assertAreExactly(AssertionInfo info, Failures failures, Conditions conditions, Object array, int times, Condition<E> condition) <E> voidIterables.assertAreExactly(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) Verifies that there are exactly n elements in the actualIterablesatisfying the given condition.<E> voidObjectArrays.assertAreExactly(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Verifies that there are exactly n array elements satisfying the given condition.<E> voidArrays.assertAreNot(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) <E> voidIterables.assertAreNot(AssertionInfo info, Iterable<? extends E> actual, Condition<? super E> condition) Assert that each element of givenIterablenot satisfies the given condition.<E> voidObjectArrays.assertAreNot(AssertionInfo info, E[] actual, Condition<? super E> condition) Assert that each element of given array not satisfies the given condition.voidStrings.assertBlank(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceisNull, empty or contains only whitespace.voidFiles.assertCanRead(AssertionInfo info, File actual) Asserts that the given file can be read by the application.voidFiles.assertCanWrite(AssertionInfo info, File actual) Asserts that the given file can be modified by the application.(package private) voidArrays.assertContains(AssertionInfo info, Failures failures, Object actual, Object values) (package private) voidArrays.assertContains(AssertionInfo info, Failures failures, Object array, Object value, Index index) voidBooleanArrays.assertContains(AssertionInfo info, boolean[] actual, boolean[] values) Asserts that the given array contains the given values, in any order.voidBooleanArrays.assertContains(AssertionInfo info, boolean[] actual, boolean value, Index index) Verifies that the given array contains the given value at the given index.voidByteArrays.assertContains(AssertionInfo info, byte[] actual, byte[] values) Asserts that the given array contains the given values, in any order.voidByteArrays.assertContains(AssertionInfo info, byte[] actual, byte value, Index index) Verifies that the given array contains the given value at the given index.voidByteArrays.assertContains(AssertionInfo info, byte[] actual, int[] values) Asserts that the given array contains the given values, in any order.voidByteArrays.assertContains(AssertionInfo info, byte[] actual, int value, Index index) Verifies that the given array contains the given value at the given index.voidCharArrays.assertContains(AssertionInfo info, char[] actual, char[] values) Asserts that the given array contains the given values, in any order.voidCharArrays.assertContains(AssertionInfo info, char[] actual, char value, Index index) Verifies that the given array contains the given value at the given index.voidDoubleArrays.assertContains(AssertionInfo info, double[] actual, double[] values) Asserts that the given array contains the given values, in any order.voidDoubleArrays.assertContains(AssertionInfo info, double[] actual, double value, Index index) Verifies that the given array contains the given value at the given index.voidFloatArrays.assertContains(AssertionInfo info, float[] actual, float[] values) Asserts that the given array contains the given values, in any order.voidFloatArrays.assertContains(AssertionInfo info, float[] actual, float value, Index index) Verifies that the given array contains the given value at the given index.voidIntArrays.assertContains(AssertionInfo info, int[] actual, int[] values) Asserts that the given array contains the given values, in any order.voidIntArrays.assertContains(AssertionInfo info, int[] actual, int value, Index index) Verifies that the given array contains the given value at the given index.voidIterables.assertContains(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains the given values, in any order.voidLists.assertContains(AssertionInfo info, List<?> actual, Object value, Index index) Verifies that the givenListcontains the given object at the given index.voidLongArrays.assertContains(AssertionInfo info, long[] actual, long[] values) Asserts that the given array contains the given values, in any order.voidLongArrays.assertContains(AssertionInfo info, long[] actual, long value, Index index) Verifies that the given array contains the given value at the given index.<K,V> void Maps.assertContains(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>[] entries) Asserts that the givenMapcontains the given entries, in any order.voidObjectArrays.assertContains(AssertionInfo info, Object[] actual, Object[] values) Asserts that the given array contains the given values, in any order.voidObjectArrays.assertContains(AssertionInfo info, Object[] actual, Object value, Index index) Verifies that the given array contains the given object at the given index.voidShortArrays.assertContains(AssertionInfo info, short[] actual, short[] values) Asserts that the given array contains the given values, in any order.voidShortArrays.assertContains(AssertionInfo info, short[] actual, short value, Index index) Verifies that the given array contains the given value at the given index.voidStrings.assertContains(AssertionInfo info, CharSequence actual, CharSequence... values) Verifies that the givenCharSequencecontains the given strings.(package private) voidArrays.assertcontainsAll(AssertionInfo info, Failures failures, Object array, Iterable<?> iterable) voidIterables.assertContainsAll(AssertionInfo info, Iterable<?> actual, Iterable<?> other) Asserts that the givenIterablecontains all the elements of the otherIterable, in any order.<E> voidObjectArrays.assertContainsAll(AssertionInfo info, E[] actual, Iterable<? extends E> other) Asserts that the given array contains all the elements of the givenIterable, in any order.voidClasses.assertContainsAnnotations(AssertionInfo info, Class<?> actual, Class<? extends Annotation>... annotations) Verifies that the actualClasscontains the givenAnnotations.<K,V> void Maps.assertContainsAnyOf(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>[] entries) (package private) voidArrays.assertContainsExactly(AssertionInfo info, Failures failures, Object actual, Object values) voidBooleanArrays.assertContainsExactly(AssertionInfo info, boolean[] actual, boolean[] values) voidByteArrays.assertContainsExactly(AssertionInfo info, byte[] actual, byte[] values) voidByteArrays.assertContainsExactly(AssertionInfo info, byte[] actual, int[] values) voidCharArrays.assertContainsExactly(AssertionInfo info, char[] actual, char[] values) voidDoubleArrays.assertContainsExactly(AssertionInfo info, double[] actual, double[] values) voidFloatArrays.assertContainsExactly(AssertionInfo info, float[] actual, float[] values) voidIntArrays.assertContainsExactly(AssertionInfo info, int[] actual, int[] values) voidIterables.assertContainsExactly(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains exactly the given values and nothing else, in order.voidLongArrays.assertContainsExactly(AssertionInfo info, long[] actual, long[] values) <K,V> void Maps.assertContainsExactly(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>... entries) Verifies that the actual map contains only the given entries and nothing else, in order.
This assertion should only be used with map that have a consistent iteration order (i.e.voidObjectArrays.assertContainsExactly(AssertionInfo info, Object[] actual, Object[] values) voidShortArrays.assertContainsExactly(AssertionInfo info, short[] actual, short[] values) (package private) voidArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, Failures failures, Object actual, Object values) voidBooleanArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, boolean[] actual, boolean[] values) voidByteArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, byte[] actual, byte[] values) voidByteArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, byte[] actual, int[] values) voidCharArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, char[] actual, char[] values) voidDoubleArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, double[] actual, double[] values) voidFloatArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, float[] actual, float[] values) voidIntArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, int[] actual, int[] values) voidIterables.assertContainsExactlyInAnyOrder(AssertionInfo info, Iterable<?> actual, Object[] values) voidLongArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, long[] actual, long[] values) voidObjectArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, Object[] actual, Object[] values) voidShortArrays.assertContainsExactlyInAnyOrder(AssertionInfo info, short[] actual, short[] values) voidStrings.assertContainsIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence sequence) Verifies that the givenCharSequencecontains the given sequence, ignoring case considerations.<K,V> void Maps.assertContainsKeys(AssertionInfo info, Map<K, V> actual, K... keys) Verifies that the actual map contain the given key.(package private) voidArrays.assertContainsNull(AssertionInfo info, Failures failures, Object array) voidIterables.assertContainsNull(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterablecontains at least a null element.voidObjectArrays.assertContainsNull(AssertionInfo info, Object[] actual) Asserts that the given array contains at least a null element.(package private) voidArrays.assertContainsOnly(AssertionInfo info, Failures failures, Object actual, Object values) voidBooleanArrays.assertContainsOnly(AssertionInfo info, boolean[] actual, boolean[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidByteArrays.assertContainsOnly(AssertionInfo info, byte[] actual, byte[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidByteArrays.assertContainsOnly(AssertionInfo info, byte[] actual, int[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidCharArrays.assertContainsOnly(AssertionInfo info, char[] actual, char[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidDoubleArrays.assertContainsOnly(AssertionInfo info, double[] actual, double[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidFloatArrays.assertContainsOnly(AssertionInfo info, float[] actual, float[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidIntArrays.assertContainsOnly(AssertionInfo info, int[] actual, int[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidIterables.assertContainsOnly(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains only the given values and nothing else, in any order.voidLongArrays.assertContainsOnly(AssertionInfo info, long[] actual, long[] values) Asserts that the given array contains only the given values and nothing else, in any order.<K,V> void Maps.assertContainsOnly(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>... entries) Verifies that the actual map contains only the given entries and nothing else, in any order.voidObjectArrays.assertContainsOnly(AssertionInfo info, Object[] actual, Object[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidShortArrays.assertContainsOnly(AssertionInfo info, short[] actual, short[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidStrings.assertContainsOnlyDigits(AssertionInfo info, CharSequence actual) Verifies that the givenCharSequencecontains only digits.<K,V> void Maps.assertContainsOnlyKeys(AssertionInfo info, Map<K, V> actual, K... keys) Verifies that the actual map contains only the given keys and nothing else, in any order.(package private) voidArrays.assertContainsOnlyOnce(AssertionInfo info, Failures failures, Object actual, Object values) voidBooleanArrays.assertContainsOnlyOnce(AssertionInfo info, boolean[] actual, boolean[] values) Asserts that the given array contains only once the given values.voidByteArrays.assertContainsOnlyOnce(AssertionInfo info, byte[] actual, byte[] values) Asserts that the given array contains only once the given values.voidByteArrays.assertContainsOnlyOnce(AssertionInfo info, byte[] actual, int[] values) Asserts that the given array contains only once the given values.voidCharArrays.assertContainsOnlyOnce(AssertionInfo info, char[] actual, char[] values) Asserts that the given array contains only once the given values.voidDoubleArrays.assertContainsOnlyOnce(AssertionInfo info, double[] actual, double[] values) Asserts that the given array contains only once the given values.voidFloatArrays.assertContainsOnlyOnce(AssertionInfo info, float[] actual, float[] values) Asserts that the given array contains only once the given values.voidIntArrays.assertContainsOnlyOnce(AssertionInfo info, int[] actual, int[] values) Asserts that the given array contains only once the given values.voidIterables.assertContainsOnlyOnce(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains the given values and only once.voidLongArrays.assertContainsOnlyOnce(AssertionInfo info, long[] actual, long[] values) Asserts that the given array contains only once the given values.voidObjectArrays.assertContainsOnlyOnce(AssertionInfo info, Object[] actual, Object[] values) Asserts that the given array contains only once the given values.voidShortArrays.assertContainsOnlyOnce(AssertionInfo info, short[] actual, short[] values) Asserts that the given array contains only once the given values.voidStrings.assertContainsOnlyOnce(AssertionInfo info, CharSequence actual, CharSequence sequence) Verifies that actualCharSequences contains only once the given sequence.voidStrings.assertContainsPattern(AssertionInfo info, CharSequence actual, CharSequence regex) Verifies that the givenCharSequencecontains the given regular expression.voidStrings.assertContainsPattern(AssertionInfo info, CharSequence actual, Pattern pattern) Verifies that the givenCharSequencecontains the given regular expression.(package private) voidArrays.assertContainsSequence(AssertionInfo info, Failures failures, Object actual, Object sequence) voidBooleanArrays.assertContainsSequence(AssertionInfo info, boolean[] actual, boolean[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidByteArrays.assertContainsSequence(AssertionInfo info, byte[] actual, byte[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidByteArrays.assertContainsSequence(AssertionInfo info, byte[] actual, int[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidCharArrays.assertContainsSequence(AssertionInfo info, char[] actual, char[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidDoubleArrays.assertContainsSequence(AssertionInfo info, double[] actual, double[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidFloatArrays.assertContainsSequence(AssertionInfo info, float[] actual, float[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidIntArrays.assertContainsSequence(AssertionInfo info, int[] actual, int[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidIterables.assertContainsSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence) Verifies that the givencontains the given sequence of objects, without any other objects between them.IterablevoidLongArrays.assertContainsSequence(AssertionInfo info, long[] actual, long[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidObjectArrays.assertContainsSequence(AssertionInfo info, Object[] actual, Object[] sequence) Verifies that the given array contains the given sequence of objects, without any other objects between them.voidShortArrays.assertContainsSequence(AssertionInfo info, short[] actual, short[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidStrings.assertContainsSequence(AssertionInfo info, CharSequence actual, CharSequence[] sequence) (package private) voidArrays.assertContainsSubsequence(AssertionInfo info, Failures failures, Object actual, Object subsequence) voidBooleanArrays.assertContainsSubsequence(AssertionInfo info, boolean[] actual, boolean[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).voidByteArrays.assertContainsSubsequence(AssertionInfo info, byte[] actual, byte[] subsequence) Verifies that the given array contains the given sequence of values (possibly with other values between them).voidByteArrays.assertContainsSubsequence(AssertionInfo info, byte[] actual, int[] subsequence) Verifies that the given array contains the given sequence of values (possibly with other values between them).voidCharArrays.assertContainsSubsequence(AssertionInfo info, char[] actual, char[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).voidDoubleArrays.assertContainsSubsequence(AssertionInfo info, double[] actual, double[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).voidFloatArrays.assertContainsSubsequence(AssertionInfo info, float[] actual, float[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).voidIntArrays.assertContainsSubsequence(AssertionInfo info, int[] actual, int[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).voidIterables.assertContainsSubsequence(AssertionInfo info, Iterable<?> actual, Object[] subsequence) Verifies that the givencontains the given subsequence of objects (possibly with other values between them).IterablevoidIterables.assertContainsSubsequence(AssertionInfo info, Iterable<?> actual, List<?> subsequence) voidLongArrays.assertContainsSubsequence(AssertionInfo info, long[] actual, long[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).voidObjectArrays.assertContainsSubsequence(AssertionInfo info, Object[] actual, Object[] subsequence) Verifies that the given array contains the given subsequence of objects (possibly with other values between them).voidShortArrays.assertContainsSubsequence(AssertionInfo info, short[] actual, short[] subsequence) Verifies that the given array contains the given subsequence of values (possibly with other values between them).<K,V> void Maps.assertContainsValue(AssertionInfo info, Map<K, V> actual, V value) Verifies that the actual map contain the given value.<K,V> void Maps.assertContainsValues(AssertionInfo info, Map<K, V> actual, V... values) Verifies that the actual map contain the given values.(package private) voidArrays.assertDoesNotContain(AssertionInfo info, Failures failures, Object array, Object values) (package private) voidArrays.assertDoesNotContain(AssertionInfo info, Failures failures, Object array, Object value, Index index) voidBooleanArrays.assertDoesNotContain(AssertionInfo info, boolean[] actual, boolean[] values) Asserts that the given array does not contain the given values.voidBooleanArrays.assertDoesNotContain(AssertionInfo info, boolean[] actual, boolean value, Index index) Verifies that the given array does not contain the given value at the given index.voidByteArrays.assertDoesNotContain(AssertionInfo info, byte[] actual, byte[] values) Asserts that the given array does not contain the given values.voidByteArrays.assertDoesNotContain(AssertionInfo info, byte[] actual, byte value, Index index) Verifies that the given array does not contain the given value at the given index.voidByteArrays.assertDoesNotContain(AssertionInfo info, byte[] actual, int[] values) Asserts that the given array does not contain the given values.voidByteArrays.assertDoesNotContain(AssertionInfo info, byte[] actual, int value, Index index) Verifies that the given array does not contain the given value at the given index.voidCharArrays.assertDoesNotContain(AssertionInfo info, char[] actual, char[] values) Asserts that the given array does not contain the given values.voidCharArrays.assertDoesNotContain(AssertionInfo info, char[] actual, char value, Index index) Verifies that the given array does not contain the given value at the given index.voidDoubleArrays.assertDoesNotContain(AssertionInfo info, double[] actual, double[] values) Asserts that the given array does not contain the given values.voidDoubleArrays.assertDoesNotContain(AssertionInfo info, double[] actual, double value, Index index) Verifies that the given array does not contain the given value at the given index.voidFloatArrays.assertDoesNotContain(AssertionInfo info, float[] actual, float[] values) Asserts that the given array does not contain the given values.voidFloatArrays.assertDoesNotContain(AssertionInfo info, float[] actual, float value, Index index) Verifies that the given array does not contain the given value at the given index.voidIntArrays.assertDoesNotContain(AssertionInfo info, int[] actual, int[] values) Asserts that the given array does not contain the given values.voidIntArrays.assertDoesNotContain(AssertionInfo info, int[] actual, int value, Index index) Verifies that the given array does not contain the given value at the given index.voidIterables.assertDoesNotContain(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterabledoes not contain the given values.voidLists.assertDoesNotContain(AssertionInfo info, List<?> actual, Object value, Index index) Verifies that the givenListdoes not contain the given object at the given index.voidLongArrays.assertDoesNotContain(AssertionInfo info, long[] actual, long[] values) Asserts that the given array does not contain the given values.voidLongArrays.assertDoesNotContain(AssertionInfo info, long[] actual, long value, Index index) Verifies that the given array does not contain the given value at the given index.<K,V> void Maps.assertDoesNotContain(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>[] entries) Asserts that the givenMapdoes not contain the given entries.voidObjectArrays.assertDoesNotContain(AssertionInfo info, Object[] actual, Object[] values) Asserts that the given array does not contain the given values.voidObjectArrays.assertDoesNotContain(AssertionInfo info, Object[] actual, Object value, Index index) Verifies that the given array does not contain the given object at the given index.voidShortArrays.assertDoesNotContain(AssertionInfo info, short[] actual, short[] values) Asserts that the given array does not contain the given values.voidShortArrays.assertDoesNotContain(AssertionInfo info, short[] actual, short value, Index index) Verifies that the given array does not contain the given value at the given index.voidStrings.assertDoesNotContain(AssertionInfo info, CharSequence actual, CharSequence sequence) Verifies that the givenCharSequencedoes not contain the given sequence.<T> voidIterables.assertDoesNotContainAnyElementsOf(AssertionInfo info, Iterable<? extends T> actual, Iterable<? extends T> iterable) Asserts that the givenIterabledoes not contain the given values.<T> voidObjectArrays.assertDoesNotContainAnyElementsOf(AssertionInfo info, Object[] actual, Iterable<? extends T> iterable) <K,V> void Maps.assertDoesNotContainKey(AssertionInfo info, Map<K, V> actual, K key) Verifies that the actual map not contains the given key.<K,V> void Maps.assertDoesNotContainKeys(AssertionInfo info, Map<K, V> actual, K... keys) Verifies that the actual map not contains all the given keys.(package private) voidArrays.assertDoesNotContainNull(AssertionInfo info, Failures failures, Object array) voidIterables.assertDoesNotContainNull(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterabledoes not contain null elements.voidObjectArrays.assertDoesNotContainNull(AssertionInfo info, Object[] actual) Asserts that the given array does not contain null elements.voidStrings.assertDoesNotContainPattern(AssertionInfo info, CharSequence actual, CharSequence regex) Verifies that the givenCharSequencedoes not contain the given regular expression.voidStrings.assertDoesNotContainPattern(AssertionInfo info, CharSequence actual, Pattern pattern) Verifies that the givenCharSequencedoes not contain the given regular expression.(package private) voidArrays.assertDoesNotContainSequence(AssertionInfo info, Failures failures, Object actual, Object sequence) voidIterables.assertDoesNotContainSequence(AssertionInfo info, Iterable<?> actual, Object[] sequence) Verifies that the givendoes not contain the given sequence of objects in order.IterablevoidObjectArrays.assertDoesNotContainSequence(AssertionInfo info, Object[] actual, Object[] sequence) Verifies that the given array does not contain the given sequence of objects in order.(package private) voidArrays.assertDoesNotContainSubsequence(AssertionInfo info, Failures failures, Object actual, Object subsequence) voidIterables.assertDoesNotContainSubsequence(AssertionInfo info, Iterable<?> actual, Object[] subsequence) Verifies that the givendoes not contain the given subsequence of objects (possibly with other values between them).IterablevoidObjectArrays.assertDoesNotContainSubsequence(AssertionInfo info, Object[] actual, Object[] subsequence) Verifies that the given array does not contain the given subsequence of objects (possibly with other values between them).<K,V> void Maps.assertDoesNotContainValue(AssertionInfo info, Map<K, V> actual, V value) Verifies that the actual map not contains the given value.voidStrings.assertDoesNotEndWith(AssertionInfo info, CharSequence actual, CharSequence suffix) Verifies that the givenCharSequencedoes not end with the given suffix.voidFiles.assertDoesNotExist(AssertionInfo info, File actual) Asserts that the given file does not exist.voidPaths.assertDoesNotExist(AssertionInfo info, Path actual) <T> voidConditions.assertDoesNotHave(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given.Condition(package private) voidArrays.assertDoesNotHaveDuplicates(AssertionInfo info, Failures failures, Object array) voidBooleanArrays.assertDoesNotHaveDuplicates(AssertionInfo info, boolean[] actual) Asserts that the given array does not have duplicate values.voidByteArrays.assertDoesNotHaveDuplicates(AssertionInfo info, byte[] actual) Asserts that the given array does not have duplicate values.voidCharArrays.assertDoesNotHaveDuplicates(AssertionInfo info, char[] actual) Asserts that the given array does not have duplicate values.voidDoubleArrays.assertDoesNotHaveDuplicates(AssertionInfo info, double[] actual) Asserts that the given array does not have duplicate values.voidFloatArrays.assertDoesNotHaveDuplicates(AssertionInfo info, float[] actual) Asserts that the given array does not have duplicate values.voidIntArrays.assertDoesNotHaveDuplicates(AssertionInfo info, int[] actual) Asserts that the given array does not have duplicate values.voidIterables.assertDoesNotHaveDuplicates(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterabledoes not have duplicate values.voidLongArrays.assertDoesNotHaveDuplicates(AssertionInfo info, long[] actual) Asserts that the given array does not have duplicate values.voidObjectArrays.assertDoesNotHaveDuplicates(AssertionInfo info, Object[] actual) Asserts that the given array does not have duplicate values.voidShortArrays.assertDoesNotHaveDuplicates(AssertionInfo info, short[] actual) Asserts that the given array does not have duplicate values.voidObjects.assertDoesNotHaveSameClassAs(AssertionInfo info, Object actual, Object other) Verifies that the actual value does not have the same class as the given object.voidStrings.assertDoesNotMatch(AssertionInfo info, CharSequence actual, CharSequence regex) Verifies that the givenCharSequencedoes not match the given regular expression.voidStrings.assertDoesNotMatch(AssertionInfo info, CharSequence actual, Pattern pattern) Verifies that the givenCharSequencedoes not match the given regular expression.voidStrings.assertDoesNotStartWith(AssertionInfo info, CharSequence actual, CharSequence prefix) Verifies that the givenCharSequencedoes not start with the given prefix.<E> voidIterables.assertDoNotHave(AssertionInfo info, Iterable<? extends E> actual, Condition<? super E> condition) Assert that each element of givenIterablenot satisfies the given condition.<E> voidObjectArrays.assertDoNotHave(AssertionInfo info, E[] actual, Condition<? super E> condition) Assert that each element of given array not satisfies the given condition.(package private) voidArrays.assertEmpty(AssertionInfo info, Failures failures, Object array) voidBooleanArrays.assertEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array is empty.voidByteArrays.assertEmpty(AssertionInfo info, byte[] actual) Asserts that the given array is empty.voidCharArrays.assertEmpty(AssertionInfo info, char[] actual) Asserts that the given array is empty.voidDoubleArrays.assertEmpty(AssertionInfo info, double[] actual) Asserts that the given array is empty.voidFloatArrays.assertEmpty(AssertionInfo info, float[] actual) Asserts that the given array is empty.voidIntArrays.assertEmpty(AssertionInfo info, int[] actual) Asserts that the given array is empty.voidIterables.assertEmpty(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterableis empty.voidLongArrays.assertEmpty(AssertionInfo info, long[] actual) Asserts that the given array is empty.voidMaps.assertEmpty(AssertionInfo info, Map<?, ?> actual) Asserts that the givenMapis empty.voidObjectArrays.assertEmpty(AssertionInfo info, Object[] actual) Asserts that the given array is empty.voidShortArrays.assertEmpty(AssertionInfo info, short[] actual) Asserts that the given array is empty.voidStrings.assertEmpty(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceis empty.(package private) voidArrays.assertEndsWith(AssertionInfo info, Failures failures, Object actual, Object sequence) voidBooleanArrays.assertEndsWith(AssertionInfo info, boolean[] actual, boolean[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidByteArrays.assertEndsWith(AssertionInfo info, byte[] actual, byte[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidByteArrays.assertEndsWith(AssertionInfo info, byte[] actual, int[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidCharArrays.assertEndsWith(AssertionInfo info, char[] actual, char[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidDoubleArrays.assertEndsWith(AssertionInfo info, double[] actual, double[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidFloatArrays.assertEndsWith(AssertionInfo info, float[] actual, float[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidIntArrays.assertEndsWith(AssertionInfo info, int[] actual, int[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidIterables.assertEndsWith(AssertionInfo info, Iterable<?> actual, Object[] sequence) Verifies that the givenIterableends with the given sequence of objects, without any other objects between them.voidLongArrays.assertEndsWith(AssertionInfo info, long[] actual, long[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidObjectArrays.assertEndsWith(AssertionInfo info, Object[] actual, Object[] sequence) Verifies that the given array ends with the given sequence of objects, without any other objects between them.voidPaths.assertEndsWith(AssertionInfo info, Path actual, Path end) voidShortArrays.assertEndsWith(AssertionInfo info, short[] actual, short[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidStrings.assertEndsWith(AssertionInfo info, CharSequence actual, CharSequence suffix) Verifies that the givenCharSequenceends with the given suffix.voidPaths.assertEndsWithRaw(AssertionInfo info, Path actual, Path end) voidBooleans.assertEqual(AssertionInfo info, Boolean actual, boolean expected) Asserts that two booleans are equal.<T> voidComparables.assertEqual(AssertionInfo info, T actual, T expected) Asserts that two T instances are equal.voidObjects.assertEqual(AssertionInfo info, Object actual, Object expected) Asserts that two objects are equal.voidRealNumbers.assertEqual(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset) Verifies that two real numbers are equal within a positive offset.
It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.<T extends Comparable<? super T>>
voidComparables.assertEqualByComparison(AssertionInfo info, T actual, T expected) Asserts that twos are equal by invokingComparable.Comparable.compareTo(Object)
Note that it does not rely on the customComparables.comparisonStrategyif one has been set.voidStrings.assertEqualsIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are equal, ignoring case considerations.voidStrings.assertEqualsIgnoringWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are equal, ignoring any differences in whitespace.voidStrings.assertEqualsNormalizingWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are equal, after the whitespace of both strings has been normalized.voidFiles.assertExists(AssertionInfo info, File actual) Asserts that the given file exists, regardless it's a file or directory.voidPaths.assertExists(AssertionInfo info, Path actual) voidPaths.assertExistsNoFollowLinks(AssertionInfo info, Path actual) <T extends Comparable<? super T>>
voidComparables.assertGreaterThan(AssertionInfo info, T actual, T other) Asserts that the actual value is greater than the other one.<T extends Comparable<? super T>>
voidComparables.assertGreaterThanOrEqualTo(AssertionInfo info, T actual, T other) Asserts that the actual value is greater than or equal to the other one.<T> voidConditions.assertHas(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given.Condition<T> voidLists.assertHas(AssertionInfo info, List<? extends T> actual, Condition<? super T> condition, Index index) Verifies that the givenListsatisfies the givenat the given index.ConditionvoidUrls.assertHasAnchor(AssertionInfo info, URL actual, String expected) <E> voidObjectArrays.assertHasAtLeastOneElementOfType(AssertionInfo info, E[] actual, Class<?> type) voidUris.assertHasAuthority(AssertionInfo info, URI actual, String expected) voidUrls.assertHasAuthority(AssertionInfo info, URL actual, String expected) voidFiles.assertHasBinaryContent(AssertionInfo info, File actual, byte[] expected) Asserts that the given file has the given binary content.voidPaths.assertHasBinaryContent(AssertionInfo info, Path actual, byte[] expected) voidThrowables.assertHasCause(AssertionInfo info, Throwable actual, Throwable expectedCause) voidThrowables.assertHasCauseExactlyInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the cause of actualThrowableis exactly an instance of the given type.voidThrowables.assertHasCauseInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the cause of actualThrowableis an instance of the given type.voidFiles.assertHasContent(AssertionInfo info, File actual, String expected, Charset charset) Asserts that the given file has the given text content.voidPaths.assertHasContent(AssertionInfo info, Path actual, String expected, Charset charset) voidDates.assertHasDayOfMonth(AssertionInfo info, Date actual, int dayOfMonth) Verifies that the actualDateday of month is equal to the given day of month.voidDates.assertHasDayOfWeek(AssertionInfo info, Date actual, int dayOfWeek) Verifies that the actualDateday of week is equal to the given day of week.voidClasses.assertHasDeclaredFields(AssertionInfo info, Class<?> actual, String... fields) Verifies that the actualClasshas the declaredfields.voidClasses.assertHasDeclaredMethods(AssertionInfo info, Class<?> actual, String... methods) Verifies that the actualClasshas the declaredmethods.<K,V> void Maps.assertHasEntrySatisfying(AssertionInfo info, Map<K, V> actual, K key, Consumer<? super V> valueRequirements) Verifies that theMapcontains the value for givenkeythat satisfy givenvalueRequirements.<K,V> void Maps.assertHasEntrySatisfying(AssertionInfo info, Map<K, V> actual, K key, Condition<? super V> valueCondition) Verifies that the givenMapcontains the value for givenkeythat satisfy givenvalueCondition.<K,V> void Maps.assertHasEntrySatisfying(AssertionInfo info, Map<K, V> actual, Condition<? super Map.Entry<K, V>> entryCondition) Verifies that the givenMapcontains an entry satisfying givenentryCondition.<K,V> void Maps.assertHasEntrySatisfyingConditions(AssertionInfo info, Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) Verifies that the givenMapcontains an entry with key satisfyingkeyConditionand value satisfyingvalueCondition.voidFiles.assertHasExtension(AssertionInfo info, File actual, String expected) Asserts that the givenFilehas the given extension.<A> voidObjects.assertHasFieldOrProperty(AssertionInfo info, A actual, String name) <A> voidObjects.assertHasFieldOrPropertyWithValue(AssertionInfo info, A actual, String name, Object expectedValue) voidPaths.assertHasFileName(AssertionInfo info, Path actual, String fileName) voidUris.assertHasFragment(AssertionInfo info, URI actual, String expected) voidUris.assertHasHost(AssertionInfo info, URI actual, String expected) voidUrls.assertHasHost(AssertionInfo info, URL actual, String expected) voidDates.assertHasHourOfDay(AssertionInfo info, Date actual, int hourOfDay) Verifies that the actualDatehour od day is equal to the given hour of day (24-hour clock).<K> voidMaps.assertHasKeySatisfying(AssertionInfo info, Map<K, ?> actual, Condition<? super K> keyCondition) Verifies that the givenMapcontains an entry with key satisfyingkeyCondition.voidStrings.assertHasLineCount(AssertionInfo info, CharSequence actual, int expectedLineCount) Asserts that the line count of the givenCharSequenceis equal to the expected one.voidThrowables.assertHasMessage(AssertionInfo info, Throwable actual, String message) Asserts that the given actualThrowablemessage is equal to the given one.voidThrowables.assertHasMessageContaining(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowablecontains with the given description.voidThrowables.assertHasMessageEndingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowableends with the given description.voidThrowables.assertHasMessageMatching(AssertionInfo info, Throwable actual, String regex) Asserts that the message of the actualThrowablematches with the given regular expression.voidThrowables.assertHasMessageStartingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowablestarts with the given description.voidClasses.assertHasMethods(AssertionInfo info, Class<?> actual, String... methods) Verifies that the actualClasshas themethods.voidDates.assertHasMillisecond(AssertionInfo info, Date actual, int millisecond) Verifies that the actualDatemillisecond is equal to the given millisecond.voidDates.assertHasMinute(AssertionInfo info, Date actual, int minute) Verifies that the actualDateminute is equal to the given minute.voidDates.assertHasMonth(AssertionInfo info, Date actual, int month) Verifies that the actualDatemonth is equal to the given month, month value starting at 1 (January=1, February=2, ...).voidFiles.assertHasName(AssertionInfo info, File actual, String expected) Asserts that the givenFilehas the given name.voidThrowables.assertHasNoCause(AssertionInfo info, Throwable actual) Asserts that the actualThrowabledoes not have a cause.<A> voidObjects.assertHasNoNullFieldsOrPropertiesExcept(AssertionInfo info, A actual, String... propertiesOrFieldsToIgnore) Assert that the given object has no null fields except the given ones.voidUris.assertHasNoParameter(AssertionInfo info, URI actual, String name) voidUris.assertHasNoParameter(AssertionInfo info, URI actual, String name, String unwantedValue) voidUrls.assertHasNoParameter(AssertionInfo info, URL actual, String name) voidUrls.assertHasNoParameter(AssertionInfo info, URL actual, String name, String unwantedValue) voidUris.assertHasNoParameters(AssertionInfo info, URI actual) voidUrls.assertHasNoParameters(AssertionInfo info, URL actual) voidFiles.assertHasNoParent(AssertionInfo info, File actual) Asserts that the givenFiledoes not have a parent.voidPaths.assertHasNoParent(AssertionInfo info, Path actual) voidPaths.assertHasNoParentRaw(AssertionInfo info, Path actual) voidThrowables.assertHasNoSuppressedExceptions(AssertionInfo info, Throwable actual) voidClasses.assertHasOnlyDeclaredFields(AssertionInfo info, Class<?> actual, String... expectedFields) Verifies that the actualClasshas the exactly thefieldsand nothing more.<E> voidObjectArrays.assertHasOnlyElementsOfType(AssertionInfo info, E[] actual, Class<?> type) (package private) voidArrays.assertHasOnlyElementsOfTypes(AssertionInfo info, Failures failures, Object actual, Class<?>[] expectedTypes) <E> voidObjectArrays.assertHasOnlyElementsOfTypes(AssertionInfo info, E[] actual, Class<?>... types) voidClasses.assertHasOnlyPublicFields(AssertionInfo info, Class<?> actual, String... expectedFields) Verifies that the actualClasshas only thefieldsand nothing more.voidUris.assertHasParameter(AssertionInfo info, URI actual, String name) voidUris.assertHasParameter(AssertionInfo info, URI actual, String expectedParameterName, String expectedParameterValue) voidUrls.assertHasParameter(AssertionInfo info, URL actual, String name) voidUrls.assertHasParameter(AssertionInfo info, URL actual, String expectedParameterName, String expectedParameterValue) voidFiles.assertHasParent(AssertionInfo info, File actual, File expected) Asserts that the givenFilehas the given parent.voidPaths.assertHasParent(AssertionInfo info, Path actual, Path expected) voidPaths.assertHasParentRaw(AssertionInfo info, Path actual, Path expected) voidUris.assertHasPath(AssertionInfo info, URI actual, String path) voidUrls.assertHasPath(AssertionInfo info, URL actual, String path) voidUris.assertHasPort(AssertionInfo info, URI actual, Integer expected) voidUrls.assertHasPort(AssertionInfo info, URL actual, int expected) voidUrls.assertHasProtocol(AssertionInfo info, URL actual, String protocol) voidClasses.assertHasPublicFields(AssertionInfo info, Class<?> actual, String... fields) Verifies that the actualClasshas thefields.voidClasses.assertHasPublicMethods(AssertionInfo info, Class<?> actual, String... methods) Verifies that the actualClasshas the publicmethods.voidUris.assertHasQuery(AssertionInfo info, URI actual, String expected) voidUrls.assertHasQuery(AssertionInfo info, URL actual, String expected) voidThrowables.assertHasRootCauseExactlyInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the root cause of actualThrowableis exactly an instance of the given type.voidThrowables.assertHasRootCauseInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the root cause of actualThrowableis an instance of the given type.voidObjects.assertHasSameClassAs(AssertionInfo info, Object actual, Object other) Verifies that the actual value has the same class as the given object.voidPaths.assertHasSameContentAs(AssertionInfo info, Path actual, Charset actualCharset, Path expected, Charset expectedCharset) (package private) voidArrays.assertHasSameSizeAs(AssertionInfo info, Object array, Iterable<?> other) voidArrays.assertHasSameSizeAs(AssertionInfo info, Object array, Object other) voidBooleanArrays.assertHasSameSizeAs(AssertionInfo info, boolean[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidBooleanArrays.assertHasSameSizeAs(AssertionInfo info, boolean[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidByteArrays.assertHasSameSizeAs(AssertionInfo info, byte[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidCharArrays.assertHasSameSizeAs(AssertionInfo info, char[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidCharArrays.assertHasSameSizeAs(AssertionInfo info, char[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidDoubleArrays.assertHasSameSizeAs(AssertionInfo info, double[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidDoubleArrays.assertHasSameSizeAs(AssertionInfo info, double[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidFloatArrays.assertHasSameSizeAs(AssertionInfo info, float[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidFloatArrays.assertHasSameSizeAs(AssertionInfo info, float[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidIntArrays.assertHasSameSizeAs(AssertionInfo info, int[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidIntArrays.assertHasSameSizeAs(AssertionInfo info, int[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidIterables.assertHasSameSizeAs(AssertionInfo info, Iterable<?> actual, Iterable<?> other) Assert that the actualIterablehas the same size as the otherIterable.voidIterables.assertHasSameSizeAs(AssertionInfo info, Iterable<?> actual, Object other) Assert that the actualIterablehas the same size as the other array.voidLongArrays.assertHasSameSizeAs(AssertionInfo info, long[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidLongArrays.assertHasSameSizeAs(AssertionInfo info, long[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Iterable<?> other) Asserts that the number of entries in the givenMaphas the same size as the otherIterable.voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Object other) Asserts that the number of entries in the givenMaphas the same size as the other array.voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Map<?, ?> other) Asserts that the size of the givenMapis equal to the size of the otherMap.voidObjectArrays.assertHasSameSizeAs(AssertionInfo info, Object[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidObjectArrays.assertHasSameSizeAs(AssertionInfo info, Object[] actual, Object other) Assert that the actual array has the same size as the other array.voidShortArrays.assertHasSameSizeAs(AssertionInfo info, short[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidShortArrays.assertHasSameSizeAs(AssertionInfo info, short[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidStrings.assertHasSameSizeAs(AssertionInfo info, CharSequence actual, CharSequence other) voidStrings.assertHasSameSizeAs(AssertionInfo info, CharSequence actual, Iterable<?> other) Asserts that the number of entries in the givenCharSequencehas the same size as the otherIterable.voidStrings.assertHasSameSizeAs(AssertionInfo info, CharSequence actual, Object array) Asserts that the number of entries in the givenCharSequencehas the same size as the other array.voidDates.assertHasSameTime(AssertionInfo info, Date actual, Date expected) Verifies that the actualDatehas same time as the givenDate.voidUris.assertHasScheme(AssertionInfo info, URI actual, String scheme) voidDates.assertHasSecond(AssertionInfo info, Date actual, int second) Verifies that the actualDatesecond is equal to the given second.(package private) voidArrays.assertHasSize(AssertionInfo info, Failures failures, Object array, int expectedSize) voidBooleanArrays.assertHasSize(AssertionInfo info, boolean[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidByteArrays.assertHasSize(AssertionInfo info, byte[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidCharArrays.assertHasSize(AssertionInfo info, char[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidDoubleArrays.assertHasSize(AssertionInfo info, double[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidFloatArrays.assertHasSize(AssertionInfo info, float[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidIntArrays.assertHasSize(AssertionInfo info, int[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidIterables.assertHasSize(AssertionInfo info, Iterable<?> actual, int expectedSize) Asserts that the number of elements in the givenIterableis equal to the expected one.voidLongArrays.assertHasSize(AssertionInfo info, long[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidMaps.assertHasSize(AssertionInfo info, Map<?, ?> actual, int expectedSize) Asserts that the number of entries in the givenMapis equal to the expected one.voidObjectArrays.assertHasSize(AssertionInfo info, Object[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidShortArrays.assertHasSize(AssertionInfo info, short[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidStrings.assertHasSize(AssertionInfo info, CharSequence actual, int expectedSize) Asserts that the size of the givenCharSequenceis equal to the expected one.voidThrowables.assertHasStackTraceContaining(AssertionInfo info, Throwable actual, String description) Asserts that the stack trace of the actualThrowablecontains with the given description.voidThrowables.assertHasSuppressedException(AssertionInfo info, Throwable actual, Throwable expectedSuppressedException) voidDates.assertHasTime(AssertionInfo info, Date actual, long timestamp) Verifies that the actualDatetime is equal to the given timestamp.voidObjects.assertHasToString(AssertionInfo info, Object actual, String expectedToString) voidUris.assertHasUserInfo(AssertionInfo info, URI actual, String expected) voidUrls.assertHasUserInfo(AssertionInfo info, URL actual, String expected) <V> voidMaps.assertHasValueSatisfying(AssertionInfo info, Map<?, V> actual, Condition<? super V> valueCondition) Verifies that the givenMapcontains an entry with value satisfyingvalueCondition.voidDates.assertHasYear(AssertionInfo info, Date actual, int year) Verifies that the actualDateyear is equal to the given year.<E> voidArrays.assertHave(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) <E> voidIterables.assertHave(AssertionInfo info, Iterable<? extends E> actual, Condition<? super E> condition) Assert that each element of givenIterablesatisfies the given condition.<E> voidObjectArrays.assertHave(AssertionInfo info, E[] actual, Condition<? super E> condition) Assert that each element of given array satisfies the given condition.<E> voidArrays.assertHaveAtLeast(AssertionInfo info, Failures failures, Conditions conditions, Object array, int times, Condition<E> condition) <E> voidIterables.assertHaveAtLeast(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreAtLeast(AssertionInfo, Iterable, int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidObjectArrays.assertHaveAtLeast(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreAtLeast(AssertionInfo, Object[], int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidArrays.assertHaveAtMost(AssertionInfo info, Failures failures, Conditions conditions, Object array, int times, Condition<E> condition) <E> voidIterables.assertHaveAtMost(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreAtMost(AssertionInfo, Iterable, int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidObjectArrays.assertHaveAtMost(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreAtMost(AssertionInfo, Object[], int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidArrays.assertHaveExactly(AssertionInfo info, Failures failures, Conditions conditions, Object array, int times, Condition<E> condition) <E> voidIterables.assertHaveExactly(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreExactly(AssertionInfo, Iterable, int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidObjectArrays.assertHaveExactly(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreExactly(AssertionInfo, Object[], int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidArrays.assertHaveNot(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) <T> voidConditions.assertIs(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given.Condition<T> voidLists.assertIs(AssertionInfo info, List<? extends T> actual, Condition<? super T> condition, Index index) Verifies that the givenListsatisfies the givenat the given index.ConditionvoidFiles.assertIsAbsolute(AssertionInfo info, File actual) Asserts that the given file is an absolute path.voidPaths.assertIsAbsolute(AssertionInfo info, Path actual) voidDates.assertIsAfter(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis strictly after the given one.voidDates.assertIsAfterOrEqualsTo(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis after or equal to the given one.voidDates.assertIsAfterYear(AssertionInfo info, Date actual, int year) Verifies that the actualDateis strictly after the given year.voidClasses.assertIsAnnotation(AssertionInfo info, Class<?> actual) Verifies that the actualClassis an annotation.static voidArrays.assertIsArray(AssertionInfo info, Object array) voidClasses.assertIsAssignableFrom(AssertionInfo info, Class<?> actual, Class<?>... others) Verifies that the actualClassis assignable from all theothersclasses.voidDates.assertIsBefore(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis strictly before the given one.voidDates.assertIsBeforeOrEqualsTo(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis before or equal to the given one.voidDates.assertIsBeforeYear(AssertionInfo info, Date actual, int year) Verifies that the actualDateis strictly before the given year.<T extends Comparable<? super T>>
voidComparables.assertIsBetween(AssertionInfo info, T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd) Asserts that the actual value is between start and end, inclusive or not.voidDates.assertIsBetween(AssertionInfo info, Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Verifies that the actualDateis in start:end period.
start date belongs to the period if inclusiveStart is true.
end date belongs to the period if inclusiveEnd is true.voidNumbers.assertIsBetween(AssertionInfo info, NUMBER actual, NUMBER start, NUMBER end) Asserts that the actual value is in [start, end] range (start included, end included).voidFutures.assertIsCancelled(AssertionInfo info, Future<?> actual) Verifies that theFutureis cancelled.voidPaths.assertIsCanonical(AssertionInfo info, Path actual) voidDates.assertIsCloseTo(AssertionInfo info, Date actual, Date other, long deltaInMilliseconds) Verifies that the actualDateis close to the other date by less than delta, if difference is equals to delta it is ok.
Note that delta expressed in milliseconds.
Use handy TimeUnit to convert a duration in milliseconds, for example you can express a delta of 5 seconds withTimeUnit.SECONDS.toMillis(5).voidNumbers.assertIsCloseTo(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset) Asserts that the actual value is close to the offset.voidNumbers.assertIsCloseToPercentage(AssertionInfo info, NUMBER actual, NUMBER other, Percentage percentage) Asserts that the actual value is close to the an offset expressed as an percentage value.voidFiles.assertIsDirectory(AssertionInfo info, File actual) Asserts that the given file is an existing directory.voidPaths.assertIsDirectory(AssertionInfo info, Path actual) voidFutures.assertIsDone(AssertionInfo info, Future<?> actual) Verifies that theFutureis done.<A> voidObjects.assertIsEqualToComparingFieldByFieldRecursively(AssertionInfo info, Object actual, Object other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType) Assert that the given object is "deeply" equals to other by comparing all fields recursively.<A> voidObjects.assertIsEqualToComparingOnlyGivenFields(AssertionInfo info, A actual, A other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType, String... fields) Assert that the given object is lenient equals to other object by comparing given fields value only.<A> voidObjects.assertIsEqualToIgnoringGivenFields(AssertionInfo info, A actual, A other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType, String... fields) Assert that the given object is lenient equals to the other by comparing all fields (including inherited fields) unless given ignored ones.<A> voidObjects.assertIsEqualToIgnoringNullFields(AssertionInfo info, A actual, A other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType) Assert that the given object is lenient equals by ignoring null fields value on other object (including inherited fields).voidStrings.assertIsEqualToNormalizingNewlines(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are not equal, normalizing newlines.voidDates.assertIsEqualWithPrecision(AssertionInfo info, Date actual, Date other, TimeUnit precision) Verifies that the actualDateis equal to the given one with precision.voidObjects.assertIsExactlyInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the actual value is exactly an instance of given type.voidPaths.assertIsExecutable(AssertionInfo info, Path actual) voidFiles.assertIsFile(AssertionInfo info, File actual) Asserts that the given file is an existing file.voidClasses.assertIsFinal(AssertionInfo info, Class<?> actual) Verifies that the actualClassis final.voidObjects.assertIsIn(AssertionInfo info, Object actual, Iterable<?> values) Asserts that the given object is present in the given collection.voidObjects.assertIsIn(AssertionInfo info, Object actual, Object[] values) Asserts that the given object is present in the given array.voidDates.assertIsInSameDayAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same day of month (and thus in the same month and year).voidDates.assertIsInSameHourAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare in the same hour (and thus in the same day of month, month and year).voidDates.assertIsInSameHourWindowAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same hour, day of month, month and year.voidDates.assertIsInSameMinuteAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare in the same minute, hour, day of month, month and year.voidDates.assertIsInSameMinuteWindowAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same minute.voidDates.assertIsInSameMonthAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same month (and thus in the same year).voidDates.assertIsInSameSecondAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare in the same second, minute, hour, day of month, month and year.voidDates.assertIsInSameSecondWindowAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same second.voidDates.assertIsInSameYearAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare in the same year.voidObjects.assertIsInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the given object is an instance of the given type.voidObjects.assertIsInstanceOfAny(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the given object is an instance of any of the given types.voidClasses.assertIsInterface(AssertionInfo info, Class<?> actual) Verifies that the actualClassis an interface.voidDates.assertIsInTheFuture(AssertionInfo info, Date actual) Verifies that the actualDateis strictly in the future.voidDates.assertIsInThePast(AssertionInfo info, Date actual) Verifies that the actualDateis strictly in the past.voidRealNumbers.assertIsNaN(AssertionInfo info, NUMBER actual) Verifies that the actual value is equal toNaN.
It does not rely on the custom comparisonStrategy (if one is set).voidNumbers.assertIsNegative(AssertionInfo info, NUMBER actual) Asserts that the actual value is negative.voidPaths.assertIsNormalized(AssertionInfo info, Path actual) <T> voidConditions.assertIsNot(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given.ConditionvoidClasses.assertIsNotAnnotation(AssertionInfo info, Class<?> actual) Verifies that the actualClassis not an annotation.voidDates.assertIsNotBetween(AssertionInfo info, Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Verifies that the actualDateis not in start:end period..
start date belongs to the period if inclusiveStart is true.
end date belongs to the period if inclusiveEnd is true.voidFutures.assertIsNotCancelled(AssertionInfo info, Future<?> actual) Verifies that theFutureis not cancelled.voidNumbers.assertIsNotCloseTo(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset) Asserts that the actual value is not close to the offset.voidNumbers.assertIsNotCloseToPercentage(AssertionInfo info, NUMBER actual, NUMBER other, Percentage percentage) Asserts that the actual value is not close to the an offset expressed as an percentage value.voidFutures.assertIsNotDone(AssertionInfo info, Future<?> actual) Verifies that theFutureis not done.voidObjects.assertIsNotExactlyInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the actual value is not exactly an instance of given type.voidClasses.assertIsNotFinal(AssertionInfo info, Class<?> actual) Verifies that the actualClassis not final.voidObjects.assertIsNotIn(AssertionInfo info, Object actual, Iterable<?> values) Asserts that the given object is not present in the given collection.voidObjects.assertIsNotIn(AssertionInfo info, Object actual, Object[] values) Asserts that the given object is not present in the given array.voidObjects.assertIsNotInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the given object is not an instance of the given type.voidObjects.assertIsNotInstanceOfAny(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the given object is not an instance of any of the given types.voidClasses.assertIsNotInterface(AssertionInfo info, Class<?> actual) Verifies that the actualClassis not an interface.voidRealNumbers.assertIsNotNaN(AssertionInfo info, NUMBER actual) Verifies that the actual value is not equal toNaN.voidNumbers.assertIsNotNegative(AssertionInfo info, NUMBER actual) Asserts that the actual value is not negative.voidObjects.assertIsNotOfAnyClassIn(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the actual value type is not in given types.voidNumbers.assertIsNotPositive(AssertionInfo info, NUMBER actual) Asserts that the actual value is not positive.voidNumbers.assertIsNotZero(AssertionInfo info, NUMBER actual) Asserts that the actual value is not equal to zero.
It does not rely on the custom comparisonStrategy (if one is set).voidObjects.assertIsOfAnyClassIn(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the actual value type is in given types.voidNumbers.assertIsOne(AssertionInfo info, NUMBER actual) Asserts that the actual value is equal to one.
It does not rely on the custom comparisonStrategy (if one is set).voidNumbers.assertIsPositive(AssertionInfo info, NUMBER actual) Asserts that the actual value is positive.voidClasses.assertIsProtected(AssertionInfo info, Class<?> actual) Verifies that the actualClassis protected.voidClasses.assertIsPublic(AssertionInfo info, Class<?> actual) Verifies that the actualClassis public.voidPaths.assertIsReadable(AssertionInfo info, Path actual) voidPaths.assertIsRegularFile(AssertionInfo info, Path actual) voidFiles.assertIsRelative(AssertionInfo info, File actual) Asserts that the given file is a relative path.voidPaths.assertIsRelative(AssertionInfo info, Path actual) (package private) voidArrays.assertIsSorted(AssertionInfo info, Failures failures, Object array) voidBooleanArrays.assertIsSorted(AssertionInfo info, boolean[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidByteArrays.assertIsSorted(AssertionInfo info, byte[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidCharArrays.assertIsSorted(AssertionInfo info, char[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidDoubleArrays.assertIsSorted(AssertionInfo info, double[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidFloatArrays.assertIsSorted(AssertionInfo info, float[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidIntArrays.assertIsSorted(AssertionInfo info, int[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidLists.assertIsSorted(AssertionInfo info, List<?> actual) Verifies that the actual list is sorted in ascending order according to the natural ordering of its elements.voidLongArrays.assertIsSorted(AssertionInfo info, long[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidObjectArrays.assertIsSorted(AssertionInfo info, Object[] actual) Concrete implementation ofArraySortedAssert.isSorted().voidShortArrays.assertIsSorted(AssertionInfo info, short[] actual) Concrete implementation ofArraySortedAssert.isSorted().(package private) static <T> voidArrays.assertIsSortedAccordingToComparator(AssertionInfo info, Failures failures, Object array, Comparator<T> comparator) voidBooleanArrays.assertIsSortedAccordingToComparator(AssertionInfo info, boolean[] actual, Comparator<? super Boolean> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidByteArrays.assertIsSortedAccordingToComparator(AssertionInfo info, byte[] actual, Comparator<? super Byte> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidCharArrays.assertIsSortedAccordingToComparator(AssertionInfo info, char[] actual, Comparator<? super Character> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidDoubleArrays.assertIsSortedAccordingToComparator(AssertionInfo info, double[] actual, Comparator<? super Double> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidFloatArrays.assertIsSortedAccordingToComparator(AssertionInfo info, float[] actual, Comparator<? super Float> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidIntArrays.assertIsSortedAccordingToComparator(AssertionInfo info, int[] actual, Comparator<? super Integer> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidLists.assertIsSortedAccordingToComparator(AssertionInfo info, List<?> actual, Comparator<?> comparator) Verifies that the actual list is sorted according to the given comparator. Empty lists are considered sorted whatever the comparator is. One element lists are considered sorted if the element is compatible with comparator.voidLongArrays.assertIsSortedAccordingToComparator(AssertionInfo info, long[] actual, Comparator<? super Long> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).<E> voidObjectArrays.assertIsSortedAccordingToComparator(AssertionInfo info, E[] actual, Comparator<? super E> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidShortArrays.assertIsSortedAccordingToComparator(AssertionInfo info, short[] actual, Comparator<? super Short> comparator) Concrete implementation ofArraySortedAssert.isSortedAccordingTo(Comparator).voidNumbers.assertIsStrictlyBetween(AssertionInfo info, NUMBER actual, NUMBER start, NUMBER end) Asserts that the actual value is in ]start, end[ range (start excluded, end excluded).voidArrays.assertIsSubsetOf(AssertionInfo info, Failures failures, Object actual, Iterable<?> values) voidIterables.assertIsSubsetOf(AssertionInfo info, Iterable<?> actual, Iterable<?> values) Verifies that the actualIterableis a subset of valuesIterable.voidObjectArrays.assertIsSubsetOf(AssertionInfo info, Object actual, Iterable<?> values) voidStrings.assertIsSubstringOf(AssertionInfo info, CharSequence actual, CharSequence sequence) voidPaths.assertIsSymbolicLink(AssertionInfo info, Path actual) voidDates.assertIsToday(AssertionInfo info, Date actual) Verifies that the actualDateis today, by comparing only year, month and day of actual to today (ie.voidPaths.assertIsWritable(AssertionInfo info, Path actual) voidNumbers.assertIsZero(AssertionInfo info, NUMBER actual) Asserts that the actual value is equal to zero.
It does not rely on the custom comparisonStrategy (if one is set).private voidIterables.assertIterableContainsGivenValues(Iterable<?> actual, Object[] values, AssertionInfo info) voidStrings.assertJavaBlank(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceisNull, empty or contains only whitespace according toCharacter.isWhitespace(char).<T extends Comparable<? super T>>
voidComparables.assertLessThan(AssertionInfo info, T actual, T other) Asserts that the actual value is less than the other one.<T extends Comparable<? super T>>
voidComparables.assertLessThanOrEqualTo(AssertionInfo info, T actual, T other) Asserts that the actual value is less than or equal to the other one.voidCharacters.assertLowerCase(AssertionInfo info, Character actual) Asserts that the actual value is a lowercase character.voidStrings.assertMatches(AssertionInfo info, CharSequence actual, CharSequence regex) Verifies that the givenCharSequencematches the given regular expression.voidStrings.assertMatches(AssertionInfo info, CharSequence actual, Pattern pattern) Verifies that the givenCharSequencematches the given regular expression.<E> voidIterables.assertNoneMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription) voidStrings.assertNotBlank(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceis notNull, not empty and contains not only whitespace.(package private) voidArrays.assertNotEmpty(AssertionInfo info, Failures failures, Object array) voidBooleanArrays.assertNotEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array is not empty.voidByteArrays.assertNotEmpty(AssertionInfo info, byte[] actual) Asserts that the given array is not empty.voidCharArrays.assertNotEmpty(AssertionInfo info, char[] actual) Asserts that the given array is not empty.voidDoubleArrays.assertNotEmpty(AssertionInfo info, double[] actual) Asserts that the given array is not empty.voidFloatArrays.assertNotEmpty(AssertionInfo info, float[] actual) Asserts that the given array is not empty.voidIntArrays.assertNotEmpty(AssertionInfo info, int[] actual) Asserts that the given array is not empty.voidIterables.assertNotEmpty(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterableis not empty.voidLongArrays.assertNotEmpty(AssertionInfo info, long[] actual) Asserts that the given array is not empty.voidMaps.assertNotEmpty(AssertionInfo info, Map<?, ?> actual) Asserts that the givenMapis not empty.voidObjectArrays.assertNotEmpty(AssertionInfo info, Object[] actual) Asserts that the given array is not empty.voidShortArrays.assertNotEmpty(AssertionInfo info, short[] actual) Asserts that the given array is not empty.voidStrings.assertNotEmpty(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceis not empty.voidBooleans.assertNotEqual(AssertionInfo info, Boolean actual, boolean other) Asserts that two longs are not equal.<T> voidComparables.assertNotEqual(AssertionInfo info, T actual, T other) Asserts that two T instances are not equal.voidObjects.assertNotEqual(AssertionInfo info, Object actual, Object other) Asserts that two objects are not equal.<T extends Comparable<? super T>>
voidComparables.assertNotEqualByComparison(AssertionInfo info, T actual, T other) Asserts that twos are not equal by invokingComparable.Comparable.compareTo(Object)
Note that it does not rely on the customComparables.comparisonStrategyif one has been set.voidStrings.assertNotEqualsIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are not equal, ignoring case considerations.voidStrings.assertNotEqualsIgnoringWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are not equal, ignoring any differences in whitespace.voidStrings.assertNotEqualsNormalizingWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) Verifies that twoCharSequences are not equal, after the whitespace of both strings has been normalized.voidStrings.assertNotJavaBlank(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceis notNull, not empty or contains not only whitespace according toCharacter.isWhitespace(char).private static voidArrays.assertNotNull(AssertionInfo info, Object array) private static voidBooleans.assertNotNull(AssertionInfo info, Boolean actual) private static voidClasses.assertNotNull(AssertionInfo info, Class<?> actual) protected static <T> voidComparables.assertNotNull(AssertionInfo info, T actual) private voidDates.assertNotNull(AssertionInfo info, Date actual) private static voidFiles.assertNotNull(AssertionInfo info, File actual) private voidFutures.assertNotNull(AssertionInfo info, Future<?> actual) private static voidInputStreams.assertNotNull(AssertionInfo info, InputStream stream) (package private) voidIterables.assertNotNull(AssertionInfo info, Iterable<?> actual) private voidLists.assertNotNull(AssertionInfo info, List<?> actual) private voidMaps.assertNotNull(AssertionInfo info, Map<?, ?> actual) voidObjects.assertNotNull(AssertionInfo info, Object actual) Asserts that the given object is notnull.private static voidPaths.assertNotNull(AssertionInfo info, Path actual) private voidStrings.assertNotNull(AssertionInfo info, CharSequence actual) private static voidThrowables.assertNotNull(AssertionInfo info, Throwable actual) voidObjects.assertNotSame(AssertionInfo info, Object actual, Object other) Asserts that two objects do not refer to the same object.voidObjects.assertNull(AssertionInfo info, Object actual) Asserts that the given object isnull.(package private) voidArrays.assertNullOrEmpty(AssertionInfo info, Failures failures, Object array) voidBooleanArrays.assertNullOrEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array isnullor empty.voidByteArrays.assertNullOrEmpty(AssertionInfo info, byte[] actual) Asserts that the given array isnullor empty.voidCharArrays.assertNullOrEmpty(AssertionInfo info, char[] actual) Asserts that the given array isnullor empty.voidDoubleArrays.assertNullOrEmpty(AssertionInfo info, double[] actual) Asserts that the given array isnullor empty.voidFloatArrays.assertNullOrEmpty(AssertionInfo info, float[] actual) Asserts that the given array isnullor empty.voidIntArrays.assertNullOrEmpty(AssertionInfo info, int[] actual) Asserts that the given array isnullor empty.voidIterables.assertNullOrEmpty(AssertionInfo info, Iterable<?> actual) Asserts that the givenisIterablenullor empty.voidLongArrays.assertNullOrEmpty(AssertionInfo info, long[] actual) Asserts that the given array isnullor empty.voidMaps.assertNullOrEmpty(AssertionInfo info, Map<?, ?> actual) Asserts that the givenMapisnullor empty.voidObjectArrays.assertNullOrEmpty(AssertionInfo info, Object[] actual) Asserts that the given array isnullor empty.voidShortArrays.assertNullOrEmpty(AssertionInfo info, short[] actual) Asserts that the given array isnullor empty.voidStrings.assertNullOrEmpty(AssertionInfo info, CharSequence actual) Asserts that the givenCharSequenceisnullor empty.voidObjects.assertSame(AssertionInfo info, Object actual, Object expected) Asserts that two objects refer to the same object.voidFiles.assertSameContentAs(AssertionInfo info, File actual, Charset actualCharset, File expected, Charset expectedCharset) Asserts that the given files have same content.voidInputStreams.assertSameContentAs(AssertionInfo info, InputStream actual, InputStream expected) Asserts that the given InputStreams have same content.(package private) voidArrays.assertStartsWith(AssertionInfo info, Failures failures, Object actual, Object sequence) voidBooleanArrays.assertStartsWith(AssertionInfo info, boolean[] actual, boolean[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidByteArrays.assertStartsWith(AssertionInfo info, byte[] actual, byte[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidByteArrays.assertStartsWith(AssertionInfo info, byte[] actual, int[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidCharArrays.assertStartsWith(AssertionInfo info, char[] actual, char[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidDoubleArrays.assertStartsWith(AssertionInfo info, double[] actual, double[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidFloatArrays.assertStartsWith(AssertionInfo info, float[] actual, float[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidIntArrays.assertStartsWith(AssertionInfo info, int[] actual, int[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidIterables.assertStartsWith(AssertionInfo info, Iterable<?> actual, Object[] sequence) Verifies that the givenIterablestarts with the given sequence of objects, without any other objects between them.voidLongArrays.assertStartsWith(AssertionInfo info, long[] actual, long[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidObjectArrays.assertStartsWith(AssertionInfo info, Object[] actual, Object[] sequence) Verifies that the given array starts with the given sequence of objects, without any other objects between them.voidPaths.assertStartsWith(AssertionInfo info, Path actual, Path start) voidShortArrays.assertStartsWith(AssertionInfo info, short[] actual, short[] sequence) Verifies that the given array starts with the given sequence of values, without any other values between them.voidStrings.assertStartsWith(AssertionInfo info, CharSequence actual, CharSequence prefix) Verifies that the givenCharSequencestarts with the given prefix.voidPaths.assertStartsWithRaw(AssertionInfo info, Path actual, Path other) private static voidArrays.assertThatArrayComponentTypeIsSortable(AssertionInfo info, Failures failures, Object array) voidCharacters.assertUpperCase(AssertionInfo info, Character actual) Asserts that the actual value is a uppercase character.voidStrings.assertXmlEqualsTo(AssertionInfo info, CharSequence actualXml, CharSequence expectedXml) static voidCommonValidations.checkIterableIsNotNull(AssertionInfo info, Iterable<?> set) static voidCommonValidations.checkLineCounts(Object actual, int lineCountOfActual, int lineCountOfOther, AssertionInfo info) (package private) static voidCommonValidations.checkSameSizes(AssertionInfo info, Object actual, int sizeOfActual, int sizeOfOther) static voidCommonValidations.checkSizes(Object actual, int sizeOfActual, int sizeOfOther, AssertionInfo info) private static booleanArrays.commonChecks(AssertionInfo info, Object actual, Object sequence) private booleanIterables.commonCheckThatIterableAssertionSucceeds(AssertionInfo info, Iterable<?> actual, Object[] sequence) private <T> booleanLists.conditionIsMetAtIndex(AssertionInfo info, List<T> actual, Condition<? super T> condition, Index index) private voidClasses.doAssertHasMethods(AssertionInfo info, Class<?> actual, Set<Method> actualMethods, boolean declared, String... expectedMethods) private <K,V> void Maps.doCommonContainsCheck(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>[] entries) Failures.failure(AssertionInfo info, AssertionErrorFactory factory) Creates afollowing this pattern: creates aAssertionErrorusingAssertionErroras the error message if such value is notoverridingErrorMessage()null, or uses the givento create anAssertionErrorFactory, prepending the value ofAssertionErrorto the error messagedescription()Failures.failure(AssertionInfo info, ErrorMessageFactory message) Creates afollowing this pattern: creates aAssertionErrorusingAssertionErroras the error message if such value is notoverridingErrorMessage()null, or uses the givento create the detail message of theErrorMessageFactory, prepending the value ofAssertionErrorto the error messagedescription()Failures.failureIfErrorMessageIsOverridden(AssertionInfo info) private <E> List<E>Arrays.filterElements(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition, boolean negateCondition) private <E> List<E>Arrays.getElementsMatchingCondition(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) private <E> List<E>Arrays.getElementsNotMatchingCondition(AssertionInfo info, Failures failures, Conditions conditions, Object array, Condition<E> condition) static voidCommonValidations.hasSameSizeAsCheck(AssertionInfo info, Object actual, Iterable<?> other, int sizeOfActual) static voidCommonValidations.hasSameSizeAsCheck(AssertionInfo info, Object actual, Object other, int sizeOfActual) static voidCommonValidations.hasSameSizeAsCheck(AssertionInfo info, Object actual, Map<?, ?> other, int sizeOfActual) voidDates.hasSameTimeAs(AssertionInfo info, Date actual, Date date) Verifies that the actualDateis equal to the given date by comparing their time.private booleanObjects.haveSameClass(Object actual, Object other, AssertionInfo info) private booleanFiles.isAbsolutePath(AssertionInfo info, File actual) private booleanObjects.isInstanceOfClass(Object actual, Class<?> clazz, AssertionInfo info) private booleanObjects.isOfOneOfGivenTypes(Object actual, Class<?>[] types, AssertionInfo info) private booleanObjects.objectIsInstanceOfOneOfGivenClasses(Object actual, Class<?>[] types, AssertionInfo info)