Class BitKeyTest


  • public class BitKeyTest
    extends TestCase
    Unit test for BitKey.
    Author:
    Richard Emberson
    • Constructor Detail

      • BitKeyTest

        public BitKeyTest​(String name)
    • Method Detail

      • testBadSize

        public void testBadSize()
        Test that negative size throws IllegalArgumentException.
      • testGoodSize

        public void testGoodSize()
        Test that non-negative sizes do not throw IllegalArgumentException
      • testSizeTypes

        public void testSizeTypes()
        Test that the implementation object returned is expected type.
      • testEquals

        public void testEquals()
        Test for equals and not equals
      • testHashCode

        public void testHashCode()
      • testNotEquals

        public void testNotEquals()
        Test for not equals and not equals
      • testClear

        public void testClear()
        Test that after clear the internal values are 0.
      • testNewBitKeyIsTheSameAsAClearedBitKey

        public void testNewBitKeyIsTheSameAsAClearedBitKey()
      • testEmptyCopyCreatesBitKeyOfTheSameSize

        public void testEmptyCopyCreatesBitKeyOfTheSameSize()
      • testIsSuperSetOf

        public void testIsSuperSetOf()
        This test is one BitKey is a subset of another.
      • testOr

        public void testOr()
        Tests the 'or' operation on BitKeys
      • testOrNot

        public void testOrNot()
        Tests the 'nor' operation on BitKeys
      • testAnd

        public void testAnd()
        Tests the 'and' operation on BitKeys
      • testIntersects

        public void testIntersects()
        Tests the 'intersects' operation on BitKeys
      • testCompareTo

        public void testCompareTo()
        Tests the 'compareTo' operation on BitKeys
      • testCreateFromBitSet

        public void testCreateFromBitSet()
      • testIsEmpty

        public void testIsEmpty()
      • testIterator

        public void testIterator()
      • testCompareUnsigned

        public void testCompareUnsigned()
      • testCompareUnsignedLongArrays

        public void testCompareUnsignedLongArrays()