Class RangeSetAssert<T extends Comparable<T>>

java.lang.Object
org.assertj.core.api.AbstractAssert<RangeSetAssert<T>,RangeSet<T>>
org.assertj.guava.api.RangeSetAssert<T>
Type Parameters:
T - the type of the tested RangeSet elements
All Implemented Interfaces:
Assert<RangeSetAssert<T>,RangeSet<T>>, Descriptable<RangeSetAssert<T>>, ExtensionPoints<RangeSetAssert<T>,RangeSet<T>>

public class RangeSetAssert<T extends Comparable<T>> extends AbstractAssert<RangeSetAssert<T>,RangeSet<T>>
Assertion for guava RangeSet.

To create an instance of this class, invoke Assertions.assertThat(RangeSet).

Author:
Ilya Koshaleu
  • Constructor Details

    • RangeSetAssert

      protected RangeSetAssert(RangeSet<T> actual)
  • Method Details

    • hasSize

      public RangeSetAssert<T> hasSize(int size)
      Verifies that the given RangeSet has specific size of disconnected Range elements.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).hasSize(3);
      Parameters:
      size - expected amount of disconnected Range elements.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual size of RangeSet is different from the expected size.
    • contains

      @SafeVarargs public final RangeSetAssert<T> contains(T... values)
      Verifies that the given RangeSet contains the given values.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).contains(50, 270, 550);
      Parameters:
      values - the values to look for in actual RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not contain the given values.
      NullPointerException - if values are null.
      IllegalArgumentException - if values are empty while actual is not empty.
    • containsAll

      public RangeSetAssert<T> containsAll(Iterable<T> values)
      Verifies that the given RangeSet contains all the given values.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).containsAll(Arrays.asList(50, 270, 550));
      Parameters:
      values - the values to look for in actual RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not contain all the given values.
      NullPointerException - if values are null.
      IllegalArgumentException - if values are empty while actual is not empty.
    • containsAnyOf

      @SafeVarargs public final RangeSetAssert<T> containsAnyOf(T... values)
      Verifies that the given RangeSet contains at least one of the given values.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).containsAnyOf(150, 250, 700);
      Parameters:
      values - the values to look for in actual RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not contain at least one of the given values.
      NullPointerException - if values are null.
      IllegalArgumentException - if values are empty while actual is not empty.
    • containsAnyRangesOf

      public RangeSetAssert<T> containsAnyRangesOf(Iterable<T> values)
      Verifies that the given RangeSet contains at least one of the given values.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).containsAnyRangesOf(Arrays.asList(150, 250, 700));
      Parameters:
      values - the values to look for in actual RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not contain at least one of the given values.
      NullPointerException - if values are null.
      IllegalArgumentException - if values are empty while actual is not empty.
    • doesNotContain

      @SafeVarargs public final RangeSetAssert<T> doesNotContain(T... values)
      Verifies that the given RangeSet does not contain any of the given values.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotContain(150, 320, 650);
      Parameters:
      values - the values that should not be present in actual RangeSet
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet contains any of the given values.
      NullPointerException - if values are null.
      IllegalArgumentException - if values are empty.
    • doesNotContainAll

      public RangeSetAssert<T> doesNotContainAll(Iterable<T> values)
      Verifies that the given RangeSet does not contain any of the given values.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotContain(Arrays.asList(150, 320, 650));
      Parameters:
      values - the values that should not be present in actual RangeSet
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet contains any of the given values.
      NullPointerException - if values are null.
      IllegalArgumentException - if values are empty.
    • isEmpty

      public RangeSetAssert<T> isEmpty()
      Verifies that the actual RangeSet is empty.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       assertThat(rangeSet).isEmpty();
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet is not empty.
    • isNotEmpty

      public RangeSetAssert<T> isNotEmpty()
      Verifies that the actual RangeSet is not empty.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).isNotEmpty();
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet is empty.
    • isNullOrEmpty

      public RangeSetAssert<T> isNullOrEmpty()
      Verifies that the actual RangeSet is null or empty.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       assertThat(rangeSet).isNullOrEmpty();
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is not null or not empty.
    • intersects

      @SafeVarargs public final RangeSetAssert<T> intersects(Range<T>... ranges)
      Verifies that the given RangeSet intersects all the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).intersects(Range.closed(50, 150),
                                       Range.openClosed(170, 220),
                                       Range.open(520, 570));
      Parameters:
      ranges - the ranges to check whether they intersect the given RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not intersect all the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • intersectsAll

      public RangeSetAssert<T> intersectsAll(RangeSet<T> rangeSet)
      Verifies that the given RangeSet intersects all ranges from the given range set.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).intersectsAll(ImmutableRangeSet.of(Range.closed(50, 250)));
      Parameters:
      rangeSet - the range set to check whether it intersects the actual RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not intersect all the ranges from the given range set.
      NullPointerException - if range set is null.
      IllegalArgumentException - if range set is empty while actual is not empty.
    • intersectsAll

      public RangeSetAssert<T> intersectsAll(Iterable<Range<T>> ranges)
      Verifies that the given RangeSet intersects all the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).intersectsAll(Arrays.asList(Range.closed(50, 150),
                                                        Range.openClosed(170, 220),
                                                        Range.open(520, 570)));
      Parameters:
      ranges - the ranges to check whether they all intersect the given RangeSet.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not intersect all the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • intersectsAnyOf

      @SafeVarargs public final RangeSetAssert<T> intersectsAnyOf(Range<T>... ranges)
      Verifies that the given RangeSet intersects at least one of the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).intersectsAnyOf(Range.closed(50, 150),
                                            Range.open(170, 190),
                                            Range.open(600, 670));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet intersects at least one of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not intersect any of the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • intersectsAnyRangesOf

      public RangeSetAssert<T> intersectsAnyRangesOf(Iterable<Range<T>> ranges)
      Verifies that the given RangeSet intersects at least one of the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).intersectsAnyRangesOf(Arrays.asList(Range.closed(50, 150),
                                                                Range.open(170, 190),
                                                                Range.open(600, 670));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet intersects at least one of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not intersect any of the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • intersectsAnyRangesOf

      public RangeSetAssert<T> intersectsAnyRangesOf(RangeSet<T> rangeSet)
      Verifies that the given RangeSet intersects at least one range of the given range set.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).intersectsAnyRangesOf(ImmutableRangeSet.of(Range.close(50, 150)));
      Parameters:
      rangeSet - the range set with ranges to check whether the actual RangeSet intersects at least one of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not intersect any of the ranges from the given ranges set.
      NullPointerException - if range set is null.
      IllegalArgumentException - if range set is empty while actual is not empty.
    • doesNotIntersect

      @SafeVarargs public final RangeSetAssert<T> doesNotIntersect(Range<T>... ranges)
      Verifies that the given RangeSet does not intersect the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotIntersect(Range.closed(120, 150),
                                             Range.open(302, 490),
                                             Range.open(600, 670));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet does not intersect them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet intersects the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty.
    • doesNotIntersectAnyRangeFrom

      public RangeSetAssert<T> doesNotIntersectAnyRangeFrom(RangeSet<T> rangeSet)
      Verifies that the given RangeSet does not intersect ranges from the given range set.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotIntersectAnyRangeFrom(ImmutableRangeSet.of(Range.close(120, 170)));
      Parameters:
      rangeSet - the range set to check whether the actual RangeSet does not intersect ranges from it.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet intersects the ranges from the given range set.
      NullPointerException - if range set is null.
      IllegalArgumentException - if range set is empty.
    • doesNotIntersectAnyRangeFrom

      public RangeSetAssert<T> doesNotIntersectAnyRangeFrom(Iterable<Range<T>> ranges)
      Verifies that the given RangeSet does not intersect all the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotIntersectAnyRangeFrom(Arrays.asList(Range.closed(120, 150),
                                                                       Range.open(302, 490),
                                                                       Range.open(600, 670));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet does not intersect them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet intersects all the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty.
    • encloses

      @SafeVarargs public final RangeSetAssert<T> encloses(Range<T>... ranges)
      Verifies that the given RangeSet encloses the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).encloses(Range.closed(0, 10),
                                     Range.open(50, 60),
                                     Range.open(90, 100));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet encloses them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not enclose the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • enclosesAll

      public RangeSetAssert<T> enclosesAll(Iterable<Range<T>> ranges)
      Verifies that the given RangeSet encloses all the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).enclosesAll(Arrays.asList(Range.closed(0, 10),
                                                      Range.open(50, 60),
                                                      Range.open(90, 100)));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet encloses all of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not enclose all the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • enclosesAll

      public RangeSetAssert<T> enclosesAll(RangeSet<T> rangeSet)
      Verifies that the given RangeSet encloses all ranges from the given range set.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).enclosesAll(ImmutableRangeSet.of(Range.closed(0, 50));
      Parameters:
      rangeSet - the range set to check whether the actual RangeSet encloses all range from it.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not enclose all ranges from the given range set.
      NullPointerException - if range set is null.
      IllegalArgumentException - if range set is empty while actual is not empty.
    • enclosesAnyOf

      @SafeVarargs public final RangeSetAssert<T> enclosesAnyOf(Range<T>... ranges)
      Verifies that the given RangeSet encloses at least one of the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).enclosesAnyOf(Range.closed(-10, 10),
                                          Range.open(150, 260),
                                          Range.open(290, 296));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet encloses at least one of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not enclose at least one of the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • enclosesAnyRangesOf

      public RangeSetAssert<T> enclosesAnyRangesOf(Iterable<Range<T>> ranges)
      Verifies that the given RangeSet encloses at least one range of the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).enclosesAnyRangesOf(Arrays.asList(Range.closed(-10, 10),
                                                              Range.open(150, 260),
                                                              Range.open(290, 296)));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet encloses at least one of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not enclose at least one of the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty while actual is not empty.
    • enclosesAnyRangesOf

      public RangeSetAssert<T> enclosesAnyRangesOf(RangeSet<T> rangeSet)
      Verifies that the given RangeSet encloses at least one range from the given range set.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       RangeSet<Integer> enclosedSet = TreeRangeSet.create();
      
       enclosedSet.add(Range.closed(-10, 10));
       enclosedSet.add(Range.open(150, 260));
       enclosedSet.add(Range.open(290, 296));
      
       assertThat(rangeSet).enclosesAll(enclosedSet);
      Parameters:
      rangeSet - the range set to check whether the actual RangeSet encloses at least one range from it.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet does not enclose at least one range from the given range set.
      NullPointerException - if range set is null.
      IllegalArgumentException - if range set is empty while actual is not empty.
    • doesNotEnclose

      @SafeVarargs public final RangeSetAssert<T> doesNotEnclose(Range<T>... ranges)
      Verifies that the given RangeSet does not enclose the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotEnclose(Range.closed(-10, 10),
                                           Range.open(150, 160),
                                           Range.open(590, 700));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet does not enclose them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet encloses any of the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty.
    • doesNotEncloseAnyRangesOf

      public RangeSetAssert<T> doesNotEncloseAnyRangesOf(Iterable<Range<T>> ranges)
      Verifies that the given RangeSet does not enclose any of the given ranges.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       assertThat(rangeSet).doesNotEncloseAnyRangesOf(Arrays.asList(Range.closed(-10, 10),
                                                                    Range.open(150, 160),
                                                                    Range.open(590, 700));
      Parameters:
      ranges - the ranges to check whether the actual RangeSet does not enclose any of them.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet encloses any of the given ranges.
      NullPointerException - if ranges are null.
      IllegalArgumentException - if ranges are empty.
    • doesNotEncloseAnyRangesOf

      public RangeSetAssert<T> doesNotEncloseAnyRangesOf(RangeSet<T> rangeSet)
      Verifies that the given RangeSet does not enclose any range from the given range set.

      Example:

       RangeSet<Integer> rangeSet = TreeRangeSet.create();
      
       rangeSet.add(Range.closed(0, 100));
       rangeSet.add(Range.closed(200, 300));
       rangeSet.add(Range.closed(500, 600));
      
       RangeSet<Integer> enclosedSet = TreeRangeSet.create();
      
       enclosedSet.add(Range.closed(-10, 10));
       enclosedSet.add(Range.open(150, 360));
       enclosedSet.add(Range.open(590, 690));
      
       assertThat(rangeSet).doesNotEncloseAnyRangesOf(enclosedSet);
      Parameters:
      rangeSet - the range set to check whether the actual RangeSet does not enclose any ranges from it.
      Returns:
      this RangeSetAssert for assertions chaining.
      Throws:
      AssertionError - if the actual RangeSet is null.
      AssertionError - if the actual RangeSet encloses any range from the given range set.
      NullPointerException - if range set is null.
      IllegalArgumentException - if range set is empty.