diff options
Diffstat (limited to 'src/test/javassist')
-rw-r--r-- | src/test/javassist/Bench.java | 5 | ||||
-rw-r--r-- | src/test/javassist/JvstTest2.java | 5 | ||||
-rw-r--r-- | src/test/javassist/JvstTest4.java | 4 | ||||
-rw-r--r-- | src/test/javassist/bytecode/BytecodeTest.java | 6 | ||||
-rw-r--r-- | src/test/javassist/compiler/CompTest.java | 6 |
5 files changed, 9 insertions, 17 deletions
diff --git a/src/test/javassist/Bench.java b/src/test/javassist/Bench.java index 723fa198..b7b8b27e 100644 --- a/src/test/javassist/Bench.java +++ b/src/test/javassist/Bench.java @@ -153,11 +153,6 @@ public class Bench extends JvstTestRoot { System.out.println("println: " + (t5 * 10) + " usec"); } - public static void main(String[] args) { - // junit.textui.TestRunner.run(suite()); - junit.swingui.TestRunner.main(new String[] { "javassist.Bench" }); - } - public static Test suite() { TestSuite suite = new TestSuite("Benchmark Tests"); suite.addTestSuite(Bench.class); diff --git a/src/test/javassist/JvstTest2.java b/src/test/javassist/JvstTest2.java index ec314e12..12bce5e4 100644 --- a/src/test/javassist/JvstTest2.java +++ b/src/test/javassist/JvstTest2.java @@ -2,10 +2,15 @@ package javassist; import java.io.*; import java.net.URL; + +import org.junit.FixMethodOrder; +import org.junit.runners.MethodSorters; + import java.lang.reflect.Method; import javassist.expr.*; +@FixMethodOrder(MethodSorters.NAME_ASCENDING) public class JvstTest2 extends JvstTestRoot { public JvstTest2(String name) { super(name); 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); diff --git a/src/test/javassist/bytecode/BytecodeTest.java b/src/test/javassist/bytecode/BytecodeTest.java index a859f248..a9b6e538 100644 --- a/src/test/javassist/bytecode/BytecodeTest.java +++ b/src/test/javassist/bytecode/BytecodeTest.java @@ -826,12 +826,6 @@ public class BytecodeTest extends TestCase { assertEquals("(I)V", cPool2.getUtf8Info(cPool2.getMethodTypeInfo(mtIndex))); } - public static void main(String[] args) { - // junit.textui.TestRunner.run(suite()); - junit.awtui.TestRunner.main(new String[] { - "javassist.bytecode.BytecodeTest" }); - } - public static Test suite() { TestSuite suite = new TestSuite("Bytecode Tests"); suite.addTestSuite(BytecodeTest.class); diff --git a/src/test/javassist/compiler/CompTest.java b/src/test/javassist/compiler/CompTest.java index 6a1d5424..158552e3 100644 --- a/src/test/javassist/compiler/CompTest.java +++ b/src/test/javassist/compiler/CompTest.java @@ -113,12 +113,6 @@ public class CompTest extends TestCase { assertEquals("(int,char[],String)", s); } - public static void main(String[] args) { - // junit.textui.TestRunner.run(suite()); - junit.awtui.TestRunner.main(new String[] { - "javassist.compiler.CompTest" }); - } - public static Test suite() { TestSuite suite = new TestSuite("Compiler Tests"); suite.addTestSuite(CompTest.class); |