Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.8.4, 2.9
-
None
-
Oracle JDK 7
Description
The PageViewPluginTest tests will fail if they aren't executed in the same order like they appear in the source file.
JUnit never gave any grants in terms of execution ordering. Quite the contrary, relying on execution ordering is considered to be bad practice [1].
However, up to JDK 6, it seemed to always be the same ordering like in the source code, so the tests were thought to be stable and deterministic. JDK 7 now changed this situation [2].
Thanks to Glen Mazza for reporting this [3]!
[1] http://www.javaworld.com/jw-12-2000/jw-1221-junit.html?page=2
[2] http://stackoverflow.com/questions/3693626/how-to-run-test-methods-in-spec-order-in-junit4
[3] http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/201210.mbox/%3C508C0CBB.4030304%40gmail.com%3E
Attachments
Issue Links
- is related to
-
JSPWIKI-665 Page View Plugin and page renames and deletions
- Closed