Package org.assertj.guava.internal
Class RangeSets
- java.lang.Object
-
- org.assertj.guava.internal.RangeSets
-
public class RangeSets extends Object
Reusable assertions fors.RangeSet- Author:
- Ilya_Koshaleu
-
-
Constructor Summary
Constructors Constructor Description RangeSets()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Comparable<T>>
voidassertContains(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)Asserts that the givenRangeSetcontains the given values.<T extends Comparable<T>>
voidassertContainsAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<T> values)Asserts that the givenRangeSetcontains all the given values.<T extends Comparable<T>>
voidassertContainsAnyOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)Asserts that the givenRangeSetcontains at least one of the given values.<T extends Comparable<T>>
voidassertContainsAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends T> values)Asserts that the givenRangeSetcontains at least one element of the given values.<T extends Comparable<T>>
voidassertDoesNotContain(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)Asserts that the givenRangeSetdoes not contain the given values.<T extends Comparable<T>>
voidassertDoesNotContainAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends T> values)Asserts that the givenRangeSetdoes not contain any elements of the given values.<T extends Comparable<T>>
voidassertDoesNotEnclose(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)Asserts that the givenRangeSetdoes not enclose the given ranges.<T extends Comparable<T>>
voidassertDoesNotIntersect(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)Asserts that the givenRangeSetdoes not intersect the given ranges.<T extends Comparable<T>>
voidassertDoesNotIntersectAnyRangeFrom(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)Asserts that the givenRangeSetdoes not intersect all elements from the given range set.<T extends Comparable<T>>
voidassertDoesNotIntersectAnyRangeFrom(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)Asserts that the givenRangeSetdoes not intersect all elements from the given range.<T extends Comparable<T>>
voidassertEmpty(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)Asserts that the givenRangeSetis empty.<T extends Comparable<T>>
voidassertEncloses(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)Asserts that the givenRangeSetencloses the given ranges.<T extends Comparable<T>>
voidassertEnclosesAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)Asserts that the givenRangeSetencloses all elements of the given range set.<T extends Comparable<T>>
voidassertEnclosesAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)Asserts that the givenRangeSetencloses all elements of the given range.<T extends Comparable<T>>
voidassertEnclosesAnyOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)Asserts that the givenRangeSetencloses the given ranges.<T extends Comparable<T>>
voidassertEnclosesAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)Asserts that the givenRangeSetencloses all elements of the given range set.<T extends Comparable<T>>
voidassertEnclosesAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)Asserts that the givenRangeSetencloses all elements of the given range.voidassertHasSize(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual, int size)Asserts that the actualRangeSethas specificsize.<T extends Comparable<T>>
voidassertIntersects(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)Asserts that the givenRangeSetintersects the given ranges.<T extends Comparable<T>>
voidassertIntersectsAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)Asserts that the givenRangeSetintersects all the given values of range set.<T extends Comparable<T>>
voidassertIntersectsAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)Asserts that the givenRangeSetintersects all the given ranges.<T extends Comparable<T>>
voidassertIntersectsAnyOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)Asserts that the givenRangeSetintersects at least one of the given ranges.<T extends Comparable<T>>
voidassertIntersectsAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)Asserts that the givenRangeSetintersects at least one element of the given range set.<T extends Comparable<T>>
voidassertIntersectsAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)Asserts that the givenRangeSetintersects at least one element of the given range.<T extends Comparable<T>>
voidassertNotEmpty(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)Asserts that the givenRangeSetis not empty.private voidassertNotNull(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual)<T extends Comparable<T>>
voidassertNullOrEmpty(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)Asserts that the givenRangeSetisnullor empty.private voidassertRangeSetContainsAnyGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)private voidassertRangeSetContainsGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)private voidassertRangeSetDoesNotContainGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)private <T extends Comparable<T>>
voidassertRangeSetDoesNotEncloseGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)private <T extends Comparable<T>>
voidassertRangeSetDoesNotIntersectGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)private <T extends Comparable<T>>
voidassertRangeSetEnclosesAnyOfGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)private <T extends Comparable<T>>
voidassertRangeSetEnclosesGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)private <T extends Comparable<T>>
voidassertRangeSetIntersectsAnyOfGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)private <T extends Comparable<T>>
voidassertRangeSetIntersectsGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)<T extends Comparable<T>>
voiddoesNotEncloseAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)Asserts that the givenRangeSetdoes not enclose all elements of the given range set.<T extends Comparable<T>>
voiddoesNotEncloseAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)Asserts that the givenRangeSetdoes not enclose all elements of the given range.private voidfailIfEmpty(com.google.common.collect.RangeSet<?> rangeSet)private voidfailIfEmpty(Iterable<?> values)private voidfailIfEmpty(Object[] values)private voidfailIfNull(com.google.common.collect.RangeSet<?> rangeSet)private voidfailIfNull(Iterable<?> iterable)private voidfailIfNull(Object[] array)private voidfailIfNullOrEmpty(com.google.common.collect.RangeSet<?> rangeSet)private voidfailIfNullOrEmpty(Iterable<?> values)private voidfailIfNullOrEmpty(Object[] values)static RangeSetsinstance()Returns singleton instance of this class.
-
-
-
Field Detail
-
INSTANCE
private static final RangeSets INSTANCE
-
failures
org.assertj.core.internal.Failures failures
-
-
Method Detail
-
instance
public static RangeSets instance()
Returns singleton instance of this class.- Returns:
- singleton instance of this class.
-
assertHasSize
public void assertHasSize(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual, int size)Asserts that the actualRangeSethas specificsize.- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.size- expected size
-
assertContains
public <T extends Comparable<T>> void assertContains(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)
Asserts that the givenRangeSetcontains the given values.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.values- the values that are expected to be in the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not contain the givenelements.IllegalArgumentException- if elements are null or elements are empty while actual is not empty.
-
assertContainsAll
public <T extends Comparable<T>> void assertContainsAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<T> values)
Asserts that the givenRangeSetcontains all the given values.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.values- the values that are expected to be in the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not contain all the givenelements.IllegalArgumentException- if elements are null or elements are empty while actual is not empty.
-
assertRangeSetContainsGivenValues
private void assertRangeSetContainsGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)
-
assertContainsAnyOf
public <T extends Comparable<T>> void assertContainsAnyOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)
Asserts that the givenRangeSetcontains at least one of the given values.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.values- the values that are expected to be in the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not contain at least one of the givenelements.IllegalArgumentException- if elements are null or elements are empty while actual is not empty.
-
assertContainsAnyRangesOf
public <T extends Comparable<T>> void assertContainsAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends T> values)
Asserts that the givenRangeSetcontains at least one element of the given values.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.values- the values that are expected to be in the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not contain at least one element of the givenvalues.IllegalArgumentException- if elements are null or elements are empty while actual is not empty.
-
assertRangeSetContainsAnyGivenValues
private void assertRangeSetContainsAnyGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)
-
assertDoesNotContain
public <T extends Comparable<T>> void assertDoesNotContain(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, T[] values)
Asserts that the givenRangeSetdoes not contain the given values.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.values- the values that are expected not to be in the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetcontains at least one element of the givenvalues.IllegalArgumentException- if elements are null or elements are empty while actual is not empty.
-
assertDoesNotContainAll
public <T extends Comparable<T>> void assertDoesNotContainAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends T> values)
Asserts that the givenRangeSetdoes not contain any elements of the given values.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.values- the values that are expected not to be in the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetcontains at least one element of the givenvalues.IllegalArgumentException- if values are null or values are empty.
-
assertRangeSetDoesNotContainGivenValues
private void assertRangeSetDoesNotContainGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)
-
assertIntersects
public <T extends Comparable<T>> void assertIntersects(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
Asserts that the givenRangeSetintersects the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.ranges- the ranges that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not intersect the givenranges.IllegalArgumentException- if ranges are null or ranges are empty while actual is not empty.
-
assertIntersectsAll
public <T extends Comparable<T>> void assertIntersectsAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
Asserts that the givenRangeSetintersects all the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.range- the ranges that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not intersect all the givenrange.IllegalArgumentException- if range is null or range is empty while actual is not empty.
-
assertIntersectsAll
public <T extends Comparable<T>> void assertIntersectsAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
Asserts that the givenRangeSetintersects all the given values of range set.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.rangeSet- the range set that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not intersect all the givenrangeSet.IllegalArgumentException- if range set is null or range set is empty while actual is not empty.
-
assertRangeSetIntersectsGivenValues
private <T extends Comparable<T>> void assertRangeSetIntersectsGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
-
assertEmpty
public <T extends Comparable<T>> void assertEmpty(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)
Asserts that the givenRangeSetis empty.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetis not empty.
-
assertNotEmpty
public <T extends Comparable<T>> void assertNotEmpty(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)
Asserts that the givenRangeSetis not empty.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetis empty.
-
assertNullOrEmpty
public <T extends Comparable<T>> void assertNullOrEmpty(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual)
Asserts that the givenRangeSetisnullor empty.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.- Throws:
AssertionError- if the actualRangeSetis notnullor not empty.
-
assertIntersectsAnyOf
public <T extends Comparable<T>> void assertIntersectsAnyOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
Asserts that the givenRangeSetintersects at least one of the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.ranges- the ranges that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not intersect at least one of the givenranges.IllegalArgumentException- if ranges are null or ranges are empty while actual is not empty.
-
assertIntersectsAnyRangesOf
public <T extends Comparable<T>> void assertIntersectsAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
Asserts that the givenRangeSetintersects at least one element of the given range.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.range- the range that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not intersect at least one element of the givenrange.IllegalArgumentException- if range is null or range is empty while actual is not empty.
-
assertIntersectsAnyRangesOf
public <T extends Comparable<T>> void assertIntersectsAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
Asserts that the givenRangeSetintersects at least one element of the given range set.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.rangeSet- the range set that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not intersect at least one element of the givenrangeSet.IllegalArgumentException- if range set is null or range set is empty while actual is not empty.
-
assertRangeSetIntersectsAnyOfGivenValues
private <T extends Comparable<T>> void assertRangeSetIntersectsAnyOfGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
-
assertDoesNotIntersect
public <T extends Comparable<T>> void assertDoesNotIntersect(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
Asserts that the givenRangeSetdoes not intersect the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.ranges- the range that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetintersects at least one element of the givenrange.IllegalArgumentException- if ranges are null or ranges are empty while actual is not empty.
-
assertDoesNotIntersectAnyRangeFrom
public <T extends Comparable<T>> void assertDoesNotIntersectAnyRangeFrom(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
Asserts that the givenRangeSetdoes not intersect all elements from the given range.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.range- the range that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetintersects at least one element of the givenrange.IllegalArgumentException- if range is null or range is empty while actual is not empty.
-
assertDoesNotIntersectAnyRangeFrom
public <T extends Comparable<T>> void assertDoesNotIntersectAnyRangeFrom(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
Asserts that the givenRangeSetdoes not intersect all elements from the given range set.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.rangeSet- the range set that actualRangeSethas to intersect.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetintersects at least one element of the givenrange.IllegalArgumentException- if range set is null or range set is empty while actual is not empty.
-
assertRangeSetDoesNotIntersectGivenValues
private <T extends Comparable<T>> void assertRangeSetDoesNotIntersectGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
-
assertEncloses
public <T extends Comparable<T>> void assertEncloses(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
Asserts that the givenRangeSetencloses the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.ranges- the ranges that actualRangeSethas to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not enclose the givenranges.IllegalArgumentException- if ranges are null or ranges are empty while actual is not empty.
-
assertEnclosesAll
public <T extends Comparable<T>> void assertEnclosesAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
Asserts that the givenRangeSetencloses all elements of the given range.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.range- the range that actualRangeSethas to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not enclose elements of the givenrange.IllegalArgumentException- if range is null or range is empty while actual is not empty.
-
assertEnclosesAll
public <T extends Comparable<T>> void assertEnclosesAll(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
Asserts that the givenRangeSetencloses all elements of the given range set.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.rangeSet- the range set that actualRangeSethas to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not enclose elements of the givenrange.IllegalArgumentException- if range set is null or range set is empty while actual is not empty.
-
assertRangeSetEnclosesGivenValues
private <T extends Comparable<T>> void assertRangeSetEnclosesGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
-
assertEnclosesAnyOf
public <T extends Comparable<T>> void assertEnclosesAnyOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
Asserts that the givenRangeSetencloses the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.ranges- the ranges that actualRangeSethas to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not enclose the givenranges.IllegalArgumentException- if ranges are null or ranges are empty while actual is not empty.
-
assertEnclosesAnyRangesOf
public <T extends Comparable<T>> void assertEnclosesAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
Asserts that the givenRangeSetencloses all elements of the given range.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.range- the range that actualRangeSethas to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not enclose all elements of the givenrange.IllegalArgumentException- if range is null or range is empty while actual is not empty.
-
assertEnclosesAnyRangesOf
public <T extends Comparable<T>> void assertEnclosesAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
Asserts that the givenRangeSetencloses all elements of the given range set.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.rangeSet- the range set that actualRangeSethas to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetdoes not enclose all elements of the givenrangeSet.IllegalArgumentException- if range set is null or range set is empty while actual is not empty.
-
assertRangeSetEnclosesAnyOfGivenValues
private <T extends Comparable<T>> void assertRangeSetEnclosesAnyOfGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
-
assertDoesNotEnclose
public <T extends Comparable<T>> void assertDoesNotEnclose(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
Asserts that the givenRangeSetdoes not enclose the given ranges.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.ranges- the ranges that actualRangeSethas not to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetencloses the givenranges.IllegalArgumentException- if ranges are null or ranges are empty while actual is not empty.
-
doesNotEncloseAnyRangesOf
public <T extends Comparable<T>> void doesNotEncloseAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, Iterable<? extends com.google.common.collect.Range<T>> range)
Asserts that the givenRangeSetdoes not enclose all elements of the given range.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.range- the ranges that actualRangeSethas not to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetencloses all elements of the givenrange.IllegalArgumentException- if range is null or range is empty while actual is not empty.
-
doesNotEncloseAnyRangesOf
public <T extends Comparable<T>> void doesNotEncloseAnyRangesOf(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.RangeSet<T> rangeSet)
Asserts that the givenRangeSetdoes not enclose all elements of the given range set.- Type Parameters:
T- the type of rangeset elements- Parameters:
info- contains information about the assertion.actual- the givenRangeSet.rangeSet- the range set that actualRangeSethas not to enclose.- Throws:
AssertionError- if the actualRangeSetisnull.AssertionError- if the actualRangeSetencloses all elements of the givenrange.IllegalArgumentException- if range set is null or range set is empty while actual is not empty.
-
assertRangeSetDoesNotEncloseGivenValues
private <T extends Comparable<T>> void assertRangeSetDoesNotEncloseGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<T> actual, com.google.common.collect.Range<T>[] ranges)
-
assertNotNull
private void assertNotNull(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual)
-
failIfNull
private void failIfNull(Object[] array)
-
failIfNull
private void failIfNull(Iterable<?> iterable)
-
failIfNull
private void failIfNull(com.google.common.collect.RangeSet<?> rangeSet)
-
failIfEmpty
private void failIfEmpty(Object[] values)
-
failIfEmpty
private void failIfEmpty(Iterable<?> values)
-
failIfEmpty
private void failIfEmpty(com.google.common.collect.RangeSet<?> rangeSet)
-
failIfNullOrEmpty
private void failIfNullOrEmpty(Object[] values)
-
failIfNullOrEmpty
private void failIfNullOrEmpty(Iterable<?> values)
-
failIfNullOrEmpty
private void failIfNullOrEmpty(com.google.common.collect.RangeSet<?> rangeSet)
-
-