[jboss-jira] [JBoss JIRA] (AS7-4132) EntityTestCase assumes test methods will run in order
Radoslav Husar (JIRA)
jira-events at lists.jboss.org
Wed Mar 14 12:50:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-4132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radoslav Husar updated AS7-4132:
--------------------------------
Assignee: Radoslav Husar (was: Zbyněk Roubalík)
Git Pull Request: https://github.com/jbossas/jboss-as/pull/1807
Why not just force the order of execution? Sent PR.
> 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
More information about the jboss-jira
mailing list