[javascript] Consolidate test packages

This commit is contained in:
Andreas Dangel
2024-02-23 15:02:40 +01:00
parent a00916b4f0
commit 36cfde4735
5 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,7 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.ant;
package net.sourceforge.pmd.lang.ecmascript;
import org.junit.jupiter.api.Test;
@ -11,6 +11,7 @@ import net.sourceforge.pmd.test.AbstractAntTestHelper;
class PMDTaskTest extends AbstractAntTestHelper {
PMDTaskTest() {
super.pathToTestScript = "target/test-classes/net/sourceforge/pmd/lang/ecmascript/ant/xml";
super.antTestScriptFilename = "pmdtasktest.xml";
}

View File

@ -2,7 +2,7 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
package net.sourceforge.pmd.lang.ecmascript;
import static net.sourceforge.pmd.lang.test.ast.TestUtilsKt.assertSize;
import static net.sourceforge.pmd.lang.test.ast.TestUtilsKt.assertSuppressed;

View File

@ -1,4 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
// just some js file for net.sourceforge.pmd.cli.CLITest

View File

@ -6,7 +6,7 @@
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" />
<target name="testEcmascript">
<pmd rulesetfiles="${pmd.home}/src/test/resources/net/sourceforge/pmd/ant/xml/ruleset.xml">
<pmd rulesetfiles="${pmd.home}/src/test/resources/net/sourceforge/pmd/lang/ecmascript/ant/xml/ruleset.xml">
<formatter type="text" toConsole="true" />
<fileset dir="${pmd.home}/src/test/resources/ant/ecmascript/">
<include name="*.js" />