From 71b693ba2da4a5654edb6d05bb69ed25608ced8a Mon Sep 17 00:00:00 2001 From: Wouter Zelle Date: Thu, 30 Nov 2006 19:26:36 +0000 Subject: [PATCH] more XML cleanups git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4844 51baf565-9d33-0410-a72c-fc3788e3496d --- .../design/ExcessiveMethodLengthTest.java | 10 ++------ .../design/xml/ExcessiveMethodLength.xml | 23 +++++++++++++------ 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/design/ExcessiveMethodLengthTest.java b/pmd/regress/test/net/sourceforge/pmd/rules/design/ExcessiveMethodLengthTest.java index 1fb5381b91..fde730034c 100644 --- a/pmd/regress/test/net/sourceforge/pmd/rules/design/ExcessiveMethodLengthTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/rules/design/ExcessiveMethodLengthTest.java @@ -21,20 +21,14 @@ rule.addProperty("minimum", "10"); runTests(tests); } - - public void testReallyLongMethodWithLongerRange() throws Throwable { - rule.addProperty("minimum", "20"); - runTest(new TestDescriptor(tests[1].getCode(), - "minimum with longer range", 0, rule)); - } - + /* public void testOverrideMinimumWithTopScore() throws Throwable { Rule r = findRule("codesize", "ExcessiveMethodLength"); r.addProperty("minimum", "1"); r.addProperty("topscore", "2"); Report rpt = new Report(); - runTestFromString(tests[4].getCode(), r, rpt); + runTestFromString(tests[5].getCode(), r, rpt); for (Iterator i = rpt.iterator(); i.hasNext();) { RuleViolation rv = (RuleViolation)i.next(); assertTrue(rv.getLine() == 2 || rv.getLine() == 6); diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/design/xml/ExcessiveMethodLength.xml b/pmd/regress/test/net/sourceforge/pmd/rules/design/xml/ExcessiveMethodLength.xml index b509e06cba..71cbfbd6e7 100644 --- a/pmd/regress/test/net/sourceforge/pmd/rules/design/xml/ExcessiveMethodLength.xml +++ b/pmd/regress/test/net/sourceforge/pmd/rules/design/xml/ExcessiveMethodLength.xml @@ -13,12 +13,7 @@ public class Foo { } ]]> - - - 1 - + ]]> + + + 1 + + + + + 20 + 0 +