From 901380146ce47cb8c9358d18d611293f7ccc52da Mon Sep 17 00:00:00 2001 From: David Dixon-Peugh Date: Fri, 28 Jun 2002 18:39:23 +0000 Subject: [PATCH] New Test Case - constructors but no methods. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@137 51baf565-9d33-0410-a72c-fc3788e3496d --- .../pmd/rules/design/UseSingletonRuleTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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() ); + } }