commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SCXML-172) Improve CustomActionTest not to depend on test method execution order
Date Wed, 16 Oct 2013 13:27:42 GMT
Woonsan Ko created SCXML-172:
--------------------------------

             Summary: Improve CustomActionTest not to depend on test method execution order
                 Key: SCXML-172
                 URL: https://issues.apache.org/jira/browse/SCXML-172
             Project: Commons SCXML
          Issue Type: Improvement
    Affects Versions: 2.0
            Reporter: Woonsan Ko
            Assignee: Woonsan Ko
            Priority: Minor
             Fix For: 2.0


The CustomActionTest#testCustomActionCallbacks() depends on method execution order (@FixMethodOrder(MethodSorters.JVM)).

However, the MethodSorters.JVM option may give inconsistent results in different JVMs. [1]

I think we'd better do the following:
- Remove #testCustomActionCallbacks();
- In each test method executing SCXML with Hello custom action, we can compare the expected
execution times on Hello custom action with the recorded execution number in Hello class.
(Each number can be reinitialized in @Before.)
  This would give more flexibility even when testing only each test method (e.g, 'mvn test
-Dtest=CustomActionTest#testSomething).

[1] http://junit.czweb.org/apidocs/org/junit/runners/MethodSorters.html#JVM



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message