use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testLocalVariableLevelSuppression.
@Test
public void testLocalVariableLevelSuppression() {
Report rpt = new Report();
runTestFromString(TEST8, 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 testNoSuppressionSomethingElseS.
@Test
public void testNoSuppressionSomethingElseS() {
Report rpt = new Report();
runTestFromString(TEST11, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(2, rpt.size());
}
use of net.sourceforge.pmd.FooRule in project pmd by pmd.
the class SuppressWarningsTest method testMethodLevelSuppression.
@Test
public void testMethodLevelSuppression() {
Report rpt = new Report();
runTestFromString(TEST4, 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 testSuppressAll.
@Test
public void testSuppressAll() {
Report rpt = new Report();
runTestFromString(TEST12, 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 testSpecificSuppressionMulitpleValues2.
@Test
public void testSpecificSuppressionMulitpleValues2() {
Report rpt = new Report();
runTestFromString(TEST9_MULTIPLE_VALUES_2, new FooRule(), rpt, LanguageRegistry.getLanguage(JavaLanguageModule.NAME).getVersion("1.5"));
assertEquals(0, rpt.size());
}
Aggregations