|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.test.KiViCoreTest
public class KiViCoreTest
Test of the core of KiVi. Will instanciate the KiVi instance, setup some Combinations and trigger some triggers. First test cases check whether the AbstractCombination correctly retrieves the necessary information from the combinations's execute methods and correctly throws exceptions if the combination is malformed.
Later tests run KiVi for some time. Some of the test cases can detect error states themselves (e.g. increase of effects queue) but some cannot. So these should be run manually and the console output needs to be interpreted correctly.
Most test cases are meant to play around with KiVi automatically.
Constructor Summary | |
---|---|
KiViCoreTest()
|
Method Summary | |
---|---|
void |
setupKiVi()
|
void |
TestA()
Simplest trigger-combination-effect interaction. |
void |
TestDisjointCombinations()
Two combinations with totally different triggers. |
void |
TestEffect()
A combination that schedules effects and two others listening for these effects. |
void |
TestGetTriggerStates()
Test whether the trigger states that a combination listens to are correctly extracted via reflection from the execute methods. |
void |
TestNoExecute()
Combination has no execute method -> exception should be thrown. |
void |
TestOverlappingParameters()
Combination has multiple execute methods with overlapping parameters -> exception should be thrown. |
void |
TestSpammer()
Spamming of triggers should not overflow the effects queue. |
void |
TestSpammerSynchronized()
Spamming of triggers should not overflow the effects queue. |
void |
TestTwoEffects()
Combination has multiple execute methods with effect parameters which is currently not supported; all effect triggers need to be in one execute method. |
void |
TestUndo()
Test whether effects re correctly undone, respectively not undone. |
void |
TestWrongParameterType()
Combination has execute method with not supported parameter type -> exception should be thrown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KiViCoreTest()
Method Detail |
---|
public void setupKiVi()
public void TestNoExecute()
public void TestOverlappingParameters()
public void TestWrongParameterType()
public void TestTwoEffects()
public void TestGetTriggerStates()
public void TestA() throws InterruptedException
InterruptedException
public void TestDisjointCombinations() throws InterruptedException
InterruptedException
public void TestEffect() throws InterruptedException
InterruptedException
public void TestUndo() throws InterruptedException
InterruptedException
public void TestSpammerSynchronized() throws InterruptedException
InterruptedException
public void TestSpammer() throws InterruptedException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |