harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r470318 - /incubator/harmony/enhanced/classlib/trunk/modules/tools/src/test/java/org/apache/harmony/tools/keytool/tests/GenKeyTest.java
Date Thu, 02 Nov 2006 10:28:21 GMT
Author: smishura
Date: Thu Nov  2 02:28:20 2006
New Revision: 470318

URL: http://svn.apache.org/viewvc?view=rev&rev=470318
Log:
Don't fail if temporary file exists - just try to remove it.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/tools/src/test/java/org/apache/harmony/tools/keytool/tests/GenKeyTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/tools/src/test/java/org/apache/harmony/tools/keytool/tests/GenKeyTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/tools/src/test/java/org/apache/harmony/tools/keytool/tests/GenKeyTest.java?view=diff&rev=470318&r1=470317&r2=470318
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/tools/src/test/java/org/apache/harmony/tools/keytool/tests/GenKeyTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/tools/src/test/java/org/apache/harmony/tools/keytool/tests/GenKeyTest.java
Thu Nov  2 02:28:20 2006
@@ -58,8 +58,8 @@
         File keyStoreFile = new File(keyStorePath);
         // Quit if such file exists for some reason.
         if (keyStoreFile.exists()) {
-            fail("Cannot create a temporary file " + keyStorePath
-                    + ". File with such name already exists. ");
+            assertTrue("Cannot delete a temporary file " + keyStorePath,
+                    keyStoreFile.delete());
         }
         // The file will be created by the KeyStoreLoaderSaver,
         // delete it when exiting.



Mime
View raw message