use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testFieldLevelSuppression.
@Test
public void testFieldLevelSuppression() {
Report rpt = new Report();
runTestFromString(TEST6, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(1, rpt.size());
}
use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testSpecificSuppressionValue2.
@Test
public void testSpecificSuppressionValue2() {
Report rpt = new Report();
runTestFromString(TEST9_VALUE2, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(1, rpt.size());
}
use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testSpecificSuppressionMulitpleValues1.
@Test
public void testSpecificSuppressionMulitpleValues1() {
Report rpt = new Report();
runTestFromString(TEST9_MULTIPLE_VALUES_1, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(0, rpt.size());
}
use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testSpecificSuppression.
@Test
public void testSpecificSuppression() {
Report rpt = new Report();
runTestFromString(TEST9, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(1, rpt.size());
}
use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testInheritedSuppression.
@Test
public void testInheritedSuppression() {
Report rpt = new Report();
runTestFromString(TEST3, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(0, rpt.size());
}
Aggregations