ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs BUnzip2Test.java BZip2Test.java InitializeClassTest.java
Date Sun, 23 Jun 2002 01:24:01 GMT
conor       2002/06/22 18:24:01

  Modified:    src/testcases/org/apache/tools/ant/taskdefs BUnzip2Test.java
                        BZip2Test.java InitializeClassTest.java
  Log:
  Provide messages when JUnit assertions fail
  
  Revision  Changes    Path
  1.3       +4 -3      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/BUnzip2Test.java
  
  Index: BUnzip2Test.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/BUnzip2Test.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- BUnzip2Test.java	29 Nov 2001 16:51:24 -0000	1.2
  +++ BUnzip2Test.java	23 Jun 2002 01:24:00 -0000	1.3
  @@ -80,7 +80,8 @@
       public void testRealTest() throws java.io.IOException {
           FileUtils fileUtils = FileUtils.newFileUtils();
           executeTarget("realTest");
  -        assertTrue(fileUtils.contentEquals(project.resolveFile("expected/asf-logo-huge.tar"),
  +        assertTrue("File content mismatch after bunzip2",
  +            fileUtils.contentEquals(project.resolveFile("expected/asf-logo-huge.tar"),
                                              project.resolveFile("asf-logo-huge.tar")));
       }
   }
  
  
  
  1.4       +4 -3      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/BZip2Test.java
  
  Index: BZip2Test.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/BZip2Test.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -u -r1.3 -r1.4
  --- BZip2Test.java	27 Feb 2002 10:54:18 -0000	1.3
  +++ BZip2Test.java	23 Jun 2002 01:24:01 -0000	1.4
  @@ -80,7 +80,8 @@
       public void testRealTest() throws java.io.IOException {
           FileUtils fileUtils = FileUtils.newFileUtils();
           executeTarget("realTest");
  -        assertTrue(fileUtils.contentEquals(project.resolveFile("expected/asf-logo-huge.tar.bz2"),
  +        assertTrue("File content mismatch",
  +            fileUtils.contentEquals(project.resolveFile("expected/asf-logo-huge.tar.bz2"),
                                              project.resolveFile("asf-logo-huge.tar.bz2")));
       }
   
  
  
  
  1.2       +1 -1      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/InitializeClassTest.java
  
  Index: InitializeClassTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/InitializeClassTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -w -u -r1.1 -r1.2
  --- InitializeClassTest.java	21 Jan 2002 13:55:07 -0000	1.1
  +++ InitializeClassTest.java	23 Jun 2002 01:24:01 -0000	1.2
  @@ -89,7 +89,7 @@
           System.setOut(ps);
           newps.close();
           FileUtils fu = FileUtils.newFileUtils();
  -        assertTrue(fu.contentEquals(f1, f2));
  +        assertTrue("Forked - non-forked mismatch", fu.contentEquals(f1, f2));
       }
   
       public void tearDown() {
  
  
  

--
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