[
https://issues.jboss.org/browse/AS7-4132?page=com.atlassian.jira.plugin.s...
]
Stuart Douglas commented on AS7-4132:
-------------------------------------
Goog idea, I forgot that arquillian allows you to do that.
EntityTestCase assumes test methods will run in order
-----------------------------------------------------
Key: AS7-4132
URL:
https://issues.jboss.org/browse/AS7-4132
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate, Test Suite
Affects Versions: 7.1.1.Final
Reporter: Stuart Douglas
Assignee: Radoslav Husar
Fix For: 7.1.2.Final
The test will fail if the tests methods don't run in the order they are defined in
the class file. JUnit does not actually run the tests in any sort of well defined order,
as the Java compiler does not preserve order information when it compiles the class
files.
As the actual order is semi-random the test fails intermittently (I notice it on
OpenJDK).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira