From c859a0571896e09ba68c8d9942776debaa592291 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 4 Oct 2014 17:37:09 +0200 Subject: [PATCH] Extract test framework into own sub-module --- pmd-java/pom.xml | 5 ++++ pmd-test/pom.xml | 24 +++++++++++++++++++ .../testframework/AbstractTokenizerTest.java | 0 .../pmd/testframework/PMDTestRunner.java | 0 .../pmd/testframework/RuleTst.java | 0 .../testframework/SimpleAggregatorTst.java | 0 .../pmd/testframework/StreamUtil.java | 0 .../pmd/testframework/TestDescriptor.java | 0 pom.xml | 1 + 9 files changed, 30 insertions(+) create mode 100644 pmd-test/pom.xml rename {pmd/src/test => pmd-test/src/main}/java/net/sourceforge/pmd/testframework/AbstractTokenizerTest.java (100%) rename {pmd/src/test => pmd-test/src/main}/java/net/sourceforge/pmd/testframework/PMDTestRunner.java (100%) rename {pmd/src/test => pmd-test/src/main}/java/net/sourceforge/pmd/testframework/RuleTst.java (100%) rename {pmd/src/test => pmd-test/src/main}/java/net/sourceforge/pmd/testframework/SimpleAggregatorTst.java (100%) rename {pmd/src/test => pmd-test/src/main}/java/net/sourceforge/pmd/testframework/StreamUtil.java (100%) rename {pmd/src/test => pmd-test/src/main}/java/net/sourceforge/pmd/testframework/TestDescriptor.java (100%) diff --git a/pmd-java/pom.xml b/pmd-java/pom.xml index abbf5c6902..e27629c9be 100644 --- a/pmd-java/pom.xml +++ b/pmd-java/pom.xml @@ -114,6 +114,11 @@ pmd ${project.version} + + net.sourceforge.pmd + pmd-test + ${project.version} + org.apache.ant ant diff --git a/pmd-test/pom.xml b/pmd-test/pom.xml new file mode 100644 index 0000000000..71d066955c --- /dev/null +++ b/pmd-test/pom.xml @@ -0,0 +1,24 @@ + + + 4.0.0 + pmd-test + PMD Test Framework + + + net.sourceforge.pmd + pmd-aggregate + 5.1.4-SNAPSHOT + + + + + net.sourceforge.pmd + pmd + ${project.version} + + + junit + junit + + + diff --git a/pmd/src/test/java/net/sourceforge/pmd/testframework/AbstractTokenizerTest.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/AbstractTokenizerTest.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/testframework/AbstractTokenizerTest.java rename to pmd-test/src/main/java/net/sourceforge/pmd/testframework/AbstractTokenizerTest.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/testframework/PMDTestRunner.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/PMDTestRunner.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/testframework/PMDTestRunner.java rename to pmd-test/src/main/java/net/sourceforge/pmd/testframework/PMDTestRunner.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/testframework/RuleTst.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTst.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/testframework/RuleTst.java rename to pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTst.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/testframework/SimpleAggregatorTst.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/SimpleAggregatorTst.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/testframework/SimpleAggregatorTst.java rename to pmd-test/src/main/java/net/sourceforge/pmd/testframework/SimpleAggregatorTst.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/testframework/StreamUtil.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/StreamUtil.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/testframework/StreamUtil.java rename to pmd-test/src/main/java/net/sourceforge/pmd/testframework/StreamUtil.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/testframework/TestDescriptor.java b/pmd-test/src/main/java/net/sourceforge/pmd/testframework/TestDescriptor.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/testframework/TestDescriptor.java rename to pmd-test/src/main/java/net/sourceforge/pmd/testframework/TestDescriptor.java diff --git a/pom.xml b/pom.xml index 578ad815c5..0d8f40da64 100644 --- a/pom.xml +++ b/pom.xml @@ -627,6 +627,7 @@ pmd + pmd-test pmd-java pmd-dist