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. -
Uses of AssertionInfo in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type AssertionInfoModifier and TypeMethodDescriptionUnsatisfiedRequirement.describe(int index, AssertionInfo info) UnsatisfiedRequirement.describe(AssertionInfo info) static StringZippedElementsShouldSatisfy.ZipSatisfyError.describe(AssertionInfo info, ZippedElementsShouldSatisfy.ZipSatisfyError satisfyError) static ErrorMessageFactoryElementsShouldSatisfy.elementsShouldSatisfy(Object actual, List<UnsatisfiedRequirement> elementsNotSatisfyingRestrictions, AssertionInfo info) static ErrorMessageFactoryElementsShouldSatisfy.elementsShouldSatisfyAny(Object actual, List<UnsatisfiedRequirement> elementsNotSatisfyingRequirements, AssertionInfo info) static ErrorMessageFactoryElementsShouldSatisfy.elementsShouldSatisfyExactly(Object actual, Map<Integer, UnsatisfiedRequirement> unsatisfiedRequirements, AssertionInfo info) static ErrorMessageFactoryZippedElementsShouldSatisfy.zippedElementsShouldSatisfy(AssertionInfo info, Iterable<?> actual, Iterable<?> other, List<ZippedElementsShouldSatisfy.ZipSatisfyError> zipSatisfyErrors) -
Uses of AssertionInfo in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type AssertionInfoModifier and TypeMethodDescription<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) <K,V> void Maps.assertAllSatisfy(AssertionInfo info, Map<K, V> actual, BiConsumer<? super K, ? super V> entryRequirements) <E> voidIterables.assertAnyMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription) <E> voidIterables.assertAnySatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements) <K,V> void Maps.assertAnySatisfy(AssertionInfo info, Map<K, V> actual, BiConsumer<? super K, ? super V> entryRequirements) <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.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.Futures.assertCompletedExceptionallyWithin(AssertionInfo info, Future<?> actual, long timeout, TimeUnit unit) Futures.assertCompletedExceptionallyWithin(AssertionInfo info, Future<?> actual, Duration timeout) voidArrays.assertContains(AssertionInfo info, Failures failures, Object actual, Object values) voidArrays2D.assertContains(AssertionInfo info, Failures failures, Object array, Object value, Index index) voidBoolean2DArrays.assertContains(AssertionInfo info, boolean[][] actual, boolean[] value, Index index) Verifies that the given array contains the given value at the given 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.voidByte2DArrays.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, 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.voidChar2DArrays.assertContains(AssertionInfo info, char[][] actual, char[] 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.voidDouble2DArrays.assertContains(AssertionInfo info, double[][] actual, double[] 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.voidFloat2DArrays.assertContains(AssertionInfo info, float[][] actual, float[] 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.voidInt2DArrays.assertContains(AssertionInfo info, int[][] actual, int[] 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.voidLong2DArrays.assertContains(AssertionInfo info, long[][] actual, long[] value, Index index) Verifies that the given array contains the given value 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) voidObject2DArrays.assertContains(AssertionInfo info, ELEMENT[][] actual, ELEMENT[] value, Index index) Verifies that the given array contains the given object at the given index.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.voidShort2DArrays.assertContains(AssertionInfo info, short[][] actual, short[] value, Index index) Verifies that the given array contains the given value 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) 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.<K,V> void Maps.assertContainsAllEntriesOf(AssertionInfo info, Map<K, V> actual, Map<? extends K, ? extends V> other) voidClasses.assertContainsAnnotations(AssertionInfo info, Class<?> actual, Class<? extends Annotation>[] annotations) Verifies that the actualClasscontains the givenAnnotations.voidArrays.assertContainsAnyOf(AssertionInfo info, Failures failures, Object actual, Object values) voidBooleanArrays.assertContainsAnyOf(AssertionInfo info, boolean[] actual, boolean[] values) voidByteArrays.assertContainsAnyOf(AssertionInfo info, byte[] actual, byte[] values) voidCharArrays.assertContainsAnyOf(AssertionInfo info, char[] actual, char[] values) voidDoubleArrays.assertContainsAnyOf(AssertionInfo info, double[] actual, double[] values) voidFloatArrays.assertContainsAnyOf(AssertionInfo info, float[] actual, float[] values) voidIntArrays.assertContainsAnyOf(AssertionInfo info, int[] actual, int[] values) voidIterables.assertContainsAnyOf(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains at least one of the givenvalues.voidLongArrays.assertContainsAnyOf(AssertionInfo info, long[] actual, long[] values) <K,V> void Maps.assertContainsAnyOf(AssertionInfo info, Map<K, V> actual, Map.Entry<? extends K, ? extends V>[] entries) voidObjectArrays.assertContainsAnyOf(AssertionInfo info, Object[] actual, Object[] values) voidShortArrays.assertContainsAnyOf(AssertionInfo info, short[] actual, short[] values) voidStrings.assertContainsAnyOf(AssertionInfo info, CharSequence actual, CharSequence[] 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) voidObjectArrays.assertContainsExactly(AssertionInfo info, Object[] actual, Object[] values) voidShortArrays.assertContainsExactly(AssertionInfo info, short[] actual, short[] 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) voidStrings.assertContainsIgnoringNewLines(AssertionInfo info, CharSequence actual, CharSequence... values) <K,V> void Maps.assertContainsKey(AssertionInfo info, Map<K, V> actual, K key) <K,V> void Maps.assertContainsKeys(AssertionInfo info, Map<K, V> actual, K[] keys) 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.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[] expectedValues) 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) 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) <K,V> void Maps.assertContainsOnlyKeys(AssertionInfo info, Map<K, V> actual, Iterable<? extends K> keys) <K,V> void Maps.assertContainsOnlyKeys(AssertionInfo info, Map<K, V> actual, K[] keys) voidIterables.assertContainsOnlyNulls(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterablecontains only null elements and nothing else.voidObjectArrays.assertContainsOnlyNulls(AssertionInfo info, Object[] actual) Asserts that the given array contains only null elements.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) voidStrings.assertContainsPattern(AssertionInfo info, CharSequence actual, CharSequence regex) voidStrings.assertContainsPattern(AssertionInfo info, CharSequence actual, Matcher matcher) voidStrings.assertContainsPattern(AssertionInfo info, CharSequence actual, Pattern pattern) 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) 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).IterablevoidLongArrays.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).voidStrings.assertContainsSubsequence(AssertionInfo info, CharSequence actual, CharSequence[] subsequence) <K,V> void Maps.assertContainsValue(AssertionInfo info, Map<K, V> actual, V value) <K,V> void Maps.assertContainsValues(AssertionInfo info, Map<K, V> actual, V[] values) voidArrays2D.assertDoesNotContain(AssertionInfo info, Failures failures, Object array, Object value, Index index) voidBoolean2DArrays.assertDoesNotContain(AssertionInfo info, boolean[][] actual, boolean[] value, Index index) Verifies that the given array does not contain the given value at the given 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.voidByte2DArrays.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, 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.voidChar2DArrays.assertDoesNotContain(AssertionInfo info, char[][] actual, char[] 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.voidDouble2DArrays.assertDoesNotContain(AssertionInfo info, double[][] actual, double[] 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.voidFloat2DArrays.assertDoesNotContain(AssertionInfo info, float[][] actual, float[] 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.voidInt2DArrays.assertDoesNotContain(AssertionInfo info, int[][] actual, int[] 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.voidLong2DArrays.assertDoesNotContain(AssertionInfo info, long[][] actual, long[] value, Index index) Verifies that the given array does not contain the given value 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) voidObject2DArrays.assertDoesNotContain(AssertionInfo info, ELEMENT[][] actual, ELEMENT[] value, Index index) Verifies that the given array does not contain the given object at the given index.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.voidShort2DArrays.assertDoesNotContain(AssertionInfo info, short[][] actual, short[] value, Index index) Verifies that the given array does not contain the given value 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... values) <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) voidStrings.assertDoesNotContainIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence... values) <K,V> void Maps.assertDoesNotContainKey(AssertionInfo info, Map<K, V> actual, K key) <K,V> void Maps.assertDoesNotContainKeys(AssertionInfo info, Map<K, V> actual, K[] keys) 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) voidStrings.assertDoesNotContainPattern(AssertionInfo info, CharSequence actual, Pattern pattern) 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.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) voidStrings.assertDoesNotEndWith(AssertionInfo info, CharSequence actual, CharSequence suffix) voidStrings.assertDoesNotEndWithIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence 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<E> voidObjectArrays.assertDoesNotHaveAnyElementsOfTypes(AssertionInfo info, E[] actual, Class<?>... unexpectedTypes) 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) <A> voidObjects.assertDoesNotHaveSameHashCodeAs(AssertionInfo info, A actual, Object other) voidObjects.assertDoesNotHaveToString(AssertionInfo info, Object actual, String otherToString) voidStrings.assertDoesNotMatch(AssertionInfo info, CharSequence actual, CharSequence regex) voidStrings.assertDoesNotMatch(AssertionInfo info, CharSequence actual, Pattern pattern) voidStrings.assertDoesNotStartWith(AssertionInfo info, CharSequence actual, CharSequence prefix) voidStrings.assertDoesNotStartWithIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence 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.voidArrays2D.assertEmpty(AssertionInfo info, Failures failures, Object array) voidBoolean2DArrays.assertEmpty(AssertionInfo info, boolean[][] actual) Asserts that the given array is empty.voidBooleanArrays.assertEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array is empty.voidByte2DArrays.assertEmpty(AssertionInfo info, byte[][] actual) Asserts that the given array is empty.voidByteArrays.assertEmpty(AssertionInfo info, byte[] actual) Asserts that the given array is empty.voidChar2DArrays.assertEmpty(AssertionInfo info, char[][] actual) Asserts that the given array is empty.voidCharArrays.assertEmpty(AssertionInfo info, char[] actual) Asserts that the given array is empty.voidDouble2DArrays.assertEmpty(AssertionInfo info, double[][] actual) Asserts that the given array is empty.voidDoubleArrays.assertEmpty(AssertionInfo info, double[] actual) Asserts that the given array is empty.voidFloat2DArrays.assertEmpty(AssertionInfo info, float[][] actual) Asserts that the given array is empty.voidFloatArrays.assertEmpty(AssertionInfo info, float[] actual) Asserts that the given array is empty.voidInt2DArrays.assertEmpty(AssertionInfo info, int[][] 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.voidLong2DArrays.assertEmpty(AssertionInfo info, long[][] actual) Asserts that the given array is empty.voidLongArrays.assertEmpty(AssertionInfo info, long[] actual) Asserts that the given array is empty.voidMaps.assertEmpty(AssertionInfo info, Map<?, ?> actual) voidObject2DArrays.assertEmpty(AssertionInfo info, ELEMENT[][] actual) Asserts that the given array is empty.voidObjectArrays.assertEmpty(AssertionInfo info, Object[] actual) Asserts that the given array is empty.voidShort2DArrays.assertEmpty(AssertionInfo info, short[][] 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) 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.voidIterables.assertEndsWith(AssertionInfo info, Iterable<?> actual, Object first, Object[] rest) 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.voidObjectArrays.assertEndsWith(AssertionInfo info, Object[] actual, Object first, Object[] rest) 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 other) 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) voidStrings.assertEndsWithIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence suffix) voidPaths.assertEndsWithRaw(AssertionInfo info, Path actual, Path end) <T> voidComparables.assertEqual(AssertionInfo info, T actual, T expected) Asserts that two T instances are equal.voidObjects.assertEqual(AssertionInfo info, Object actual, Object expected) <T> voidComparables.assertEqualByComparison(AssertionInfo info, Comparable<? super 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) voidStrings.assertEqualsIgnoringWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) voidStrings.assertEqualsNormalizingPunctuationAndWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) voidStrings.assertEqualsNormalizingWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) voidStrings.assertEqualsToNormalizingUnicode(AssertionInfo info, CharSequence actual, CharSequence expected) 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) Futures.assertFailedWithin(AssertionInfo info, Future<?> actual, long timeout, TimeUnit unit) Futures.assertFailedWithin(AssertionInfo info, Future<?> actual, Duration timeout) <T> voidComparables.assertGreaterThan(AssertionInfo info, Comparable<? super T> actual, T other) <T> voidComparables.assertGreaterThanOrEqualTo(AssertionInfo info, Comparable<? super T> actual, T other) <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.Condition<A> voidObjects.assertHasAllNullFieldsOrPropertiesExcept(AssertionInfo info, A actual, String... propertiesOrFieldsToIgnore) voidUrls.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) Asserts that the actualThrowablehas a cause.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.voidThrowables.assertHasCauseReference(AssertionInfo info, Throwable actual, Throwable expectedCause) Asserts that the actualThrowablehas a cause that refers to the expected one.voidSpliterators.assertHasCharacteristics(AssertionInfo info, Spliterator<?> actual, int... characteristics) Asserts the givenhas the given characteristics.SpliteratorvoidFiles.assertHasContent(AssertionInfo info, File actual, String expected, Charset charset) Asserts that the given file has the given text content.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.voidFiles.assertHasDigest(AssertionInfo info, File actual, String algorithm, byte[] expected) voidFiles.assertHasDigest(AssertionInfo info, File actual, String algorithm, String expected) voidFiles.assertHasDigest(AssertionInfo info, File actual, MessageDigest digest, byte[] expected) voidFiles.assertHasDigest(AssertionInfo info, File actual, MessageDigest digest, String expected) voidPaths.assertHasDigest(AssertionInfo info, Path actual, String algorithm, byte[] expected) voidPaths.assertHasDigest(AssertionInfo info, Path actual, String algorithm, String expected) voidPaths.assertHasDigest(AssertionInfo info, Path actual, MessageDigest digest, byte[] expected) voidPaths.assertHasDigest(AssertionInfo info, Path actual, MessageDigest digest, String expected) voidArrays2D.assertHasDimensions(AssertionInfo info, Failures failures, Object array2d, int expectedNumberOfRows, int expectedRowSize) voidBoolean2DArrays.assertHasDimensions(AssertionInfo info, boolean[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidByte2DArrays.assertHasDimensions(AssertionInfo info, byte[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidChar2DArrays.assertHasDimensions(AssertionInfo info, char[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidDouble2DArrays.assertHasDimensions(AssertionInfo info, double[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidFloat2DArrays.assertHasDimensions(AssertionInfo info, float[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidInt2DArrays.assertHasDimensions(AssertionInfo info, int[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidLong2DArrays.assertHasDimensions(AssertionInfo info, long[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidObject2DArrays.assertHasDimensions(AssertionInfo info, ELEMENT[][] actual, int expectedFirstDimension, int expectedSecondDimension) Asserts that the number of elements in the given array is equal to the expected one.voidShort2DArrays.assertHasDimensions(AssertionInfo info, short[][] actual, int expectedFirstDimensionSize, int expectedSecondDimensionSize) Asserts that the number of elements in the given array is equal to the expected one.<K,V> void Maps.assertHasEntrySatisfying(AssertionInfo info, Map<K, V> actual, K key, Consumer<? super V> valueRequirements) <K,V> void Maps.assertHasEntrySatisfying(AssertionInfo info, Map<K, V> actual, K key, Condition<? super V> valueCondition) <K,V> void Maps.assertHasEntrySatisfying(AssertionInfo info, Map<K, V> actual, Condition<? super Map.Entry<K, V>> entryCondition) <K,V> void Maps.assertHasEntrySatisfyingConditions(AssertionInfo info, Map<K, V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition) <E> voidObjectArrays.assertHasExactlyElementsOfTypes(AssertionInfo info, E[] actual, Class<?>... expectedTypes) voidFiles.assertHasExtension(AssertionInfo info, File actual, String expected) Asserts that the givenFilehas the given extension.voidPaths.assertHasExtension(AssertionInfo info, Path actual, String expected) <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) voidPaths.assertHasFileSystem(AssertionInfo info, Path actual, FileSystem expectedFileSystem) 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) voidStrings.assertHasLineCount(AssertionInfo info, CharSequence actual, int expectedLineCount) voidThrowables.assertHasMessage(AssertionInfo info, Throwable actual, String expectedMessage) 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.assertHasMessageContainingAll(AssertionInfo info, Throwable actual, CharSequence... values) Asserts that the message of the actualThrowablecontains with the given values.voidThrowables.assertHasMessageEndingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowableends with the given description.voidThrowables.assertHasMessageFindingMatch(AssertionInfo info, Throwable actual, String regex) Asserts that a sequence of the message of the actualThrowablematches with the given regular expression (seeMatcher.find()).voidThrowables.assertHasMessageMatching(AssertionInfo info, Throwable actual, String regex) voidThrowables.assertHasMessageMatching(AssertionInfo info, Throwable actual, Pattern regex) Asserts that the message of the actualThrowablematches with the given regular expression.voidThrowables.assertHasMessageNotContaining(AssertionInfo info, Throwable actual, String content) Asserts that the message of the actualThrowabledoes not contain the given content or isnull.voidThrowables.assertHasMessageNotContainingAny(AssertionInfo info, Throwable actual, CharSequence... values) Asserts that the message of the actualThrowabledoes not contain any of the given values or isnull.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.voidIterators.assertHasNext(AssertionInfo info, Iterator<?> actual) voidThrowables.assertHasNoCause(AssertionInfo info, Throwable actual) Asserts that the actualThrowabledoes not have a cause.voidFiles.assertHasNoExtension(AssertionInfo info, File actual) voidPaths.assertHasNoExtension(AssertionInfo info, Path actual) voidUris.assertHasNoHost(AssertionInfo info, URI actual) voidUrls.assertHasNoHost(AssertionInfo info, URL actual) <A> voidObjects.assertHasNoNullFieldsOrPropertiesExcept(AssertionInfo info, A actual, String... propertiesOrFieldsToIgnore) 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) voidSpliterators.assertHasOnlyCharacteristics(AssertionInfo info, Spliterator<?> actual, int... characteristics) Asserts the givenhas only the given characteristics and no else.SpliteratorvoidClasses.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) <E> voidObjectArrays.assertHasOnlyElementsOfTypes(AssertionInfo info, E[] actual, Class<?>... types) <A> voidObjects.assertHasOnlyFields(AssertionInfo info, A actual, String... names) <T> voidIterables.assertHasOnlyOneElementSatisfying(AssertionInfo info, Iterable<? extends T> actual, Consumer<? super T> consumer) 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.assertHasRootCause(AssertionInfo info, Throwable actual) Asserts that the actualThrowablehas a root cause.voidThrowables.assertHasRootCause(AssertionInfo info, Throwable actual, Throwable expectedRootCause) Asserts that the actualThrowablehas a root cause similar to the given one.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.voidThrowables.assertHasRootCauseMessage(AssertionInfo info, Throwable actual, String expectedMessage) Asserts that the message of the root cause of the actualThrowableis equal to the given one.voidPaths.assertHasSameBinaryContentAs(AssertionInfo info, Path actual, Path expected) voidObjects.assertHasSameClassAs(AssertionInfo info, Object actual, Object other) voidArrays2D.assertHasSameDimensionsAs(AssertionInfo info, Object actual, Object other) voidBoolean2DArrays.assertHasSameDimensionsAs(AssertionInfo info, boolean[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidByte2DArrays.assertHasSameDimensionsAs(AssertionInfo info, byte[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidChar2DArrays.assertHasSameDimensionsAs(AssertionInfo info, char[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidDouble2DArrays.assertHasSameDimensionsAs(AssertionInfo info, double[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidFloat2DArrays.assertHasSameDimensionsAs(AssertionInfo info, float[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidInt2DArrays.assertHasSameDimensionsAs(AssertionInfo info, int[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidLong2DArrays.assertHasSameDimensionsAs(AssertionInfo info, long[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidObject2DArrays.assertHasSameDimensionsAs(AssertionInfo info, ELEMENT[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidShort2DArrays.assertHasSameDimensionsAs(AssertionInfo info, short[][] actual, Object other) Assert that the actual array has the same dimensions as the other array.voidPaths.assertHasSameFileSystemAs(AssertionInfo info, Path actualPath, Path expectedPath) <A> voidObjects.assertHasSameHashCodeAs(AssertionInfo info, A actual, Object 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) voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Object other) voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Map<?, ?> other) 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) voidStrings.assertHasSameSizeAs(AssertionInfo info, CharSequence actual, Object array) voidPaths.assertHasSameTextualContentAs(AssertionInfo info, Path actual, Charset actualCharset, Path expected, Charset expectedCharset) voidDates.assertHasSameTime(AssertionInfo info, Date actual, Date expected) Verifies that the actualDatehas same time as the givenDate.voidBigDecimals.assertHasScale(AssertionInfo info, BigDecimal actual, int expectedScale) 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.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) voidObjectArrays.assertHasSize(AssertionInfo info, Object[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidPaths.assertHasSize(AssertionInfo info, Path actual, long expectedSize) 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) voidBooleanArrays.assertHasSizeBetween(AssertionInfo info, boolean[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidByteArrays.assertHasSizeBetween(AssertionInfo info, byte[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidCharArrays.assertHasSizeBetween(AssertionInfo info, char[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidDoubleArrays.assertHasSizeBetween(AssertionInfo info, double[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidFloatArrays.assertHasSizeBetween(AssertionInfo info, float[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidIntArrays.assertHasSizeBetween(AssertionInfo info, int[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidIterables.assertHasSizeBetween(AssertionInfo info, Iterable<?> actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the givenIterableis between the given lower and higher boundary (inclusive).voidLongArrays.assertHasSizeBetween(AssertionInfo info, long[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidMaps.assertHasSizeBetween(AssertionInfo info, Map<?, ?> actual, int lowerBoundary, int higherBoundary) voidObjectArrays.assertHasSizeBetween(AssertionInfo info, Object[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidShortArrays.assertHasSizeBetween(AssertionInfo info, short[] actual, int lowerBoundary, int higherBoundary) Asserts that the number of elements in the given array is between the given lower and higher boundary (inclusive).voidStrings.assertHasSizeBetween(AssertionInfo info, CharSequence actual, int lowerBoundary, int higherBoundary) voidBooleanArrays.assertHasSizeGreaterThan(AssertionInfo info, boolean[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidByteArrays.assertHasSizeGreaterThan(AssertionInfo info, byte[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidCharArrays.assertHasSizeGreaterThan(AssertionInfo info, char[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidDoubleArrays.assertHasSizeGreaterThan(AssertionInfo info, double[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidFloatArrays.assertHasSizeGreaterThan(AssertionInfo info, float[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidIntArrays.assertHasSizeGreaterThan(AssertionInfo info, int[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidIterables.assertHasSizeGreaterThan(AssertionInfo info, Iterable<?> actual, int boundary) Asserts that the number of elements in the givenIterableis greater than the boundary.voidLongArrays.assertHasSizeGreaterThan(AssertionInfo info, long[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidMaps.assertHasSizeGreaterThan(AssertionInfo info, Map<?, ?> actual, int boundary) voidObjectArrays.assertHasSizeGreaterThan(AssertionInfo info, Object[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidShortArrays.assertHasSizeGreaterThan(AssertionInfo info, short[] actual, int boundary) Asserts that the number of elements in the given array is greater than the given boundary.voidStrings.assertHasSizeGreaterThan(AssertionInfo info, CharSequence actual, int expectedMinSizeExcluded) voidBooleanArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, boolean[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidByteArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, byte[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidCharArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, char[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidDoubleArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, double[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidFloatArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, float[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidIntArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, int[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidIterables.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, Iterable<?> actual, int boundary) Asserts that the number of elements in the givenIterableis greater than or equal to the boundary.voidLongArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, long[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidMaps.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, Map<?, ?> actual, int boundary) voidObjectArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, Object[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidShortArrays.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, short[] actual, int boundary) Asserts that the number of elements in the given array is greater than or equal to the given boundary.voidStrings.assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, CharSequence actual, int expectedMinSizeIncluded) voidFiles.assertHasSizeInBytes(AssertionInfo info, File actual, long expectedSizeInBytes) Asserts that the given file has the given size in bytes.voidBooleanArrays.assertHasSizeLessThan(AssertionInfo info, boolean[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidByteArrays.assertHasSizeLessThan(AssertionInfo info, byte[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidCharArrays.assertHasSizeLessThan(AssertionInfo info, char[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidDoubleArrays.assertHasSizeLessThan(AssertionInfo info, double[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidFloatArrays.assertHasSizeLessThan(AssertionInfo info, float[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidIntArrays.assertHasSizeLessThan(AssertionInfo info, int[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidIterables.assertHasSizeLessThan(AssertionInfo info, Iterable<?> actual, int boundary) Asserts that the number of elements in the givenIterableis less than the boundary.voidLongArrays.assertHasSizeLessThan(AssertionInfo info, long[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidMaps.assertHasSizeLessThan(AssertionInfo info, Map<?, ?> actual, int boundary) voidObjectArrays.assertHasSizeLessThan(AssertionInfo info, Object[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidShortArrays.assertHasSizeLessThan(AssertionInfo info, short[] actual, int boundary) Asserts that the number of elements in the given array is less than the given boundary.voidStrings.assertHasSizeLessThan(AssertionInfo info, CharSequence actual, int expectedMaxSizeExcluded) voidBooleanArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, boolean[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidByteArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, byte[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidCharArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, char[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidDoubleArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, double[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidFloatArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, float[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidIntArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, int[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidIterables.assertHasSizeLessThanOrEqualTo(AssertionInfo info, Iterable<?> actual, int boundary) Asserts that the number of elements in the givenIterableis less than or equal to the boundary.voidLongArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, long[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidMaps.assertHasSizeLessThanOrEqualTo(AssertionInfo info, Map<?, ?> actual, int boundary) voidObjectArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, Object[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidShortArrays.assertHasSizeLessThanOrEqualTo(AssertionInfo info, short[] actual, int boundary) Asserts that the number of elements in the given array is less than or equal to the given boundary.voidStrings.assertHasSizeLessThanOrEqualTo(AssertionInfo info, CharSequence actual, int expectedMaxSizeIncluded) 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) voidPaths.assertHasTextualContent(AssertionInfo info, Path actual, String expected, Charset charset) 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) 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) protected StringFailures.assertionErrorMessage(AssertionInfo info, ErrorMessageFactory messageFactory) <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) <T> voidComparables.assertIsAfter(AssertionInfo info, Comparable<? super T> actual, T other) voidDates.assertIsAfter(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis strictly after the given one.<T> voidComparables.assertIsAfterOrEqualTo(AssertionInfo info, Comparable<? super T> actual, T other) voidDates.assertIsAfterOrEqualTo(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.static voidArrays.assertIsArray(AssertionInfo info, Object array) voidClasses.assertIsAssignableFrom(AssertionInfo info, Class<?> actual, Class<?>... others) Verifies that the actualClassis assignable from all theothersclasses.voidStrings.assertIsBase64(AssertionInfo info, String actual) <T> voidComparables.assertIsBefore(AssertionInfo info, Comparable<? super T> actual, T other) Asserts that the actual value is strictly before the other one.voidDates.assertIsBefore(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis strictly before the given one.<T> voidComparables.assertIsBeforeOrEqualTo(AssertionInfo info, Comparable<? super T> actual, T other) voidDates.assertIsBeforeOrEqualTo(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> voidComparables.assertIsBetween(AssertionInfo info, Comparable<? super 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 expected one by less than the given 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) voidFiles.assertIsDirectoryContaining(AssertionInfo info, File actual, String syntaxAndPattern) voidFiles.assertIsDirectoryContaining(AssertionInfo info, File actual, Predicate<File> filter) voidPaths.assertIsDirectoryContaining(AssertionInfo info, Path actual, String syntaxAndPattern) voidPaths.assertIsDirectoryContaining(AssertionInfo info, Path actual, Predicate<Path> filter) voidFiles.assertIsDirectoryNotContaining(AssertionInfo info, File actual, String syntaxAndPattern) voidFiles.assertIsDirectoryNotContaining(AssertionInfo info, File actual, Predicate<File> filter) voidPaths.assertIsDirectoryNotContaining(AssertionInfo info, Path actual, String syntaxAndPattern) voidPaths.assertIsDirectoryNotContaining(AssertionInfo info, Path actual, Predicate<Path> filter) voidFiles.assertIsDirectoryRecursivelyContaining(AssertionInfo info, File actual, String syntaxAndPattern) voidFiles.assertIsDirectoryRecursivelyContaining(AssertionInfo info, File actual, Predicate<File> filter) voidPaths.assertIsDirectoryRecursivelyContaining(AssertionInfo info, Path actual, String syntaxAndPattern) voidPaths.assertIsDirectoryRecursivelyContaining(AssertionInfo info, Path actual, Predicate<Path> filter) voidFutures.assertIsDone(AssertionInfo info, Future<?> actual) Verifies that theFutureis done.voidFiles.assertIsEmptyDirectory(AssertionInfo info, File actual) voidPaths.assertIsEmptyDirectory(AssertionInfo info, Path actual) voidFiles.assertIsEmptyFile(AssertionInfo info, File actual) Asserts that the givenFileis empty (i.e.voidPaths.assertIsEmptyFile(AssertionInfo info, Path actual) <A> voidObjects.assertIsEqualToComparingFieldByFieldRecursively(AssertionInfo info, Object actual, Object other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType) <A> voidObjects.assertIsEqualToComparingOnlyGivenFields(AssertionInfo info, A actual, A other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType, String... fields) <A> voidObjects.assertIsEqualToIgnoringGivenFields(AssertionInfo info, A actual, A other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType, String... fields) voidStrings.assertIsEqualToIgnoringNewLines(AssertionInfo info, CharSequence actual, CharSequence expected) <A> voidObjects.assertIsEqualToIgnoringNullFields(AssertionInfo info, A actual, A other, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType) voidStrings.assertIsEqualToNormalizingNewlines(AssertionInfo info, CharSequence actual, CharSequence expected) voidUrls.assertIsEqualToWithSortedQueryParameters(AssertionInfo info, URL actual, URL expected) voidDates.assertIsEqualWithPrecision(AssertionInfo info, Date actual, Date other, TimeUnit precision) Verifies that the actualDateis equal to the given one with precision.default voidWholeNumbers.assertIsEven(AssertionInfo info, NUMBER actual) Asserts that the actual value is even.voidObjects.assertIsExactlyInstanceOf(AssertionInfo info, Object actual, Class<?> type) voidFiles.assertIsExecutable(AssertionInfo info, File actual) Asserts that the given file can be executed by the application.voidPaths.assertIsExecutable(AssertionInfo info, Path actual) voidIterators.assertIsExhausted(AssertionInfo info, Iterator<?> actual) voidFiles.assertIsFile(AssertionInfo info, File actual) Asserts that the given file is an existing file.voidRealNumbers.assertIsFinite(AssertionInfo info, NUMBER actual) voidObjects.assertIsIn(AssertionInfo info, Object actual, Iterable<?> values) voidObjects.assertIsIn(AssertionInfo info, Object actual, Object[] values) voidRealNumbers.assertIsInfinite(AssertionInfo info, NUMBER actual) 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) voidObjects.assertIsInstanceOfAny(AssertionInfo info, Object actual, Class<?>[] types) 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.ConditionvoidDates.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 expected one by less than the given 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.voidFiles.assertIsNotEmptyDirectory(AssertionInfo info, File actual) voidPaths.assertIsNotEmptyDirectory(AssertionInfo info, Path actual) voidFiles.assertIsNotEmptyFile(AssertionInfo info, File actual) Asserts that the givenFileis not empty (i.e.voidPaths.assertIsNotEmptyFile(AssertionInfo info, Path actual) voidObjects.assertIsNotExactlyInstanceOf(AssertionInfo info, Object actual, Class<?> type) voidRealNumbers.assertIsNotFinite(AssertionInfo info, NUMBER actual) voidObjects.assertIsNotIn(AssertionInfo info, Object actual, Iterable<?> values) voidObjects.assertIsNotIn(AssertionInfo info, Object actual, Object[] values) voidRealNumbers.assertIsNotInfinite(AssertionInfo info, NUMBER actual) voidObjects.assertIsNotInstanceOf(AssertionInfo info, Object actual, Class<?> type) voidObjects.assertIsNotInstanceOfAny(AssertionInfo info, Object actual, Class<?>[] types) 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) 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).default voidWholeNumbers.assertIsOdd(AssertionInfo info, NUMBER actual) Asserts that the actual value is odd.voidObjects.assertIsOfAnyClassIn(AssertionInfo info, Object actual, Class<?>[] 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.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) 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().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).<T> voidComparables.assertLessThan(AssertionInfo info, Comparable<? super T> actual, T other) Asserts that the actual value is less than the other one.<T> voidComparables.assertLessThanOrEqualTo(AssertionInfo info, Comparable<? super T> actual, T other) voidCharacters.assertLowerCase(AssertionInfo info, Character actual) Asserts that the actual value is a lowercase character.voidStrings.assertLowerCase(AssertionInfo info, CharSequence actual) voidStrings.assertMatches(AssertionInfo info, CharSequence actual, CharSequence regex) voidStrings.assertMatches(AssertionInfo info, CharSequence actual, Matcher matcher) voidStrings.assertMatches(AssertionInfo info, CharSequence actual, Pattern pattern) voidStrings.assertMixedCase(AssertionInfo info, CharSequence actual) <E> voidIterables.assertNoneMatch(AssertionInfo info, Iterable<? extends E> actual, Predicate<? super E> predicate, PredicateDescription predicateDescription) <E> voidIterables.assertNoneSatisfy(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> restrictions) <K,V> void Maps.assertNoneSatisfy(AssertionInfo info, Map<K, V> actual, BiConsumer<? super K, ? super V> entryRequirements) voidArrays2D.assertNotEmpty(AssertionInfo info, Failures failures, Object array) voidBoolean2DArrays.assertNotEmpty(AssertionInfo info, boolean[][] actual) Asserts that the given array is not empty.voidBooleanArrays.assertNotEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array is not empty.voidByte2DArrays.assertNotEmpty(AssertionInfo info, byte[][] actual) Asserts that the given array is not empty.voidByteArrays.assertNotEmpty(AssertionInfo info, byte[] actual) Asserts that the given array is not empty.voidChar2DArrays.assertNotEmpty(AssertionInfo info, char[][] actual) Asserts that the given array is not empty.voidCharArrays.assertNotEmpty(AssertionInfo info, char[] actual) Asserts that the given array is not empty.voidDouble2DArrays.assertNotEmpty(AssertionInfo info, double[][] actual) Asserts that the given array is not empty.voidDoubleArrays.assertNotEmpty(AssertionInfo info, double[] actual) Asserts that the given array is not empty.voidFloat2DArrays.assertNotEmpty(AssertionInfo info, float[][] actual) Asserts that the given array is not empty.voidFloatArrays.assertNotEmpty(AssertionInfo info, float[] actual) Asserts that the given array is not empty.voidInt2DArrays.assertNotEmpty(AssertionInfo info, int[][] 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.voidLong2DArrays.assertNotEmpty(AssertionInfo info, long[][] actual) Asserts that the given array is not empty.voidLongArrays.assertNotEmpty(AssertionInfo info, long[] actual) Asserts that the given array is not empty.voidMaps.assertNotEmpty(AssertionInfo info, Map<?, ?> actual) voidObject2DArrays.assertNotEmpty(AssertionInfo info, ELEMENT[][] actual) Asserts that the given array is not empty.voidObjectArrays.assertNotEmpty(AssertionInfo info, Object[] actual) Asserts that the given array is not empty.voidShort2DArrays.assertNotEmpty(AssertionInfo info, short[][] 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) <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) <T> voidComparables.assertNotEqualByComparison(AssertionInfo info, Comparable<? super 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) voidStrings.assertNotEqualsIgnoringWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) voidStrings.assertNotEqualsNormalizingWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected) protected static <T> voidComparables.assertNotNull(AssertionInfo info, T actual) voidObjects.assertNotNull(AssertionInfo info, Object actual) voidObjects.assertNotNull(AssertionInfo info, Object actual, String label) voidObjects.assertNotSame(AssertionInfo info, Object actual, Object other) voidObjects.assertNull(AssertionInfo info, Object actual) voidArrays2D.assertNullOrEmpty(AssertionInfo info, Failures failures, Object array) voidBoolean2DArrays.assertNullOrEmpty(AssertionInfo info, boolean[][] actual) Asserts that the given array isnullor empty.voidBooleanArrays.assertNullOrEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array isnullor empty.voidByte2DArrays.assertNullOrEmpty(AssertionInfo info, byte[][] actual) Asserts that the given array isnullor empty.voidByteArrays.assertNullOrEmpty(AssertionInfo info, byte[] actual) Asserts that the given array isnullor empty.voidChar2DArrays.assertNullOrEmpty(AssertionInfo info, char[][] actual) Asserts that the given array isnullor empty.voidCharArrays.assertNullOrEmpty(AssertionInfo info, char[] actual) Asserts that the given array isnullor empty.voidDouble2DArrays.assertNullOrEmpty(AssertionInfo info, double[][] actual) Asserts that the given array isnullor empty.voidDoubleArrays.assertNullOrEmpty(AssertionInfo info, double[] actual) Asserts that the given array isnullor empty.voidFloat2DArrays.assertNullOrEmpty(AssertionInfo info, float[][] actual) Asserts that the given array isnullor empty.voidFloatArrays.assertNullOrEmpty(AssertionInfo info, float[] actual) Asserts that the given array isnullor empty.voidInt2DArrays.assertNullOrEmpty(AssertionInfo info, int[][] 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.voidLong2DArrays.assertNullOrEmpty(AssertionInfo info, long[][] actual) Asserts that the given array isnullor empty.voidLongArrays.assertNullOrEmpty(AssertionInfo info, long[] actual) Asserts that the given array isnullor empty.voidMaps.assertNullOrEmpty(AssertionInfo info, Map<?, ?> actual) voidObject2DArrays.assertNullOrEmpty(AssertionInfo info, ELEMENT[][] actual) Asserts that the given array isnullor empty.voidObjectArrays.assertNullOrEmpty(AssertionInfo info, Object[] actual) Asserts that the given array isnullor empty.voidShort2DArrays.assertNullOrEmpty(AssertionInfo info, short[][] 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) voidArrays2D.assertNumberOfRows(AssertionInfo info, Failures failures, Object array, int expectedSize) voidBoolean2DArrays.assertNumberOfRows(AssertionInfo info, boolean[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidByte2DArrays.assertNumberOfRows(AssertionInfo info, byte[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidChar2DArrays.assertNumberOfRows(AssertionInfo info, char[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidDouble2DArrays.assertNumberOfRows(AssertionInfo info, double[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidFloat2DArrays.assertNumberOfRows(AssertionInfo info, float[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidInt2DArrays.assertNumberOfRows(AssertionInfo info, int[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidLong2DArrays.assertNumberOfRows(AssertionInfo info, long[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidObject2DArrays.assertNumberOfRows(AssertionInfo info, ELEMENT[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidShort2DArrays.assertNumberOfRows(AssertionInfo info, short[][] actual, int expectedNumberOfRows) Asserts that the number of rows in the given array is equal to the expected one.voidObjects.assertSame(AssertionInfo info, Object actual, Object expected) voidFiles.assertSameBinaryContentAs(AssertionInfo info, File actual, File expected) Asserts that the given files have the same binary content.voidFiles.assertSameContentAs(AssertionInfo info, File actual, Charset actualCharset, File expected, Charset expectedCharset) Asserts that the given files have same content.<T> voidConditions.assertSatisfies(AssertionInfo info, T actual, Condition<? super T> condition) <E> voidIterables.assertSatisfiesExactly(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E>[] allRequirements) <E> voidIterables.assertSatisfiesExactlyInAnyOrder(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E>[] consumers) <E> voidIterables.assertSatisfiesOnlyOnce(AssertionInfo info, Iterable<? extends E> actual, Consumer<? super E> requirements) 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 other) 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) voidStrings.assertStartsWithIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence prefix) voidPaths.assertStartsWithRaw(AssertionInfo info, Path actual, Path other) <RESULT> RESULTFutures.assertSucceededWithin(AssertionInfo info, Future<RESULT> actual, long timeout, TimeUnit unit) <RESULT> RESULTFutures.assertSucceededWithin(AssertionInfo info, Future<RESULT> actual, Duration timeout) voidCharacters.assertUpperCase(AssertionInfo info, Character actual) Asserts that the actual value is a uppercase character.voidStrings.assertUpperCase(AssertionInfo info, CharSequence actual) voidStrings.assertXmlEqualsTo(AssertionInfo info, CharSequence actualXml, CharSequence expectedXml) <ACTUAL_ELEMENT,OTHER_ELEMENT>
voidIterables.assertZipSatisfy(AssertionInfo info, Iterable<? extends ACTUAL_ELEMENT> actual, Iterable<OTHER_ELEMENT> other, BiConsumer<? super ACTUAL_ELEMENT, OTHER_ELEMENT> zipRequirements) static voidCommonValidations.checkLineCounts(Object actual, int lineCountOfActual, int lineCountOfOther, AssertionInfo info) static voidCommonValidations.checkSizeBetween(Object actual, int lowerBoundary, int higherBoundary, int sizeOfActual, AssertionInfo info) static voidCommonValidations.checkSizeGreaterThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info) static voidCommonValidations.checkSizeGreaterThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info) static voidCommonValidations.checkSizeLessThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info) static voidCommonValidations.checkSizeLessThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info) static voidCommonValidations.checkSizes(Object actual, int sizeOfActual, int sizeOfOther, AssertionInfo info) static voidStrings.doCommonCheckForCharSequence(AssertionInfo info, CharSequence actual, CharSequence[] sequence) static voidCommonValidations.failIfEmptySinceActualIsNotEmpty(AssertionInfo info, Failures failures, Object actual, Object values) 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 messageFactory) 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.failure(AssertionInfo info, ErrorMessageFactory messageFactory, Object actual, Object expected) Failures.failureIfErrorMessageIsOverridden(AssertionInfo info) 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.<T> voidLists.satisfies(AssertionInfo info, List<? extends T> actual, Consumer<? super T> requirements, Index index)