forked from phoedos/pmd
[core] Move MultiThreadProcessorTest to correct package
This commit is contained in:
@ -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 {
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user