</profiles>
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.12</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-all</artifactId>
+ <version>1.3</version>
+ <scope>test</scope>
</dependency>
</dependencies>
</project>
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);
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);
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);
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);
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);