mondrian.rolap
Class BitKeyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.rolap.BitKeyTest
All Implemented Interfaces:
junit.framework.Test

public class BitKeyTest
extends junit.framework.TestCase

Unit test for BitKey.

Author:
Richard Emberson

Constructor Summary
BitKeyTest(String name)
           
 
Method Summary
 void testAnd()
          Tests the 'and' operation on BitKeys
 void testAndNot()
          Tests the BitKey.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 BitKeys
 void testCompareUnsigned()
           
 void testCompareUnsignedLongArrays()
           
 void testCreateFromBitSet()
           
 void testEmptyCopyCreatesBitKeyOfTheSameSize()
           
 void testEquals()
          Test for equals and not equals
 void testGoodSize()
          Test that non-negative sizes do not throw IllegalArgumentException
 void testHashCode()
           
 void testIntersects()
          Tests the 'intersects' operation on BitKeys
 void 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 equals
 void testOr()
          Tests the 'or' operation on BitKeys
 void testOrNot()
          Tests the 'nor' operation on BitKeys
 void testSizeTypes()
          Test that the implementation object returned is expected type.
 void testToBitSet()
          Tests the BitKey.toBitSet() method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


testAndNot

public void testAndNot()
Tests the BitKey.andNot(BitKey) operation.


testIntersects

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


testToBitSet

public void testToBitSet()
Tests the BitKey.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()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads