Package org.assertj.core.internal
Class CommonValidations
- java.lang.Object
-
- org.assertj.core.internal.CommonValidations
-
public final class CommonValidations extends Object
- Author:
- Alex Ruiz, Joel Costigliola
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCommonValidations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidcheckIndexValueIsValid(Index index, int maximum)(package private) static voidcheckIsNotEmpty(Iterable<?> iterable)(package private) static voidcheckIsNotEmpty(Object[] values)(package private) static voidcheckIsNotNull(Iterable<?> iterable)static voidcheckIsNotNull(Object[] values)(package private) static voidcheckIsNotNullAndNotEmpty(Iterable<?> iterable)(package private) static voidcheckIsNotNullAndNotEmpty(Object[] values)static voidcheckIterableIsNotNull(Iterable<?> set)static voidcheckLineCounts(Object actual, int lineCountOfActual, int lineCountOfOther, AssertionInfo info)(package private) static voidcheckNumberIsNotNull(Number number)(package private) static voidcheckOffsetIsNotNull(Offset<?> offset)(package private) static voidcheckOtherIsNotNull(Object other, String otherType)(package private) static voidcheckPercentageIsNotNull(Percentage percentage)(package private) static voidcheckSameSizes(AssertionInfo info, Object actual, int sizeOfActual, int sizeOfOther)static voidcheckSequenceIsNotNull(Object sequence)static voidcheckSizeBetween(Object actual, int lowerBoundary, int higherBoundary, int sizeOfActual, AssertionInfo info)static voidcheckSizeGreaterThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)static voidcheckSizeGreaterThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)static voidcheckSizeLessThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)static voidcheckSizeLessThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)static voidcheckSizes(Object actual, int sizeOfActual, int sizeOfOther, AssertionInfo info)static voidcheckSubsequenceIsNotNull(Object subsequence)static voidcheckTypeIsNotNull(Class<?> expectedType)static voidfailIfEmptySinceActualIsNotEmpty(Object[] values)static voidhasSameSizeAsCheck(AssertionInfo info, Object actual, Iterable<?> other, int sizeOfActual)static voidhasSameSizeAsCheck(AssertionInfo info, Object actual, Object other, int sizeOfActual)static voidhasSameSizeAsCheck(AssertionInfo info, Object actual, Map<?,?> other, int sizeOfActual)static NullPointerExceptioniterableToLookForIsNull()
-
-
-
Field Detail
-
failures
private static Failures failures
-
-
Method Detail
-
checkIndexValueIsValid
static void checkIndexValueIsValid(Index index, int maximum)
-
checkOffsetIsNotNull
static void checkOffsetIsNotNull(Offset<?> offset)
-
checkPercentageIsNotNull
static void checkPercentageIsNotNull(Percentage percentage)
-
checkNumberIsNotNull
static void checkNumberIsNotNull(Number number)
-
checkIsNotEmpty
static void checkIsNotEmpty(Object[] values)
-
checkIsNotEmpty
static void checkIsNotEmpty(Iterable<?> iterable)
-
checkIsNotNull
public static void checkIsNotNull(Object[] values)
-
checkIsNotNull
static void checkIsNotNull(Iterable<?> iterable)
-
checkIsNotNullAndNotEmpty
static void checkIsNotNullAndNotEmpty(Object[] values)
-
checkIsNotNullAndNotEmpty
static void checkIsNotNullAndNotEmpty(Iterable<?> iterable)
-
failIfEmptySinceActualIsNotEmpty
public static void failIfEmptySinceActualIsNotEmpty(Object[] values)
-
hasSameSizeAsCheck
public static void hasSameSizeAsCheck(AssertionInfo info, Object actual, Object other, int sizeOfActual)
-
hasSameSizeAsCheck
public static void hasSameSizeAsCheck(AssertionInfo info, Object actual, Iterable<?> other, int sizeOfActual)
-
hasSameSizeAsCheck
public static void hasSameSizeAsCheck(AssertionInfo info, Object actual, Map<?,?> other, int sizeOfActual)
-
checkSameSizes
static void checkSameSizes(AssertionInfo info, Object actual, int sizeOfActual, int sizeOfOther)
-
checkSizes
public static void checkSizes(Object actual, int sizeOfActual, int sizeOfOther, AssertionInfo info)
-
checkSizeGreaterThan
public static void checkSizeGreaterThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
-
checkSizeGreaterThanOrEqualTo
public static void checkSizeGreaterThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
-
checkSizeLessThan
public static void checkSizeLessThan(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
-
checkSizeLessThanOrEqualTo
public static void checkSizeLessThanOrEqualTo(Object actual, int boundary, int sizeOfActual, AssertionInfo info)
-
checkSizeBetween
public static void checkSizeBetween(Object actual, int lowerBoundary, int higherBoundary, int sizeOfActual, AssertionInfo info)
-
checkLineCounts
public static void checkLineCounts(Object actual, int lineCountOfActual, int lineCountOfOther, AssertionInfo info)
-
checkTypeIsNotNull
public static void checkTypeIsNotNull(Class<?> expectedType)
-
checkIterableIsNotNull
public static void checkIterableIsNotNull(Iterable<?> set)
-
iterableToLookForIsNull
public static NullPointerException iterableToLookForIsNull()
-
checkSequenceIsNotNull
public static void checkSequenceIsNotNull(Object sequence)
-
checkSubsequenceIsNotNull
public static void checkSubsequenceIsNotNull(Object subsequence)
-
-