diff options
author | nickl- <github@jigsoft.co.za> | 2017-10-26 00:33:39 +0200 |
---|---|---|
committer | nickl- <github@jigsoft.co.za> | 2017-10-27 17:40:48 +0200 |
commit | ce84f84a174b279ee3e8a38446ea3a1f23bf8287 (patch) | |
tree | 84c9d3258afa98cafe34c57dccc9a7c946d0e92a /src/test/javassist/JvstTest4.java | |
parent | 7ef0947b75ed935d45923cb00a93a52717c7c6ed (diff) | |
download | javassist-ce84f84a174b279ee3e8a38446ea3a1f23bf8287.tar.gz javassist-ce84f84a174b279ee3e8a38446ea3a1f23bf8287.zip |
Upgrade junit from ver 3 to 4.
There were minimal changes:
Some tests had their own runners these were discontinued as IDEs/maven run the tests anyway.
Removed the main methods for these.
2 tests were dependent on the running order so added the test sorter.
All tests succeed on junit 4 with legacy support.
Diffstat (limited to 'src/test/javassist/JvstTest4.java')
-rw-r--r-- | src/test/javassist/JvstTest4.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java index a9607e8b..6e4de447 100644 --- a/src/test/javassist/JvstTest4.java +++ b/src/test/javassist/JvstTest4.java @@ -6,10 +6,14 @@ import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.HashSet; +import org.junit.FixMethodOrder; +import org.junit.runners.MethodSorters; + import javassist.bytecode.*; import javassist.bytecode.annotation.Annotation; import javassist.expr.*; +@FixMethodOrder(MethodSorters.NAME_ASCENDING) public class JvstTest4 extends JvstTestRoot { public JvstTest4(String name) { super(name); |