[core] Move MultiThreadProcessorTest to correct package

This commit is contained in:
Andreas Dangel
2023-05-05 12:40:18 +02:00
parent b3ca1fdda3
commit e09962b3cf
3 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.processor;
package net.sourceforge.pmd.lang.impl;
import static net.sourceforge.pmd.util.CollectionUtil.listOf;
import static org.junit.jupiter.api.Assertions.assertEquals;
@ -31,6 +31,7 @@ class MultiThreadProcessorTest {
PmdAnalysis setupForTest(final String ruleset) {
PMDConfiguration configuration = new PMDConfiguration();
configuration.setThreads(2);
configuration.setIgnoreIncrementalAnalysis(true);
PmdAnalysis pmd = PmdAnalysis.create(configuration);
LanguageVersion lv = DummyLanguageModule.getInstance().getDefaultVersion();
pmd.files().addFile(TextFile.forCharSeq("abc", "file1-violation.dummy", lv));
@ -47,7 +48,7 @@ class MultiThreadProcessorTest {
return pmd;
}
// Dysfunctional rules are pruned upstream of the processor.
// TODO: Dysfunctional rules are pruned upstream of the processor.
//
// @Test
// void testRulesDysnfunctionalLog() throws Exception {

View File

@ -6,10 +6,10 @@
Ruleset used by test RuleSetReferenceIdTest
</description>
<rule name="NotThreadSafeRule" language="dummy" since="1.0" message="Not thread safe" class="net.sourceforge.pmd.processor.MultiThreadProcessorTest$NotThreadSafeRule"
<rule name="NotThreadSafeRule" language="dummy" since="1.0" message="Not thread safe" class="net.sourceforge.pmd.lang.impl.MultiThreadProcessorTest$NotThreadSafeRule"
externalInfoUrl="foo">
<description>Foo</description>
<priority>3</priority>
<example></example>
</rule>
</ruleset>
</ruleset>

View File

@ -6,10 +6,10 @@
Ruleset used by test MultiThreadProcessorTest
</description>
<rule name="DysfunctionalRule" language="dummy" since="1.0" message="dysfunctional rule" class="net.sourceforge.pmd.processor.MultiThreadProcessorTest$DysfunctionalRule"
<rule name="DysfunctionalRule" language="dummy" since="1.0" message="dysfunctional rule" class="net.sourceforge.pmd.lang.impl.MultiThreadProcessorTest$DysfunctionalRule"
externalInfoUrl="foo">
<description>Dysfunctional</description>
<priority>3</priority>
<example></example>
</rule>
</ruleset>
</ruleset>