net.sf.molae.pipe.test
Class CubeTest.ProjectionTest<E,T>

java.lang.Object
  extended by org.junit.Assert
      extended by net.sf.molae.pipe.test.ObjectTest<B>
          extended by net.sf.molae.pipe.test.CubeTest<Cube<E,T>,E,T>
              extended by net.sf.molae.pipe.test.CubeTest.ProjectionTest<E,T>
Enclosing class:
CubeTest<B extends Cube<E,T>,E,T>

public static class CubeTest.ProjectionTest<E,T>
extends CubeTest<Cube<E,T>,E,T>

Test methods to check the contract of projections.

Since:
1.1

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.molae.pipe.test.CubeTest
CubeTest.ProjectionTest<E,T>
 
Constructor Summary
protected CubeTest.ProjectionTest(CubeTest<? extends Cube<E,T>,E,T> parentTest, int index, E pivot)
          Creates a new test.
 
Method Summary
 void assertConsistency()
          Checks consistency of all reading cube methods.
protected  void assertConsistency(List<E> key)
          Checks consistency of all reading cube methods regarding the element at the specified key.
 
Methods inherited from class net.sf.molae.pipe.test.CubeTest
checkConsistency, checkConsistency, getInstance, performCycle, performCycle, performIntegerTest, performValuesTest, setStringTestValues, setTestValue, setTestValues
 
Methods inherited from class net.sf.molae.pipe.test.ObjectTest
assertFalse, assertTestValuesSet, getTestObject, setTestValuesSet, toString
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CubeTest.ProjectionTest

protected CubeTest.ProjectionTest(CubeTest<? extends Cube<E,T>,E,T> parentTest,
                                  int index,
                                  E pivot)
Creates a new test. The candidate is the projection of the parent test candidate.

Parameters:
parentTest - a cube test
index - the dimension that will be fixed
pivot - the fixed value of the fixed dimension
Throws:
NullPointerException - if the specified test objects is null.
Method Detail

assertConsistency

public void assertConsistency()
Description copied from class: CubeTest
Checks consistency of all reading cube methods.

Overrides:
assertConsistency in class CubeTest<Cube<E,T>,E,T>

assertConsistency

protected void assertConsistency(List<E> key)
Description copied from class: CubeTest
Checks consistency of all reading cube methods regarding the element at the specified key.

Overrides:
assertConsistency in class CubeTest<Cube<E,T>,E,T>
Parameters:
key - key of the element to check