Top Fields Constructors Methods
org.assertj.core.internal

public final Class CommonValidations

extends Object
Class Inheritance
Static Imports
java.lang.String.format, java.util.Objects.requireNonNull, org.assertj.core.error.ActualIsNotEmpty.actualIsNotEmpty, .ShouldHaveLineCount.shouldHaveLinesCount, .ShouldHaveSameSizeAs.shouldHaveSameSizeAs, .ShouldHaveSize.shouldHaveSize, .ShouldHaveSizeBetween.shouldHaveSizeBetween, .ShouldHaveSizeGreaterThan.shouldHaveSizeGreaterThan, .ShouldHaveSizeGreaterThanOrEqualTo.shouldHaveSizeGreaterThanOrEqualTo, .ShouldHaveSizeLessThan.shouldHaveSizeLessThan, .ShouldHaveSizeLessThanOrEqualTo.shouldHaveSizeLessThanOrEqualTo, org.assertj.core.internal.CommonErrors.arrayOfValuesToLookForIsEmpty, .CommonErrors.arrayOfValuesToLookForIsNull, .CommonErrors.iterableOfValuesToLookForIsEmpty, .CommonErrors.iterableOfValuesToLookForIsNull, .ErrorMessages.nullSequence, .ErrorMessages.nullSubsequence, org.assertj.core.util.Arrays.isArrayEmpty, .IterableUtil.sizeOf

Authors
Alex Ruiz, Joel Costigliola

Field Summary

Modifier and TypeField and Description
private static final Failures

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
checkIndexValueIsValid(Index index, int maximum)

pack-priv static void
pack-priv static void
public static void
pack-priv static void
checkIsNotNull(Iterable<?> iterable)

pack-priv static void
pack-priv static void
public static void
public static void
checkLineCounts(Object actual, int lineCountOfActual, int lineCountOfOther, AssertionInfo info)

pack-priv static void
pack-priv static void
pack-priv static void
checkOtherIsNotNull(Object other, String otherType)

pack-priv static void
pack-priv static void
checkSameSizes(AssertionInfo info, Object actual, Object other, int sizeOfActual, int sizeOfOther)

public static void
public static void
checkSizeBetween(Object actual, int lowerBoundary, int higherBoundary, int sizeOfActual, AssertionInfo info)

public static void
checkSizeGreaterThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)

public static void
checkSizeGreaterThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)

public static void
checkSizeLessThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)

public static void
checkSizeLessThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)

public static void
checkSizes(Object actual, int sizeOfActual, int sizeOfOther, AssertionInfo info)

public static void
public static void
checkTypeIsNotNull(Class<?> expectedType)

public static void
public static void
hasSameSizeAsCheck(AssertionInfo info, Object actual, Object other, int sizeOfActual)

public static void
hasSameSizeAsCheck(AssertionInfo info, Object actual, Iterable<?> other, int sizeOfActual)

public static void
hasSameSizeAsCheck(AssertionInfo info, Object actual, Map<?, ?> other, int sizeOfActual)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FAILURESback to summary
private static final Failures FAILURES

Constructor Detail

CommonValidationsback to summary
private CommonValidations()

Method Detail

checkIndexValueIsValidback to summary
pack-priv static void checkIndexValueIsValid(Index index, int maximum)
checkIsNotEmptyback to summary
pack-priv static void checkIsNotEmpty(Object[] values)
checkIsNotEmptyback to summary
pack-priv static void checkIsNotEmpty(Iterable<?> iterable)
checkIsNotNullback to summary
public static void checkIsNotNull(Object[] values)
checkIsNotNullback to summary
pack-priv static void checkIsNotNull(Iterable<?> iterable)
checkIsNotNullAndNotEmptyback to summary
pack-priv static void checkIsNotNullAndNotEmpty(Object[] values)
checkIsNotNullAndNotEmptyback to summary
pack-priv static void checkIsNotNullAndNotEmpty(Iterable<?> iterable)
checkIterableIsNotNullback to summary
public static void checkIterableIsNotNull(Iterable<?> set)
checkLineCountsback to summary
public static void checkLineCounts(Object actual, int lineCountOfActual, int lineCountOfOther, AssertionInfo info)
checkNumberIsNotNullback to summary
pack-priv static void checkNumberIsNotNull(Number number)
checkOffsetIsNotNullback to summary
pack-priv static void checkOffsetIsNotNull(Offset<?> offset)
checkOtherIsNotNullback to summary
pack-priv static void checkOtherIsNotNull(Object other, String otherType)
checkPercentageIsNotNullback to summary
pack-priv static void checkPercentageIsNotNull(Percentage percentage)
checkSameSizesback to summary
pack-priv static void checkSameSizes(AssertionInfo info, Object actual, Object other, int sizeOfActual, int sizeOfOther)
checkSequenceIsNotNullback to summary
public static void checkSequenceIsNotNull(Object sequence)
checkSizeBetweenback to summary
public static void checkSizeBetween(Object actual, int lowerBoundary, int higherBoundary, int sizeOfActual, AssertionInfo info)
checkSizeGreaterThanback to summary
public static void checkSizeGreaterThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
checkSizeGreaterThanOrEqualToback to summary
public static void checkSizeGreaterThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
checkSizeLessThanback to summary
public static void checkSizeLessThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
checkSizeLessThanOrEqualToback to summary
public static void checkSizeLessThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
checkSizesback to summary
public static void checkSizes(Object actual, int sizeOfActual, int sizeOfOther, AssertionInfo info)
checkSubsequenceIsNotNullback to summary
public static void checkSubsequenceIsNotNull(Object subsequence)
checkTypeIsNotNullback to summary
public static void checkTypeIsNotNull(Class<?> expectedType)
failIfEmptySinceActualIsNotEmptyback to summary
public static void failIfEmptySinceActualIsNotEmpty(AssertionInfo info, Failures failures, Object actual, Object values)
hasSameSizeAsCheckback to summary
public static void hasSameSizeAsCheck(AssertionInfo info, Object actual, Object other, int sizeOfActual)
hasSameSizeAsCheckback to summary
public static void hasSameSizeAsCheck(AssertionInfo info, Object actual, Iterable<?> other, int sizeOfActual)
hasSameSizeAsCheckback to summary
public static void hasSameSizeAsCheck(AssertionInfo info, Object actual, Map<?, ?> other, int sizeOfActual)