|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--net.sf.molae.pipe.test.ObjectTest
|
+--net.sf.molae.pipe.test.CubeTest
Test methods to check the contract of cube implementing classes.
| Inner Class Summary | |
static class |
CubeTest.ProjectionTest
Test methods to check the contract of projections. |
| Constructor Summary | |
protected |
CubeTest(Cube testObject)
Creates a new test with the specified candidate. |
| Method Summary | |
void |
assertConsistency()
Checks consistency of all reading cube methods. |
protected void |
assertConsistency(List key)
Checks consistency of all reading cube methods regarding the element at the specified key. |
protected void |
checkConsistency()
This method is called at the start of the test cycle and after each modification of the test object. |
protected void |
checkConsistency(List key)
This method is called at the start of the test cycle and after each modification of the element at the specified key. |
static CubeTest |
getInstance(Cube testObject)
Creates a new instance of this class with the specified testObject as test object. |
void |
performCycle()
Performs a test cycle. |
protected void |
performCycle(List key)
Puts the specified key/value pair and restores the old value. |
void |
performIntegerTest()
Method to test cube implementations that support integers. |
void |
setTestValue(Object testValue)
Sets the test value to the specified value. |
| Methods inherited from class net.sf.molae.pipe.test.ObjectTest |
assertFalse, getTestObject, toString |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 |
protected CubeTest(Cube testObject)
testObject - the candidate of the testNullPointerException - if the specified test objects is
null.| Method Detail |
public static final CubeTest getInstance(Cube testObject)
testObject - the candidate of the testNullPointerException - if the specified test objects is
null.protected void assertConsistency(List key)
key - key of the element to checkAssertionFailedError - if the cube contract is broken by
the tested cube.public void assertConsistency()
assertConsistency in class ObjectTestAssertionFailedError - if the cube contract is broken by
the tested cube.protected void checkConsistency(List key)
assertConsistency(List).key - key of the element to checkAssertionFailedError - if the test object is not consistent.protected void checkConsistency()
assertConsistency().AssertionFailedError - if the test object is not consistent.public void setTestValue(Object testValue)
put method.testValue - new value of the test value.protected void performCycle(List key)
key - key of the cube entry to be modifiedAssertionFailedError - if the cube contract is broken by
the tested cube.public void performCycle()
AssertionFailedError - if the cube contract is broken by
the tested cube.public void performIntegerTest()
AssertionFailedError - if the test object does not pass the test.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||