ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka ClassFileTest.java
Date Tue, 28 Oct 2003 09:29:50 GMT
antoine     2003/10/28 01:29:50

  Modified:    src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka
                        ClassFileTest.java
  Log:
  Simplify assertion in testcase (remark of Martin Kruithof)
  
  Revision  Changes    Path
  1.9       +2 -6      ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassFileTest.java
  
  Index: ClassFileTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassFileTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ClassFileTest.java	27 Oct 2003 18:29:53 -0000	1.8
  +++ ClassFileTest.java	28 Oct 2003 09:29:50 -0000	1.9
  @@ -81,11 +81,7 @@
           assertEquals("ClassFileTest.java", clazzfile.getSourceFile());
           MethodInfo[] methods = clazzfile.getMethods();
           assertEquals(3, methods.length);
  -        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_2)) {
  -            assertHasMethod("void <init>()", 1, methods);
  -        } else {
  -            assertHasMethod("void <init>()", 2, methods);
  -        }
  +        assertHasMethod("void <init>()", 1, methods);
           assertHasMethod("void testTwoLines()", 2, methods);
           assertHasMethod("void testOneLine()", 3, methods);
       }
  @@ -95,7 +91,7 @@
           for (int i = 0; i < methods.length; i++) {
               MethodInfo method = methods[i];
               if (methodsig.equals(method.getFullSignature())) {
  -                
  +
                   assertTrue(methodsig, method.getNumberOfLines() >= line);
                   return;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message