Author: mturk Date: Fri Apr 17 13:22:40 2009 New Revision: 765988 URL: http://svn.apache.org/viewvc?rev=765988&view=rev Log: Make sure closed Descriptors are never equal except if this == other
Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java?rev=765988&r1=765987&r2=765988&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java (original) +++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Fri Apr 17 13:22:40 2009 @@ -509,6 +509,9 @@ assertTrue("Equals self", d1.equals(d1)); d1.close(); assertFalse("Equals closed", d1.equals(d2)); + d2.close(); + // They never match if both closed + assertFalse("Both closed", d1.equals(d2)); d1 = null; d2 = null;