ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs LoadFileTest.java
Date Sat, 09 Mar 2002 01:13:12 GMT
umagesh     02/03/08 17:13:12

  Modified:    src/testcases/org/apache/tools/ant/taskdefs
                        LoadFileTest.java
  Log:
  Use assertEquals instead of explicit check/fail combo.
  
  Revision  Changes    Path
  1.8       +7 -7      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java
  
  Index: LoadFileTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LoadFileTest.java	7 Mar 2002 19:42:30 -0000	1.7
  +++ LoadFileTest.java	9 Mar 2002 01:13:12 -0000	1.8
  @@ -62,6 +62,7 @@
    * Test the load file task
    *
    * @author Steve Loughran
  + * @author <a href="mailto:umagesh@apache.org">Magesh Umasankar</a>
    * @created 10 December 2001
    */
   public class LoadFileTest extends BuildFileTest {
  @@ -163,7 +164,7 @@
       }
   
       /**
  -     * A unit test for JUnit
  +     * Test FilterChain and FilterReaders
        */
       public void testFilterChain()
               throws BuildException {
  @@ -174,15 +175,14 @@
       }
   
       /**
  -     * A unit test for JUnit
  +     * Test StripJavaComments filterreader functionality.
        */
  -    public void testStripJavaComments()
  +    public final void testStripJavaComments()
               throws BuildException {
           executeTarget("testStripJavaComments");
  -        String expected = project.getProperty("expected");
  -        if(!project.getProperty("testStripJavaComments").equals(expected)) {
  -            fail("StripJavaComments broken");
  -        }
  +        final String expected = project.getProperty("expected");
  +        final String generated = project.getProperty("testStripJavaComments");
  +        assertEquals(expected, generated);
       }
   
       /**
  
  
  

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


Mime
View raw message