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:33:41 GMT
antoine     2003/10/28 01:33:41

  Modified:    src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka
                        Tag: ANT_16_BRANCH ClassFileTest.java
  Log:
  Merge from HEAD
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.2   +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.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- ClassFileTest.java	27 Oct 2003 18:32:13 -0000	1.7.2.1
  +++ ClassFileTest.java	28 Oct 2003 09:33:41 -0000	1.7.2.2
  @@ -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