[
https://issues.apache.org/jira/browse/SCXML-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795749#comment-13795749
]
Woonsan Ko commented on SCXML-171:
----------------------------------
With the existing junit 3.8.2 dependency, every test succeeds:
"Tests run: 282, Failures: 0, Errors: 0, Skipped: 0"
However, with the new junit 4.11 dependency, one test fails:
"""
Failed tests:
CustomActionTest.testCustomActionCallbacks:193 expected:<5> but was:<8>
Tests run: 282, Failures: 1, Errors: 0, Skipped: 0
"""
The reason why CustomActionTest.testCustomActionCallbacks fails now is because
it depends on the default test method execution ordering. It has assumed some
other test methods executed 5 times with Hello custom action and tests if the
Hello custom action was executed exactly 5 times.
I will change it to count the scxml execution with Hello custom action
explicitly in the test class and compare the local count with the Hello static
count member for now.
> Upgrade JUnit dependency to 4.11
> --------------------------------
>
> Key: SCXML-171
> URL: https://issues.apache.org/jira/browse/SCXML-171
> Project: Commons SCXML
> Issue Type: Task
> Affects Versions: 2.0
> Reporter: Woonsan Ko
> Assignee: Woonsan Ko
> Fix For: 2.0
>
>
> Better update to JUnit 4.11; Would be nicer for new comers.
--
This message was sent by Atlassian JIRA
(v6.1#6144)