Summary

Tests Errors Failures Success Rate Time
307 0 0 100.00% 0.39

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List

Package Tests Errors Failures Success Rate Time
it.amattioli.workstate.testmachine 4 0 0 100.00% 0.12
it.amattioli.workstate.exceptions 7 0 0 100.00% 0.00
it.amattioli.workstate.config 52 0 0 100.00% 0.06
it.amattioli.workstate.specifications 1 0 0 100.00% 0.01
it.amattioli.workstate.core 235 0 0 100.00% 0.15
it.amattioli.workstate.actions 8 0 0 100.00% 0.04

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

it.amattioli.workstate.testmachine

Class Tests Errors Failures Success Rate Time
FromSimpleToSequentialTest 1 0 0 100.00% 0.01
ReferenceTest 1 0 0 100.00% 0.10
SimpleTest 1 0 0 100.00% 0.00
FromSuperToSubstateTest 1 0 0 100.00% 0.00

it.amattioli.workstate.exceptions

Class Tests Errors Failures Success Rate Time
WorkflowExceptionTest 7 0 0 100.00% 0.00

it.amattioli.workstate.config

Class Tests Errors Failures Success Rate Time
MetaSequentialStateBuilderTest 6 0 0 100.00% 0.01
MetaEventBuilderTest 3 0 0 100.00% 0.00
MetaJunctionPointBuilderTest 2 0 0 100.00% 0.00
InternalTransitionBuilderTest 7 0 0 100.00% 0.00
MetaConcurrentStateBuilderTest 6 0 0 100.00% 0.01
MetaAttributeBuilderTest 3 0 0 100.00% 0.00
BeanShellHelperTest 3 0 0 100.00% 0.01
SaxReaderTest 3 0 0 100.00% 0.00
MetaSimpleStateBuilderTest 5 0 0 100.00% 0.01
ConfigBuilderTest 5 0 0 100.00% 0.01
ExternalTransitionBuilderTest 7 0 0 100.00% 0.00
MetaInitialStateBuilderTest 2 0 0 100.00% 0.00

it.amattioli.workstate.specifications

Class Tests Errors Failures Success Rate Time
MachineSpecificationTest 1 0 0 100.00% 0.01

it.amattioli.workstate.core

Class Tests Errors Failures Success Rate Time
SimpleTransitionTest 11 0 0 100.00% 0.01
MetaSequentialStateTest 10 0 0 100.00% 0.01
MachineTest 19 0 0 100.00% 0.01
MetaConcurrentStateTest 10 0 0 100.00% 0.00
SourceSubstateTargetTransitionTest 11 0 0 100.00% 0.00
MetaSimpleStateTest 4 0 0 100.00% 0.00
AbstractMetaStateTest 1 0 0 100.00% 0.00
EventRepositoryTest 6 0 0 100.00% 0.00
InternalTransitionTest 11 0 0 100.00% 0.00
MetaEventTest 5 0 0 100.00% 0.00
ConcurrentStateTest 18 0 0 100.00% 0.01
SimpleStateTest 18 0 0 100.00% 0.00
EventTest 5 0 0 100.00% 0.00
SeqTargetTransitionTest 12 0 0 100.00% 0.04
SeqSourceTransitionTest 12 0 0 100.00% 0.01
ConversionServiceTest 3 0 0 100.00% 0.00
JunctionPointTransitionTest 11 0 0 100.00% 0.00
SequentialStateTest 25 0 0 100.00% 0.01
MetaAttributeTest 12 0 0 100.00% 0.00
JunctionPointTest 9 0 0 100.00% 0.00
MetaMachineTest 13 0 0 100.00% 0.02
InitialStateTest 9 0 0 100.00% 0.00

it.amattioli.workstate.actions

Class Tests Errors Failures Success Rate Time
BeanShellGuardTest 2 0 0 100.00% 0.01
BeanShellStateActionTest 1 0 0 100.00% 0.01
NegatedGuardTest 4 0 0 100.00% 0.02
BeanShellTransitionActionTest 1 0 0 100.00% 0.00

Test Cases

SimpleTransitionTest

testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testEqualsSelf 0.00
testSelfHasSameTrigger 0.00
testDifferentEventHasNotSameTrigger 0.00
testDifferentGuardHasNotSameTrigger 0.00
testFinalState 0.00
testTransitionAction 0.00
testFailingAction 0.00
testFailingEntryAction 0.00

MetaSequentialStateTest

testAddDuplicateInitialState 0.00
testAddMetaState 0.00
testAddDuplicateMetaState 0.00
testAddNullMetaState 0.00
testGetSubstate 0.00
testGetWrongSubstate 0.00
testAddAttribute 0.00
testAddNullAttribute 0.00
testAddDuplicateAttribute 0.00
testDescendFromNull 0.00

MetaSequentialStateBuilderTest

testSubstate 0.00
testEntryAction 0.00
testExitAction 0.00
testAttribute 0.00
testTag 0.00
testId 0.00

MetaEventBuilderTest

testId 0.00
testAttribute 0.00
testTag 0.00

MachineTest

testOwner 0.00
testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testFailingEntryAction 0.00
testReExit 0.00
testReEnter 0.00
testInitialAttribute 0.00
testSetAttribute 0.00
testSetInvalidAttribute 0.00
testRestoredStateAttribute 0.00
testEquals 0.00
testMetaState 0.00
testWrongMetaState 0.00
testEnterNewState 0.00
testEnterActiveState 0.00
testExitActiveState 0.00
testExitNonActiveState 0.00
testInactiveEquals 0.00

MetaConcurrentStateTest

testAddSimpleMetaState 0.00
testAddMetaState 0.00
testAddDuplicateMetaState 0.00
testAddNullMetaState 0.00
testGetSubstate 0.00
testGetWrongSubstate 0.00
testAddAttribute 0.00
testAddNullAttribute 0.00
testAddDuplicateAttribute 0.00
testDescendFromNull 0.00

MetaJunctionPointBuilderTest

testBuiltClass 0.00
testId 0.00

InternalTransitionBuilderTest

testStartState 0.00
testEndState 0.00
testAction 0.00
testBeanShellAction 0.00
testGuard 0.00
testNegatedGuard 0.00
testBeanShellGuard 0.00

BeanShellGuardTest

testTrueGuard 0.01
testFalseGuard 0.00

SourceSubstateTargetTransitionTest

testExitAction 0.00
testFailingExitAction 0.00
testEntryAction 0.00
testEqualsSelf 0.00
testSelfHasSameTrigger 0.00
testDifferentEventHasNotSameTrigger 0.00
testDifferentGuardHasNotSameTrigger 0.00
testFinalState 0.00
testTransitionAction 0.00
testFailingAction 0.00
testFailingEntryAction 0.00

MetaSimpleStateTest

testAddAttribute 0.00
testAddNullAttribute 0.00
testAddDuplicateAttribute 0.00
testDescendFromNull 0.00

AbstractMetaStateTest

testDescendFromNull 0.00

EventRepositoryTest

testNewSimpleEvent 0.00
testNewParametrizedEvent 0.00
testNewArrayParamEvent 0.00
testNewArrayOf1ParamEvent 0.00
testWrongEventName 0.00
testIgnoredParamEvent 0.00

InternalTransitionTest

testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testFailingAction 0.00
testFailingEntryAction 0.00
testEqualsSelf 0.00
testSelfHasSameTrigger 0.00
testDifferentEventHasNotSameTrigger 0.00
testDifferentGuardHasNotSameTrigger 0.00
testFinalState 0.00
testTransitionAction 0.00

FromSimpleToSequentialTest

testAll 0.01

MetaEventTest

testParameter 0.00
testValidParameter 0.00
testNotValidParameterTag 0.00
testNotValidParameterValue 0.00
testInitParameters 0.00

ConcurrentStateTest

testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testFailingEntryAction 0.00
testReExit 0.00
testReEnter 0.00
testInitialAttribute 0.00
testSetAttribute 0.00
testSetInvalidAttribute 0.00
testRestoredStateAttribute 0.00
testEquals 0.00
testMetaState 0.00
testWrongMetaState 0.00
testEnterNewState 0.00
testEnterActiveState 0.00
testExitActiveState 0.00
testExitNonActiveState 0.00
testInactiveEquals 0.00

WorkflowExceptionTest

testSimpleException 0.00
testCausedException 0.00
testAddCause 0.00
testKeyedException 0.00
testAddParameter 0.00
testKeyedCauseException 0.00
testKeyedCauseParameter 0.00

BeanShellStateActionTest

testCorrectAction 0.01

MetaConcurrentStateBuilderTest

testSubstate 0.00
testEntryAction 0.00
testExitAction 0.00
testAttribute 0.00
testTag 0.00
testId 0.00

MetaAttributeBuilderTest

testStringMetaAttribute 0.00
testStringArrayMetaAttribute 0.00
testWrongInitialValue 0.00

SimpleStateTest

testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testFailingEntryAction 0.00
testReExit 0.00
testReEnter 0.00
testInitialAttribute 0.00
testSetAttribute 0.00
testSetInvalidAttribute 0.00
testRestoredStateAttribute 0.00
testEquals 0.00
testMetaState 0.00
testWrongMetaState 0.00
testEnterNewState 0.00
testEnterActiveState 0.00
testExitActiveState 0.00
testExitNonActiveState 0.00
testInactiveEquals 0.00

EventTest

testMetaEvent 0.00
testAllowedParameter 0.00
testParameterValue 0.00
testValidEvent 0.00
testInvalidEvent 0.00

BeanShellHelperTest

testNewAction 0.01
testNewInteger 0.00
testSyntaxError 0.00

ReferenceTest

testAll 0.10

SimpleTest

testAll 0.00

MachineSpecificationTest

testInstantiation 0.01

SeqTargetTransitionTest

testEntryAction 0.01
testFailingEntryAction 0.00
testFailingSuperEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testEqualsSelf 0.00
testSelfHasSameTrigger 0.00
testDifferentEventHasNotSameTrigger 0.00
testDifferentGuardHasNotSameTrigger 0.00
testFinalState 0.00
testTransitionAction 0.00
testFailingAction 0.00

SeqSourceTransitionTest

testExitAction 0.00
testFailingExitAction 0.00
testFailingSuperExitAction 0.00
testEntryAction 0.00
testEqualsSelf 0.00
testSelfHasSameTrigger 0.00
testDifferentEventHasNotSameTrigger 0.00
testDifferentGuardHasNotSameTrigger 0.00
testFinalState 0.00
testTransitionAction 0.00
testFailingAction 0.00
testFailingEntryAction 0.00

SaxReaderTest

testEquals 0.00
testId 0.00
testHashCode 0.00

ConversionServiceTest

testFormatDate 0.00
testFormatInteger 0.00
testParseDate 0.00

FromSuperToSubstateTest

testAll 0.00

MetaSimpleStateBuilderTest

testEntryAction 0.00
testExitAction 0.00
testAttribute 0.00
testTag 0.00
testId 0.00

JunctionPointTransitionTest

testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testEqualsSelf 0.00
testSelfHasSameTrigger 0.00
testDifferentEventHasNotSameTrigger 0.00
testDifferentGuardHasNotSameTrigger 0.00
testFinalState 0.00
testTransitionAction 0.00
testFailingAction 0.00
testFailingEntryAction 0.00

SequentialStateTest

testNullEntryStack 0.00
testEmptyEntryStack 0.00
testNotInactiveCurrent 0.00
testFailingSubstateEntryAction 0.00
testFailingSubstateExitAction 0.00
testGetRedefinedAttribute 0.00
testTerminate 0.00
testEntryAction 0.00
testExitAction 0.00
testFailingExitAction 0.00
testFailingEntryAction 0.00
testReExit 0.00
testReEnter 0.00
testInitialAttribute 0.00
testSetAttribute 0.00
testSetInvalidAttribute 0.00
testRestoredStateAttribute 0.00
testEquals 0.00
testMetaState 0.00
testWrongMetaState 0.00
testEnterNewState 0.00
testEnterActiveState 0.00
testExitActiveState 0.00
testExitNonActiveState 0.00
testInactiveEquals 0.00

ConfigBuilderTest

testBuildInitialState 0.00
testBuildSimpleState 0.00
testBuildSequentialState 0.00
testStateAttribute 0.00
testEvent 0.00

NegatedGuardTest

testCheck 0.01
testPriority 0.00
testBaseGuard 0.00
testEquals 0.00

MetaAttributeTest

testAttributeTag 0.00
testAttributeClass 0.00
testIllegalAttributeClass 0.00
testAttributeInitial 0.00
testIllegalAttributeInitial 0.00
testValidAttribute 0.00
testInvalidAttribute 0.00
testStringAttribute 0.00
testStringArrayAttribute 0.00
testAttributeToString 0.00
testValidation 0.00
testFailedValidation 0.00

ExternalTransitionBuilderTest

testStartState 0.00
testEndState 0.00
testAction 0.00
testBeanShellAction 0.00
testGuard 0.00
testNegatedGuard 0.00
testBeanShellGuard 0.00

MetaInitialStateBuilderTest

testBuiltClass 0.00
testId 0.00

BeanShellTransitionActionTest

testCorrectAction 0.00

JunctionPointTest

testActivatedTransition 0.00
testEquals 0.00
testMetaState 0.00
testWrongMetaState 0.00
testEnterNewState 0.00
testEnterActiveState 0.00
testExitActiveState 0.00
testExitNonActiveState 0.00
testInactiveEquals 0.00

MetaMachineTest

testSerialize 0.01
testOwnerAttribute 0.00
testFindMetaState 0.00
testAddDuplicateInitialState 0.00
testAddMetaState 0.00
testAddDuplicateMetaState 0.00
testAddNullMetaState 0.00
testGetSubstate 0.00
testGetWrongSubstate 0.00
testAddAttribute 0.00
testAddNullAttribute 0.00
testAddDuplicateAttribute 0.00
testDescendFromNull 0.00

InitialStateTest

testActivatedTransition 0.00
testEquals 0.00
testMetaState 0.00
testWrongMetaState 0.00
testEnterNewState 0.00
testEnterActiveState 0.00
testExitActiveState 0.00
testExitNonActiveState 0.00
testInactiveEquals 0.00