Package org.assertj.guava.internal
Class RangeSets
- java.lang.Object
-
- org.assertj.guava.internal.RangeSets
-
public class RangeSets extends Object
Reusable assertions for
s.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 givenRangeSet
contains 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 givenRangeSet
contains 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 givenRangeSet
contains 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 givenRangeSet
contains 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 givenRangeSet
does 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 givenRangeSet
does 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 givenRangeSet
does 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 givenRangeSet
does 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 givenRangeSet
does 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 givenRangeSet
does 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 givenRangeSet
is 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 givenRangeSet
encloses 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 givenRangeSet
encloses 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 givenRangeSet
encloses 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 givenRangeSet
encloses 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 givenRangeSet
encloses 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 givenRangeSet
encloses all elements of the given range.void
assertHasSize(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet<?> actual, int size)
Asserts that the actualRangeSet
has 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 givenRangeSet
intersects 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 givenRangeSet
intersects 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 givenRangeSet
intersects 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 givenRangeSet
intersects 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 givenRangeSet
intersects 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 givenRangeSet
intersects 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 givenRangeSet
is not empty.private void
assertNotNull(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 givenRangeSet
isnull
or empty.private void
assertRangeSetContainsAnyGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)
private void
assertRangeSetContainsGivenValues(org.assertj.core.api.AssertionInfo info, com.google.common.collect.RangeSet actual, Comparable[] values)
private void
assertRangeSetDoesNotContainGivenValues(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 givenRangeSet
does 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 givenRangeSet
does not enclose all elements of the given range.private void
failIfEmpty(com.google.common.collect.RangeSet<?> rangeSet)
private void
failIfEmpty(Iterable<?> values)
private void
failIfEmpty(Object[] values)
private void
failIfNull(com.google.common.collect.RangeSet<?> rangeSet)
private void
failIfNull(Iterable<?> iterable)
private void
failIfNull(Object[] array)
private void
failIfNullOrEmpty(com.google.common.collect.RangeSet<?> rangeSet)
private void
failIfNullOrEmpty(Iterable<?> values)
private void
failIfNullOrEmpty(Object[] values)
static RangeSets
instance()
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 actualRangeSet
has 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 givenRangeSet
contains 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 actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
contains 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 actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
contains 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 actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
contains 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 actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
does 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 actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
contains 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 givenRangeSet
does 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 actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
contains 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 givenRangeSet
intersects 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
intersects 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
intersects 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
is empty.- Type Parameters:
T
- the type of rangeset elements- Parameters:
info
- contains information about the assertion.actual
- the givenRangeSet
.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
is 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 givenRangeSet
is not empty.- Type Parameters:
T
- the type of rangeset elements- Parameters:
info
- contains information about the assertion.actual
- the givenRangeSet
.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
is 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 givenRangeSet
isnull
or empty.- Type Parameters:
T
- the type of rangeset elements- Parameters:
info
- contains information about the assertion.actual
- the givenRangeSet
.- Throws:
AssertionError
- if the actualRangeSet
is notnull
or 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 givenRangeSet
intersects 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
intersects 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
intersects 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
does 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
intersects 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 givenRangeSet
does 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
intersects 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 givenRangeSet
does 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 actualRangeSet
has to intersect.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
intersects 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 givenRangeSet
encloses 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 actualRangeSet
has to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
encloses 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 actualRangeSet
has to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
encloses 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 actualRangeSet
has to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
encloses 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 actualRangeSet
has to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
encloses 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 actualRangeSet
has to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
encloses 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 actualRangeSet
has to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
does 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 givenRangeSet
does 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 actualRangeSet
has not to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
encloses 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 givenRangeSet
does 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 actualRangeSet
has not to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
encloses 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 givenRangeSet
does 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 actualRangeSet
has not to enclose.- Throws:
AssertionError
- if the actualRangeSet
isnull
.AssertionError
- if the actualRangeSet
encloses 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)
-
-