click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bck...@apache.org
Subject svn commit: r961478 - /click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java
Date Wed, 07 Jul 2010 18:49:40 GMT
Author: bckfnn
Date: Wed Jul  7 18:49:40 2010
New Revision: 961478

URL: http://svn.apache.org/viewvc?rev=961478&view=rev
Log:
close the resource and the delete directory will succeed on windows.

Modified:
    click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java

Modified: click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java?rev=961478&r1=961477&r2=961478&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java (original)
+++ click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java Wed Jul  7 18:49:40
2010
@@ -117,6 +117,7 @@ public class MockTests extends TestCase 
             resourceStream.read(resultData);
             boolean sameBytes = Arrays.equals(resultData, origData.getBytes());
             Assert.assertTrue(sameBytes);
+            resourceStream.close();
 
         } catch (Exception ex) {
             ex.printStackTrace();



Mime
View raw message