Permalink
Browse files

I hate git

  • Loading branch information...
1 parent 9d06625 commit 6c6ced591b0319a4717a44d2a8bab1d68e1124fe @patrickwilsonwelsh patrickwilsonwelsh committed Mar 12, 2011
@@ -25,13 +25,7 @@ public CleanClassTest(ClassMetric classMetric) throws Exception {
this.methodMetrics = classMetric.methods;
}
- @Test
- public void numberOfMethodsOnClass_Is_GreaterThanMin() throws Exception {
- assertTrue("Expected number of methods on class " + classMetric.className + " to be above minimum of "
- + MIN_METHODS_PER_CLASS + " but was " + methodMetrics.size(), methodMetrics.size() >= MIN_METHODS_PER_CLASS);
- }
-
- @Test
+ @Test
public void numberOfMethodsOnClass_Is_LessThanMaximum() throws Exception {
assertTrue("Expected number of methods on class " + classMetric.className + " to be below maximum of "
+ MAX_METHODS_PER_CLASS + " but was " + methodMetrics.size(), methodMetrics.size() < MAX_METHODS_PER_CLASS);
@@ -8,7 +8,6 @@
public class CleanTestBase {
public static final int MAX_METHODS_PER_CLASS = 9;
- public static final int MIN_METHODS_PER_CLASS = 3;
public static final int MAX_METHOD_COMPLEXITY = 4;
public static final int MAX_BYTECODE_STATEMENTS = 42; //Thank you Douglas Adams!

0 comments on commit 6c6ced5

Please sign in to comment.