From 6a8f1acef3be306ef770db70bb0d4a2143a17deb Mon Sep 17 00:00:00 2001 From: nickl- Date: Wed, 25 Oct 2017 21:08:57 +0200 Subject: Move runtests to build directory. Move the test output folder 'runtests' to target or build directory so that mvn clean can clean that. --- pom.xml | 2 +- src/test/javassist/JvstTest4.java | 2 +- src/test/javassist/JvstTestRoot.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 06d1f6da..3d5d63dc 100644 --- a/pom.xml +++ b/pom.xml @@ -159,7 +159,7 @@ javassist/JvstTest.java once - runtest + ${project.build.directory}/runtest diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java index 467caf2b..a9607e8b 100644 --- a/src/test/javassist/JvstTest4.java +++ b/src/test/javassist/JvstTest4.java @@ -628,7 +628,7 @@ public class JvstTest4 extends JvstTestRoot { assertEquals(packageName, obj.getClass().getPackage().getName()); } - public static final String BASE_PATH = "../"; + public static final String BASE_PATH = "../../"; public static final String JAVASSIST_JAR = BASE_PATH + "javassist.jar"; public static final String CLASSES_FOLDER = BASE_PATH + "build/classes"; public static final String TEST_CLASSES_FOLDER = BASE_PATH + "build/test-classes"; diff --git a/src/test/javassist/JvstTestRoot.java b/src/test/javassist/JvstTestRoot.java index 118e8511..69f4a6ae 100644 --- a/src/test/javassist/JvstTestRoot.java +++ b/src/test/javassist/JvstTestRoot.java @@ -5,10 +5,10 @@ import java.lang.reflect.Method; public class JvstTestRoot extends TestCase { // the directory where all compiled class files are found. - public static final String PATH = "../target/test-classes/"; + public static final String PATH = "../../target/test-classes/"; // the directory where javassist.jar is found. - public static final String JAR_PATH = "../"; + public static final String JAR_PATH = "../../"; ClassPool sloader, dloader; Loader cloader; -- cgit v1.2.3