net.sf.molae.pipe.test
Class CubeTest.ProjectionTest<E,T>
java.lang.Object
org.junit.Assert
net.sf.molae.pipe.test.ObjectTest<B>
net.sf.molae.pipe.test.CubeTest<Cube<E,T>,E,T>
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
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 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 |
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 testindex
- the dimension that will be fixedpivot
- the fixed value of the fixed dimension
- Throws:
NullPointerException
- if the specified test objects is
null
.
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