Uses of Interface
org.fest.assertions.core.AssertionInfo
Packages that use AssertionInfo
-
Uses of AssertionInfo in org.fest.assertions.core
Classes in org.fest.assertions.core that implement AssertionInfoModifier and TypeClassDescriptionclassWritable information about an assertion. -
Uses of AssertionInfo in org.fest.assertions.internal
Methods in org.fest.assertions.internal with parameters of type AssertionInfoModifier and TypeMethodDescription<E> voidIterables.assertAre(AssertionInfo info, Iterable<? extends E> actual, Condition<? super E> 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> voidIterables.assertAreAtLeast(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there is 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 is at least n array elements satisfying the given condition.<E> voidIterables.assertAreAtMost(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there is 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 is at most n array elements satisfying the given condition.<E> voidIterables.assertAreExactly(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Verifies that there is 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 is exactly n array elements satisfying the given 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.<E> voidIterables.assertAreNotAtLeast(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Assert that there is at least n elements in the actualIterablenot satisfying the given condition.<E> voidObjectArrays.assertAreNotAtLeast(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Assert that there is at least n array elements not satisfying the given condition.<E> voidIterables.assertAreNotAtMost(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Verifies that there is at most n elements in the actualIterablenot satisfying the given condition.<E> voidObjectArrays.assertAreNotAtMost(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Verifies that there is at most n array elements not satisfying the given condition.<E> voidIterables.assertAreNotExactly(AssertionInfo info, Iterable<? extends E> actual, int n, Condition<? super E> condition) Verifies that there is exactly n elements in the actualIterablenot satisfying the given condition.<E> voidObjectArrays.assertAreNotExactly(AssertionInfo info, E[] actual, int n, Condition<? super E> condition) Verifies that there is exactly n elements in the actualIterablenot satisfying 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.voidBooleanArrays.assertContains(AssertionInfo info, boolean[] actual, boolean[] values) Asserts that the given array contains the given values, in any order.voidBooleanArrays.assertContains(AssertionInfo info, boolean[] actual, boolean value, Index index) Verifies that the given array contains the given value at the given index.voidByteArrays.assertContains(AssertionInfo info, byte[] actual, byte[] values) Asserts that the given array contains the given values, in any order.voidByteArrays.assertContains(AssertionInfo info, byte[] actual, byte value, Index index) Verifies that the given array contains the given value at the given index.voidCharArrays.assertContains(AssertionInfo info, char[] actual, char[] values) Asserts that the given array contains the given values, in any order.voidCharArrays.assertContains(AssertionInfo info, char[] actual, char value, Index index) Verifies that the given array contains the given value at the given index.voidDoubleArrays.assertContains(AssertionInfo info, double[] actual, double[] values) Asserts that the given array contains the given values, in any order.voidDoubleArrays.assertContains(AssertionInfo info, double[] actual, double value, Index index) Verifies that the given array contains the given value at the given index.voidFloatArrays.assertContains(AssertionInfo info, float[] actual, float[] values) Asserts that the given array contains the given values, in any order.voidFloatArrays.assertContains(AssertionInfo info, float[] actual, float value, Index index) Verifies that the given array contains the given value at the given index.voidIntArrays.assertContains(AssertionInfo info, int[] actual, int[] values) Asserts that the given array contains the given values, in any order.voidIntArrays.assertContains(AssertionInfo info, int[] actual, int value, Index index) Verifies that the given array contains the given value at the given index.voidIterables.assertContains(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains the given values, in any order.voidLists.assertContains(AssertionInfo info, List<?> actual, Object value, Index index) Verifies that the givenListcontains the given object at the given index.voidLongArrays.assertContains(AssertionInfo info, long[] actual, long[] values) Asserts that the given array contains the given values, in any order.voidLongArrays.assertContains(AssertionInfo info, long[] actual, long value, Index index) Verifies that the given array contains the given value at the given index.voidMaps.assertContains(AssertionInfo info, Map<?, ?> actual, MapEntry[] entries) Asserts that the givenMapcontains the given entries, in any order.voidObjectArrays.assertContains(AssertionInfo info, Object[] actual, Object[] values) Asserts that the given array contains the given values, in any order.voidObjectArrays.assertContains(AssertionInfo info, Object[] actual, Object value, Index index) Verifies that the given array contains the given object at the given index.voidShortArrays.assertContains(AssertionInfo info, short[] actual, short[] values) Asserts that the given array contains the given values, in any order.voidShortArrays.assertContains(AssertionInfo info, short[] actual, short value, Index index) Verifies that the given array contains the given value at the given index.voidStrings.assertContains(AssertionInfo info, String actual, String sequence) Verifies that the givenStringcontains the given sequence.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.voidIterables.assertContainsExactly(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains exactly the given values and nothing else, in order.voidStrings.assertContainsIgnoringCase(AssertionInfo info, String actual, String sequence) Verifies that the givenStringcontains the given sequence, ignoring case considerations.<K,V> void Maps.assertContainsKey(AssertionInfo info, Map<K, V> actual, K key) Verifies that the actual map contain the given key.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.voidCharArrays.assertContainsOnly(AssertionInfo info, char[] actual, char[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidDoubleArrays.assertContainsOnly(AssertionInfo info, double[] actual, double[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidFloatArrays.assertContainsOnly(AssertionInfo info, float[] actual, float[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidIntArrays.assertContainsOnly(AssertionInfo info, int[] actual, int[] values) Asserts that the given array contains only the given values and nothing else, in any order.voidIterables.assertContainsOnly(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterablecontains only the given values and nothing else, in any order.voidLongArrays.assertContainsOnly(AssertionInfo info, long[] actual, long[] values) Asserts that the given array contains only the given values and nothing else, in any order.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.assertContainsOnlyOnce(AssertionInfo info, String actual, String sequence) Verifies that actualStrings contains only once the given sequence.voidBooleanArrays.assertContainsSequence(AssertionInfo info, boolean[] actual, boolean[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.voidByteArrays.assertContainsSequence(AssertionInfo info, byte[] actual, byte[] sequence) Verifies that the given array contains the given sequence of values, without any other values between them.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.<K,V> void Maps.assertContainsValue(AssertionInfo info, Map<K, V> actual, V value) Verifies that the actual map contain the given value.voidBooleanArrays.assertDoesNotContain(AssertionInfo info, boolean[] actual, boolean[] values) Asserts that the given array does not contain the given values.voidBooleanArrays.assertDoesNotContain(AssertionInfo info, boolean[] actual, boolean value, Index index) Verifies that the given array does not contain the given value at the given index.voidByteArrays.assertDoesNotContain(AssertionInfo info, byte[] actual, byte[] values) Asserts that the given array does not contain the given values.voidByteArrays.assertDoesNotContain(AssertionInfo info, byte[] actual, byte value, Index index) Verifies that the given array does not contain the given value at the given index.voidCharArrays.assertDoesNotContain(AssertionInfo info, char[] actual, char[] values) Asserts that the given array does not contain the given values.voidCharArrays.assertDoesNotContain(AssertionInfo info, char[] actual, char value, Index index) Verifies that the given array does not contain the given value at the given index.voidDoubleArrays.assertDoesNotContain(AssertionInfo info, double[] actual, double[] values) Asserts that the given array does not contain the given values.voidDoubleArrays.assertDoesNotContain(AssertionInfo info, double[] actual, double value, Index index) Verifies that the given array does not contain the given value at the given index.voidFloatArrays.assertDoesNotContain(AssertionInfo info, float[] actual, float[] values) Asserts that the given array does not contain the given values.voidFloatArrays.assertDoesNotContain(AssertionInfo info, float[] actual, float value, Index index) Verifies that the given array does not contain the given value at the given index.voidIntArrays.assertDoesNotContain(AssertionInfo info, int[] actual, int[] values) Asserts that the given array does not contain the given values.voidIntArrays.assertDoesNotContain(AssertionInfo info, int[] actual, int value, Index index) Verifies that the given array does not contain the given value at the given index.voidIterables.assertDoesNotContain(AssertionInfo info, Iterable<?> actual, Object[] values) Asserts that the givenIterabledoes not contain the given values.voidLists.assertDoesNotContain(AssertionInfo info, List<?> actual, Object value, Index index) Verifies that the givenListdoes not contain the given object at the given index.voidLongArrays.assertDoesNotContain(AssertionInfo info, long[] actual, long[] values) Asserts that the given array does not contain the given values.voidLongArrays.assertDoesNotContain(AssertionInfo info, long[] actual, long value, Index index) Verifies that the given array does not contain the given value at the given index.voidMaps.assertDoesNotContain(AssertionInfo info, Map<?, ?> actual, MapEntry[] entries) Asserts that the givenMapdoes not contain the given entries.voidObjectArrays.assertDoesNotContain(AssertionInfo info, Object[] actual, Object[] values) Asserts that the given array does not contain the given values.voidObjectArrays.assertDoesNotContain(AssertionInfo info, Object[] actual, Object value, Index index) Verifies that the given array does not contain the given object at the given index.voidShortArrays.assertDoesNotContain(AssertionInfo info, short[] actual, short[] values) Asserts that the given array does not contain the given values.voidShortArrays.assertDoesNotContain(AssertionInfo info, short[] actual, short value, Index index) Verifies that the given array does not contain the given value at the given index.voidStrings.assertDoesNotContain(AssertionInfo info, String actual, String sequence) Verifies that the givenStringdoes not contain the given sequence.<K,V> void Maps.assertDoesNotContainKey(AssertionInfo info, Map<K, V> actual, K key) Verifies that the actual map not contains the given key.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.<K,V> void Maps.assertDoesNotContainValue(AssertionInfo info, Map<K, V> actual, V value) Verifies that the actual map not contains the given value.voidFiles.assertDoesNotExist(AssertionInfo info, File actual) Asserts that the given file does not exist.<T> voidConditions.assertDoesNotHave(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value does not satisfy the given.ConditionvoidBooleanArrays.assertDoesNotHaveDuplicates(AssertionInfo info, boolean[] actual) Asserts that the given array does not have duplicate values.voidByteArrays.assertDoesNotHaveDuplicates(AssertionInfo info, byte[] actual) Asserts that the given array does not have duplicate values.voidCharArrays.assertDoesNotHaveDuplicates(AssertionInfo info, char[] actual) Asserts that the given array does not have duplicate values.voidDoubleArrays.assertDoesNotHaveDuplicates(AssertionInfo info, double[] actual) Asserts that the given array does not have duplicate values.voidFloatArrays.assertDoesNotHaveDuplicates(AssertionInfo info, float[] actual) Asserts that the given array does not have duplicate values.voidIntArrays.assertDoesNotHaveDuplicates(AssertionInfo info, int[] actual) Asserts that the given array does not have duplicate values.voidIterables.assertDoesNotHaveDuplicates(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterabledoes not have duplicate values.voidLongArrays.assertDoesNotHaveDuplicates(AssertionInfo info, long[] actual) Asserts that the given array does not have duplicate values.voidObjectArrays.assertDoesNotHaveDuplicates(AssertionInfo info, Object[] actual) Asserts that the given array does not have duplicate values.voidShortArrays.assertDoesNotHaveDuplicates(AssertionInfo info, short[] actual) Asserts that the given array does not have duplicate values.voidObjects.assertDoesNotHaveSameClassAs(AssertionInfo info, Object actual, Object other) Verifies that the actual value does not have the same class as the given object.voidStrings.assertDoesNotMatch(AssertionInfo info, String actual, String regex) Verifies that the givenStringdoes not match the given regular expression.voidStrings.assertDoesNotMatch(AssertionInfo info, String actual, Pattern pattern) Verifies that the givenStringdoes not match the given regular expression.<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.<E> voidIterables.assertDoNotHaveAtLeast(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreNotAtLeast(AssertionInfo, Iterable, int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidObjectArrays.assertDoNotHaveAtLeast(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreNotAtLeast(AssertionInfo, Object[], int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidIterables.assertDoNotHaveAtMost(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreNotAtMost(AssertionInfo, Iterable, int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidObjectArrays.assertDoNotHaveAtMost(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreNotAtMost(AssertionInfo, Object[], int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidIterables.assertDoNotHaveExactly(AssertionInfo info, Iterable<? extends E> actual, int times, Condition<? super E> condition) An alias method ofIterables.assertAreNotExactly(AssertionInfo, Iterable, int, Condition)to provide a richer fluent api (same logic, only error message differs).<E> voidObjectArrays.assertDoNotHaveExactly(AssertionInfo info, E[] actual, int times, Condition<? super E> condition) An alias method ofObjectArrays.assertAreNotExactly(AssertionInfo, Object[], int, Condition)to provide a richer fluent api (same logic, only error message differs).voidBooleanArrays.assertEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array is empty.voidByteArrays.assertEmpty(AssertionInfo info, byte[] actual) Asserts that the given array is empty.voidCharArrays.assertEmpty(AssertionInfo info, char[] actual) Asserts that the given array is empty.voidDoubleArrays.assertEmpty(AssertionInfo info, double[] actual) Asserts that the given array is empty.voidFloatArrays.assertEmpty(AssertionInfo info, float[] actual) Asserts that the given array is empty.voidIntArrays.assertEmpty(AssertionInfo info, int[] actual) Asserts that the given array is empty.voidIterables.assertEmpty(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterableis empty.voidLongArrays.assertEmpty(AssertionInfo info, long[] actual) Asserts that the given array is empty.voidMaps.assertEmpty(AssertionInfo info, Map<?, ?> actual) Asserts that the givenMapis empty.voidObjectArrays.assertEmpty(AssertionInfo info, Object[] actual) Asserts that the given array is empty.voidShortArrays.assertEmpty(AssertionInfo info, short[] actual) Asserts that the given array is empty.voidStrings.assertEmpty(AssertionInfo info, String actual) Asserts that the givenStringis empty.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.voidCharArrays.assertEndsWith(AssertionInfo info, char[] actual, char[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidDoubleArrays.assertEndsWith(AssertionInfo info, double[] actual, double[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidFloatArrays.assertEndsWith(AssertionInfo info, float[] actual, float[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidIntArrays.assertEndsWith(AssertionInfo info, int[] actual, int[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidIterables.assertEndsWith(AssertionInfo info, Iterable<?> actual, Object[] sequence) Verifies that the givenIterableends with the given sequence of objects, without any other objects between them.voidLongArrays.assertEndsWith(AssertionInfo info, long[] actual, long[] sequence) Verifies that the given array ends with the given sequence of values, without any other values between them.voidObjectArrays.assertEndsWith(AssertionInfo info, Object[] actual, Object[] sequence) Verifies that the given array ends with the given sequence of objects, without any other objects between them.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, String actual, String suffix) Verifies that the givenStringends with the given suffix.voidBooleans.assertEqual(AssertionInfo info, Boolean actual, boolean expected) Asserts that two booleans are equal.<T> voidComparables.assertEqual(AssertionInfo info, T actual, T expected) Asserts that two T instances are equal.voidDoubles.assertEqual(AssertionInfo info, Double actual, Double expected, Offset<Double> offset) Verifies that two floats are equal within a positive offset.
It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.voidFloats.assertEqual(AssertionInfo info, Float actual, Float expected, Offset<Float> offset) Verifies that two floats are equal within a positive offset.
It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.voidObjects.assertEqual(AssertionInfo info, Object actual, Object expected) Asserts that two objects are equal.<T extends Comparable<? super T>>
voidComparables.assertEqualByComparison(AssertionInfo info, T actual, T expected) Asserts that twos are equal by invokingComparable.Comparable.compareTo(Object)
Note that it does not rely on the customComparables.comparisonStrategyif one has been set.voidFiles.assertEqualContent(AssertionInfo info, File actual, File expected) Asserts that the given files have equal content.voidInputStreams.assertEqualContent(AssertionInfo info, InputStream actual, InputStream expected) Asserts that the given InputStreams have equal content.voidStrings.assertEqualsIgnoringCase(AssertionInfo info, String actual, String expected) Verifies that twoStrings are equal, ignoring case considerations.voidFiles.assertExists(AssertionInfo info, File actual) Asserts that the given file exists, regardless it's a file or directory.<T extends Comparable<? super T>>
voidComparables.assertGreaterThan(AssertionInfo info, T actual, T other) Asserts that the actual value is greater than the other one.<T extends Comparable<? super T>>
voidComparables.assertGreaterThanOrEqualTo(AssertionInfo info, T actual, T other) Asserts that the actual value is greater than or equal to the other one.<T> voidConditions.assertHas(AssertionInfo info, T actual, Condition<? super T> condition) Asserts that the actual value satisfies the given.Condition<T> voidLists.assertHas(AssertionInfo info, List<T> actual, Condition<? super T> condition, Index index) Verifies that the givenListsatisfies the givenat the given index.ConditionvoidFiles.assertHasBinaryContent(AssertionInfo info, File actual, byte[] expected) Asserts that the given file has the given binary content.voidFiles.assertHasContent(AssertionInfo info, File actual, String expected, Charset charset) Asserts that the given file has the given text content.voidThrowables.assertHasMessage(AssertionInfo info, Throwable actual, String message) Asserts that the given actualThrowablemessage is equal to the given one.voidThrowables.assertHasMessageContaining(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowablecontains with the given description.voidThrowables.assertHasMessageEndingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowableends with the given description.voidThrowables.assertHasMessageStartingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actualThrowablestarts with the given description.voidThrowables.assertHasNoCause(AssertionInfo info, Throwable actual) Asserts that the actualThrowabledoes not have a cause.voidObjects.assertHasSameClassAs(AssertionInfo info, Object actual, Object other) Verifies that the actual value has the same class as the given object.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.voidByteArrays.assertHasSameSizeAs(AssertionInfo info, byte[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidCharArrays.assertHasSameSizeAs(AssertionInfo info, char[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidCharArrays.assertHasSameSizeAs(AssertionInfo info, char[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidDoubleArrays.assertHasSameSizeAs(AssertionInfo info, double[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidDoubleArrays.assertHasSameSizeAs(AssertionInfo info, double[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidFloatArrays.assertHasSameSizeAs(AssertionInfo info, float[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidFloatArrays.assertHasSameSizeAs(AssertionInfo info, float[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidIntArrays.assertHasSameSizeAs(AssertionInfo info, int[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidIntArrays.assertHasSameSizeAs(AssertionInfo info, int[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidIterables.assertHasSameSizeAs(AssertionInfo info, Iterable<?> actual, Iterable<?> other) Assert that the actualIterablehas the same size as the otherIterable.voidIterables.assertHasSameSizeAs(AssertionInfo info, Iterable<?> actual, Object[] other) Assert that the actualIterablehas the same size as the other array.voidLongArrays.assertHasSameSizeAs(AssertionInfo info, long[] actual, Iterable<?> other) Assert that the actual array has the same size as the otherIterable.voidLongArrays.assertHasSameSizeAs(AssertionInfo info, long[] actual, Object[] other) Assert that the actual array has the same size as the other array.voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Iterable<?> other) Asserts that the number of entries in the givenMaphas the same size as the otherIterable.voidMaps.assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Object[] other) Asserts that the number of entries in the givenMaphas the same size as the other array.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, String actual, Iterable<?> other) Asserts that the number of entries in the givenStringhas the same size as the otherIterable.voidStrings.assertHasSameSizeAs(AssertionInfo info, String actual, Object[] other) Asserts that the number of entries in the givenStringhas the same size as the other array.voidBooleanArrays.assertHasSize(AssertionInfo info, boolean[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidByteArrays.assertHasSize(AssertionInfo info, byte[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidCharArrays.assertHasSize(AssertionInfo info, char[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidDoubleArrays.assertHasSize(AssertionInfo info, double[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidFloatArrays.assertHasSize(AssertionInfo info, float[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidIntArrays.assertHasSize(AssertionInfo info, int[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidIterables.assertHasSize(AssertionInfo info, Iterable<?> actual, int expectedSize) Asserts that the number of elements in the givenIterableis equal to the expected one.voidLongArrays.assertHasSize(AssertionInfo info, long[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidMaps.assertHasSize(AssertionInfo info, Map<?, ?> actual, int expectedSize) Asserts that the number of entries in the givenMapis equal to the expected one.voidObjectArrays.assertHasSize(AssertionInfo info, Object[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidShortArrays.assertHasSize(AssertionInfo info, short[] actual, int expectedSize) Asserts that the number of elements in the given array is equal to the expected one.voidStrings.assertHasSize(AssertionInfo info, String actual, int expectedSize) Asserts that the size of the givenStringis equal to the expected one.voidDates.assertHasTime(AssertionInfo info, Date actual, long timestamp) Verifies that the actualDatetime is equal to the given timestamp.<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> 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> 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> 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).<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<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.voidDates.assertIsAfter(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis strictly after the given one.voidDates.assertIsAfterOrEqualsTo(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis after or equal to the given one.voidDates.assertIsAfterYear(AssertionInfo info, Date actual, int year) Verifies that the actualDateis strictly after the given year.voidDates.assertIsBefore(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis strictly before the given one.voidDates.assertIsBeforeOrEqualsTo(AssertionInfo info, Date actual, Date other) Verifies that the actualDateis before or equal to the given one.voidDates.assertIsBeforeYear(AssertionInfo info, Date actual, int year) Verifies that the actualDateis strictly before the given year.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.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).voidFiles.assertIsDirectory(AssertionInfo info, File actual) Asserts that the given file is an existing directory.voidObjects.assertIsExactlyInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the actual value is exactly a instance of given type.voidFiles.assertIsFile(AssertionInfo info, File actual) Asserts that the given file is an existing file.<A> voidObjects.assertIsIn(AssertionInfo info, A actual, Iterable<? extends A> values) Asserts that the given object is present in the given collection.voidObjects.assertIsIn(AssertionInfo info, Object actual, Object[] values) Asserts that the given object is present in the given array.voidDates.assertIsInSameDayAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same day of month (and thus in the same month and year).voidDates.assertIsInSameHourAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same hour (and thus in the same day of month, month and year).voidDates.assertIsInSameMinuteAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare chronologically in the same minute (and thus in the same hour, day of month, month and year).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 chronologically in the same second (and thus in the same minute, hour, day of month, month and year).voidDates.assertIsInSameYearAs(AssertionInfo info, Date actual, Date other) Verifies that actual and givenDateare in the same year.voidObjects.assertIsInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the given object is an instance of the given type.voidObjects.assertIsInstanceOfAny(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the given object is an instance of any of the given types.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.<A> voidObjects.assertIsLenientEqualsToByAcceptingFields(AssertionInfo info, A actual, A other, String... fields) Assert that the given object is lenient equals to other object by comparing given fields value only.<A> voidObjects.assertIsLenientEqualsToByIgnoringFields(AssertionInfo info, A actual, A other, String... fields) Assert that the given object is lenient equals to the other by comparing all fields (including inherited fields) unless given ignored ones.<A> voidObjects.assertIsLenientEqualsToByIgnoringNullFields(AssertionInfo info, A actual, A other) Assert that the given object is lenient equals by ignoring null fields value on other object (including inherited fields).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.<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.voidObjects.assertIsNotExactlyInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the actual value is not exactly a instance of given type.<A> voidObjects.assertIsNotIn(AssertionInfo info, A actual, Iterable<? extends A> values) Asserts that the given object is not present in the given collection.voidObjects.assertIsNotIn(AssertionInfo info, Object actual, Object[] values) Asserts that the given object is not present in the given array.voidObjects.assertIsNotInstanceOf(AssertionInfo info, Object actual, Class<?> type) Verifies that the given object is not an instance of the given type.voidObjects.assertIsNotInstanceOfAny(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the given object is not an instance of any of the given types.voidRealNumbers.assertIsNotNaN(AssertionInfo info, NUMBER actual) Verifies that the actual value is not equal toNaN.voidNumbers.assertIsNotNegative(AssertionInfo info, NUMBER actual) Asserts that the actual value is not negative.voidObjects.assertIsNotOfAnyClassIn(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the actual value type is not in given types.voidNumbers.assertIsNotPositive(AssertionInfo info, NUMBER actual) Asserts that the actual value is not positive.voidNumbers.assertIsNotZero(AssertionInfo info, NUMBER actual) Asserts that the actual value is not equal to zero.
It does not rely on the custom comparisonStrategy (if one is set).voidObjects.assertIsOfAnyClassIn(AssertionInfo info, Object actual, Class<?>[] types) Verifies that the actual value type is in given types.voidNumbers.assertIsPositive(AssertionInfo info, NUMBER actual) Asserts that the actual value is positive.voidFiles.assertIsRelative(AssertionInfo info, File actual) Asserts that the given file is a relative path.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 into 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<? extends Object> 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 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).voidIterables.assertIsSubsetOf(AssertionInfo info, Iterable<?> actual, Iterable<?> values) Verifies that the actualIterableis a subset of valuesIterable.voidDates.assertIsToday(AssertionInfo info, Date actual) Verifies that the actualDateis today, by comparing only year, month and day of actual to today (ie.voidDates.assertIsWithinDayOfMonth(AssertionInfo info, Date actual, int dayOfMonth) Verifies that the actualDateday of month is equal to the given day of month.voidDates.assertIsWithinDayOfWeek(AssertionInfo info, Date actual, int dayOfWeek) Verifies that the actualDateday of week is equal to the given day of week.voidDates.assertIsWithinHourOfDay(AssertionInfo info, Date actual, int hourOfDay) Verifies that the actualDatehour od day is equal to the given hour of day (24-hour clock).voidDates.assertIsWithinMillisecond(AssertionInfo info, Date actual, int millisecond) Verifies that the actualDatemillisecond is equal to the given millisecond.voidDates.assertIsWithinMinute(AssertionInfo info, Date actual, int minute) Verifies that the actualDateminute is equal to the given minute.voidDates.assertIsWithinMonth(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, ...).voidDates.assertIsWithinSecond(AssertionInfo info, Date actual, int second) Verifies that the actualDatesecond is equal to the given second.voidDates.assertIsWithinYear(AssertionInfo info, Date actual, int year) Verifies that the actualDateyear is equal to the given year.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 extends Comparable<? super T>>
voidComparables.assertLessThan(AssertionInfo info, T actual, T other) Asserts that the actual value is less than the other one.<T extends Comparable<? super T>>
voidComparables.assertLessThanOrEqualTo(AssertionInfo info, T actual, T other) Asserts that the actual value is less than or equal to the other one.voidCharacters.assertLowerCase(AssertionInfo info, Character actual) Asserts that the actual value is a lowercase character.voidStrings.assertMatches(AssertionInfo info, String actual, String regex) Verifies that the givenStringmatches the given regular expression.voidStrings.assertMatches(AssertionInfo info, String actual, Pattern pattern) Verifies that the givenStringmatches the given regular expression.voidBooleanArrays.assertNotEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array is not empty.voidByteArrays.assertNotEmpty(AssertionInfo info, byte[] actual) Asserts that the given array is not empty.voidCharArrays.assertNotEmpty(AssertionInfo info, char[] actual) Asserts that the given array is not empty.voidDoubleArrays.assertNotEmpty(AssertionInfo info, double[] actual) Asserts that the given array is not empty.voidFloatArrays.assertNotEmpty(AssertionInfo info, float[] actual) Asserts that the given array is not empty.voidIntArrays.assertNotEmpty(AssertionInfo info, int[] actual) Asserts that the given array is not empty.voidIterables.assertNotEmpty(AssertionInfo info, Iterable<?> actual) Asserts that the givenIterableis not empty.voidLongArrays.assertNotEmpty(AssertionInfo info, long[] actual) Asserts that the given array is not empty.voidMaps.assertNotEmpty(AssertionInfo info, Map<?, ?> actual) Asserts that the givenMapis not empty.voidObjectArrays.assertNotEmpty(AssertionInfo info, Object[] actual) Asserts that the given array is not empty.voidShortArrays.assertNotEmpty(AssertionInfo info, short[] actual) Asserts that the given array is not empty.voidStrings.assertNotEmpty(AssertionInfo info, String actual) Asserts that the givenStringis not empty.voidBooleans.assertNotEqual(AssertionInfo info, Boolean actual, boolean other) Asserts that two longs are not equal.<T> voidComparables.assertNotEqual(AssertionInfo info, T actual, T other) Asserts that two T instances are not equal.voidObjects.assertNotEqual(AssertionInfo info, Object actual, Object other) Asserts that two objects are not equal.<T extends Comparable<? super T>>
voidComparables.assertNotEqualByComparison(AssertionInfo info, T actual, T other) Asserts that twos are not equal by invokingComparable.Comparable.compareTo(Object)
Note that it does not rely on the customComparables.comparisonStrategyif one has been set.protected static <T> voidComparables.assertNotNull(AssertionInfo info, T actual) voidObjects.assertNotNull(AssertionInfo info, Object actual) Asserts that the given object is notnull.voidObjects.assertNotSame(AssertionInfo info, Object actual, Object other) Asserts that two objects do not refer to the same object.voidObjects.assertNull(AssertionInfo info, Object actual) Asserts that the given object isnull.voidBooleanArrays.assertNullOrEmpty(AssertionInfo info, boolean[] actual) Asserts that the given array isnullor empty.voidByteArrays.assertNullOrEmpty(AssertionInfo info, byte[] actual) Asserts that the given array isnullor empty.voidCharArrays.assertNullOrEmpty(AssertionInfo info, char[] actual) Asserts that the given array isnullor empty.voidDoubleArrays.assertNullOrEmpty(AssertionInfo info, double[] actual) Asserts that the given array isnullor empty.voidFloatArrays.assertNullOrEmpty(AssertionInfo info, float[] actual) Asserts that the given array isnullor empty.voidIntArrays.assertNullOrEmpty(AssertionInfo info, int[] actual) Asserts that the given array isnullor empty.voidIterables.assertNullOrEmpty(AssertionInfo info, Iterable<?> actual) Asserts that the givenisIterablenullor empty.voidLongArrays.assertNullOrEmpty(AssertionInfo info, long[] actual) Asserts that the given array isnullor empty.voidMaps.assertNullOrEmpty(AssertionInfo info, Map<?, ?> actual) Asserts that the givenMapisnullor empty.voidObjectArrays.assertNullOrEmpty(AssertionInfo info, Object[] actual) Asserts that the given array isnullor empty.voidShortArrays.assertNullOrEmpty(AssertionInfo info, short[] actual) Asserts that the given array isnullor empty.voidStrings.assertNullOrEmpty(AssertionInfo info, String actual) Asserts that the givenStringisnullor empty.voidObjects.assertSame(AssertionInfo info, Object actual, Object expected) Asserts that two objects refer to the same object.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.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.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, String actual, String prefix) Verifies that the givenStringstarts with the given prefix.voidCharacters.assertUpperCase(AssertionInfo info, Character actual) Asserts that the actual value is a uppercase character.Failures.failure(AssertionInfo info, AssertionErrorFactory factory) Creates afollowing this pattern: creates aAssertionErrorusingAssertionErroras the error message if such value is notoverridingErrorMessage()null, or uses the givento create anAssertionErrorFactory, prepending the value ofAssertionErrorto the error messagedescription()Failures.failure(AssertionInfo info, ErrorMessageFactory message) Creates afollowing this pattern: creates aAssertionErrorusingAssertionErroras the error message if such value is notoverridingErrorMessage()null, or uses the givento create the detail message of theErrorMessageFactory, prepending the value ofAssertionErrorto the error messagedescription()