Class BitSetsTest


  • public class BitSetsTest
    extends java.lang.Object
    Unit test for BitSets.
    • Constructor Summary

      Constructors 
      Constructor Description
      BitSetsTest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void assertToIterBitSet​(java.lang.String expected, java.util.BitSet bitSet)
      Tests that iterating over a BitSet yields the expected string.
      void testBitSetOf()
      Tests the method BitSets.of(int...).
      void testBitSetOfImmutableIntList()
      Tests the method BitSets.of(ImmutableIntList).
      void testBitSetsContains()
      Tests the method BitSets.contains(java.util.BitSet, java.util.BitSet).
      void testBitSetsRange()
      Tests the method BitSets.range(int, int).
      void testBitSetsToArray()
      Tests the method BitSets.toArray(java.util.BitSet).
      void testBitSetsUnion()
      Tests the method BitSets.union(java.util.BitSet, java.util.BitSet...).
      void testClosure()
      Tests the method BitSets.closure(java.util.SortedMap)
      void testPreviousClearBit()
      Tests the method BitSets.previousClearBit(java.util.BitSet, int).
      void testToIterBitSet()
      Tests the method BitSets.toIter(java.util.BitSet).
      void testToListBitSet()
      Tests the method BitSets.toList(java.util.BitSet).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BitSetsTest

        public BitSetsTest()
    • Method Detail

      • testToIterBitSet

        public void testToIterBitSet()
        Tests the method BitSets.toIter(java.util.BitSet).
      • assertToIterBitSet

        private void assertToIterBitSet​(java.lang.String expected,
                                        java.util.BitSet bitSet)
        Tests that iterating over a BitSet yields the expected string.
        Parameters:
        expected - Expected string
        bitSet - Bit set
      • testToListBitSet

        public void testToListBitSet()
        Tests the method BitSets.toList(java.util.BitSet).
      • testBitSetOf

        public void testBitSetOf()
        Tests the method BitSets.of(int...).
      • testBitSetsRange

        public void testBitSetsRange()
        Tests the method BitSets.range(int, int).
      • testBitSetsToArray

        public void testBitSetsToArray()
        Tests the method BitSets.toArray(java.util.BitSet).
      • testBitSetsUnion

        public void testBitSetsUnion()
        Tests the method BitSets.union(java.util.BitSet, java.util.BitSet...).
      • testBitSetsContains

        public void testBitSetsContains()
        Tests the method BitSets.contains(java.util.BitSet, java.util.BitSet).
      • testBitSetOfImmutableIntList

        public void testBitSetOfImmutableIntList()
        Tests the method BitSets.of(ImmutableIntList).
      • testPreviousClearBit

        public void testPreviousClearBit()
        Tests the method BitSets.previousClearBit(java.util.BitSet, int).
      • testClosure

        public void testClosure()
        Tests the method BitSets.closure(java.util.SortedMap)