You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ra...@apache.org on 2009/01/05 21:51:38 UTC

svn commit: r731709 - /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

Author: rahul
Date: Mon Jan  5 12:51:37 2009
New Revision: 731709

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

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

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java?rev=731709&r1=731708&r2=731709&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java (original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java Mon Jan  5 12:51:37 2009
@@ -280,7 +280,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;
         }
@@ -315,7 +315,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;
         }