commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r731711 - /commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
Date Mon, 05 Jan 2009 20:52:01 GMT
Author: rahul
Date: Mon Jan  5 12:52:00 2009
New Revision: 731711

URL: http://svn.apache.org/viewvc?rev=731711&view=rev
Log:
Create parents if they don't exist.

Modified:
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java?rev=731711&r1=731710&r2=731711&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
Mon Jan  5 12:52:00 2009
@@ -252,7 +252,7 @@
 
     public static SCXML testModelSerializability(final SCXML scxml) throws Exception {
         File fileDir = new File(SERIALIZATION_DIR);
-        if (!fileDir.exists() && !fileDir.mkdir()) {
+        if (!fileDir.exists() && !fileDir.mkdirs()) {
             System.err.println("SKIPPED SERIALIZATION: Failed directory creation");
             return scxml;
         }
@@ -272,7 +272,7 @@
 
     public static SCXMLExecutor testExecutorSerializability(final SCXMLExecutor exec) throws
Exception {
         File fileDir = new File(SERIALIZATION_DIR);
-        if (!fileDir.exists() && !fileDir.mkdir()) {
+        if (!fileDir.exists() && !fileDir.mkdirs()) {
             System.err.println("SKIPPED SERIALIZATION: Failed directory creation");
             return exec;
         }



Mime
View raw message