diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/design/UseSingletonRuleTest.java b/pmd/regress/test/net/sourceforge/pmd/rules/design/UseSingletonRuleTest.java index 05dc9b749a..e728327097 100644 --- a/pmd/regress/test/net/sourceforge/pmd/rules/design/UseSingletonRuleTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/rules/design/UseSingletonRuleTest.java @@ -43,4 +43,12 @@ public class UseSingletonRuleTest new UseSingletonRule()); assertEquals( 1, report.countViolationsInCurrentFile() ); } + + public void testUseSingleton4() + throws Throwable + { + Report report = process("design/UseSingleton4.java", + new UseSingletonRule()); + assertEquals( 0, report.countViolationsInCurrentFile() ); + } }