Package mondrian.rolap
Class BitKeyTest
- java.lang.Object
-
- TestCase
-
- mondrian.rolap.BitKeyTest
-
public class BitKeyTest extends TestCase
Unit test forBitKey
.- Author:
- Richard Emberson
-
-
Constructor Summary
Constructors Constructor Description BitKeyTest(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAnd()
Tests the 'and' operation on BitKeysvoid
testAndNot()
Tests theBitKey.andNot(BitKey)
operation.void
testBadSize()
Test that negative size throws IllegalArgumentException.void
testClear()
Test that after clear the internal values are 0.void
testCompareTo()
Tests the 'compareTo' operation on BitKeysvoid
testCompareUnsigned()
void
testCompareUnsignedLongArrays()
void
testCreateFromBitSet()
void
testEmptyCopyCreatesBitKeyOfTheSameSize()
void
testEquals()
Test for equals and not equalsvoid
testGoodSize()
Test that non-negative sizes do not throw IllegalArgumentExceptionvoid
testHashCode()
void
testIntersects()
Tests the 'intersects' operation on BitKeysvoid
testIsEmpty()
void
testIsSuperSetOf()
This test is one BitKey is a subset of another.void
testIterator()
void
testNewBitKeyIsTheSameAsAClearedBitKey()
void
testNotEquals()
Test for not equals and not equalsvoid
testOr()
Tests the 'or' operation on BitKeysvoid
testOrNot()
Tests the 'nor' operation on BitKeysvoid
testSizeTypes()
Test that the implementation object returned is expected type.void
testToBitSet()
Tests theBitKey.toBitSet()
method.
-
-
-
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
-
testAndNot
public void testAndNot()
Tests theBitKey.andNot(BitKey)
operation.
-
testIntersects
public void testIntersects()
Tests the 'intersects' operation on BitKeys
-
testToBitSet
public void testToBitSet()
Tests theBitKey.toBitSet()
method.
-
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()
-
-