static void checkIsNotEmpty(Object[] values) { if (values.length == 0) throw arrayOfValuesToLookForIsEmpty(); }
public static void checkIsNotNull(Object[] values) { if (values == null) throw arrayOfValuesToLookForIsNull(); }
static void checkIsNotEmpty(Iterable<?> iterable) { if (!iterable.iterator().hasNext()) throw iterableOfValuesToLookForIsEmpty(); }
void assertcontainsAll(AssertionInfo info, Failures failures, Object array, Iterable<?> iterable) { if (iterable == null) throw iterableToLookForIsNull(); assertNotNull(info, array); Object[] values = newArrayList(iterable).toArray(); Set<Object> notFound = new LinkedHashSet<>(); for (Object value : values) { if (!arrayContains(array, value)) notFound.add(value); } if (!notFound.isEmpty()) throw failures.failure(info, shouldContain(array, values, notFound, comparisonStrategy)); }
CommonErrors.wrongElementTypeForFlatExtracting(group);
static void checkIsNotNull(Iterable<?> iterable) { if (iterable == null) throw iterableOfValuesToLookForIsNull(); }
static void checkIsNotNull(Iterable<?> iterable) { if (iterable == null) throw iterableOfValuesForIsNull(); }
void assertcontainsAll(AssertionInfo info, Failures failures, Object array, Iterable<?> iterable) { if (iterable == null) throw iterableToLookForIsNull(); assertNotNull(info, array); Object[] values = newArrayList(iterable).toArray(); Set<Object> notFound = new LinkedHashSet<>(); for (Object value : values) { if (!arrayContains(array, value)) notFound.add(value); } if (!notFound.isEmpty()) throw failures.failure(info, shouldContain(array, values, notFound, comparisonStrategy)); }
CommonErrors.wrongElementTypeForFlatExtracting(group);
static void checkIsNotNull(Iterable<?> iterable) { if (iterable == null) throw iterableOfValuesToLookForIsNull(); }
private void checkIsNotEmpty(CharSequence... values) { if (values.length == 0) throw arrayOfValuesToLookForIsEmpty(); }
private void checkIsNotNull(CharSequence... values) { if (values == null) throw arrayOfValuesToLookForIsNull(); }
void assertcontainsAll(AssertionInfo info, Failures failures, Object array, Iterable<?> iterable) { if (iterable == null) throw iterableToLookForIsNull(); assertNotNull(info, array); Object[] values = newArrayList(iterable).toArray(); Set<Object> notFound = new LinkedHashSet<Object>(); for (Object value : values) { if (!arrayContains(array, value)) notFound.add(value); } if (!notFound.isEmpty()) throw failures.failure(info, shouldContain(array, values, notFound, comparisonStrategy)); }
static void checkIsNotEmpty(Iterable<?> iterable) { if (!iterable.iterator().hasNext()) throw iterableOfValuesToLookForIsEmpty(); }
CommonErrors.wrongElementTypeForFlatExtracting(group);
private void checkIsNotEmpty(CharSequence... values) { if (values.length == 0) throw arrayOfValuesToLookForIsEmpty(); }
private static void checkIsNotNull(Object values) { if (values == null) throw arrayOfValuesToLookForIsNull(); }
static void checkIsNotEmpty(Iterable<?> iterable) { if (!iterable.iterator().hasNext()) throw iterableOfValuesToLookForIsEmpty(); }
CommonErrors.wrongElementTypeForFlatExtracting(group);
static void checkIsNotEmpty(Object[] values) { if (values.length == 0) throw arrayOfValuesToLookForIsEmpty(); }