more findbugs
[utils] / support / general / src / test / java / org / wamblee / io / FileSystemUtils.java
index 384eb09e894f6cf2b698cffae0be0b4f895b2e49..4be787e791899be20eed098e532e1eab24fb341a 100644 (file)
@@ -1,18 +1,18 @@
 /*
- * Copyright 2006 the original author or authors.
- *
+ * Copyright 2005-2010 the original author or authors.
+ * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- *
+ * 
  *      http://www.apache.org/licenses/LICENSE-2.0
- *
+ * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
+ */ 
 package org.wamblee.io;
 
 import junit.framework.Assert;
@@ -303,7 +303,9 @@ public final class FileSystemUtils {
         Assert.assertTrue(aSrc.isDirectory());
         Assert.assertTrue(!aTarget.exists());
 
-        aTarget.mkdirs();
+        if (!aTarget.mkdirs()) { 
+            Assert.fail("Could not create target directory '" + aTarget + "'");
+        }
 
         File[] files = aSrc.listFiles();