commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r619436 - /commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java
Date Thu, 07 Feb 2008 15:08:33 GMT
Author: niallp
Date: Thu Feb  7 07:08:29 2008
New Revision: 619436

URL: http://svn.apache.org/viewvc?rev=619436&view=rev
Log:
Add messages to assertions to make it easier where the testFileCleanerExitWhenFinished1()
is failing in Continuum

Modified:
    commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java

Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java?rev=619436&r1=619435&r2=619436&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java
(original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java
Thu Feb  7 07:08:29 2008
@@ -227,20 +227,20 @@
     public void testFileCleanerExitWhenFinished1() throws Exception {
         String path = testFile.getPath();
         
-        assertEquals(false, testFile.exists());
+        assertEquals("1-testFile exists", false, testFile.exists());
         RandomAccessFile r = new RandomAccessFile(testFile, "rw");
-        assertEquals(true, testFile.exists());
+        assertEquals("2-testFile exists", true, testFile.exists());
         
-        assertEquals(0, theInstance.getTrackCount());
+        assertEquals("3-Track Count", 0, theInstance.getTrackCount());
         theInstance.track(path, r);
-        assertEquals(1, theInstance.getTrackCount());
-        assertEquals(false, theInstance.exitWhenFinished);
-        assertEquals(true, theInstance.reaper.isAlive());
+        assertEquals("4-Track Count", 1, theInstance.getTrackCount());
+        assertEquals("5-exitWhenFinished", false, theInstance.exitWhenFinished);
+        assertEquals("6-reaper.isAlive", true, theInstance.reaper.isAlive());
         
-        assertEquals(false, theInstance.exitWhenFinished);
+        assertEquals("7-exitWhenFinished", false, theInstance.exitWhenFinished);
         theInstance.exitWhenFinished();
-        assertEquals(true, theInstance.exitWhenFinished);
-        assertEquals(true, theInstance.reaper.isAlive());
+        assertEquals("8-exitWhenFinished", true, theInstance.exitWhenFinished);
+        assertEquals("9-reaper.isAlive", true, theInstance.reaper.isAlive());
         
         r.close();
         testFile = null;
@@ -248,10 +248,10 @@
 
         waitUntilTrackCount();
         
-        assertEquals(0, theInstance.getTrackCount());
-        assertEquals(false, new File(path).exists());
-        assertEquals(true, theInstance.exitWhenFinished);
-        assertEquals(false, theInstance.reaper.isAlive());
+        assertEquals("10-Track Count", 0, theInstance.getTrackCount());
+        assertEquals("11-testFile exists", false, new File(path).exists());
+        assertEquals("12-exitWhenFinished", true, theInstance.exitWhenFinished);
+        assertEquals("13-reaper.isAlive", false, theInstance.reaper.isAlive());
     }
 
     public void testFileCleanerExitWhenFinished2() throws Exception {



Mime
View raw message