This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 946a5b7  Reuse IOExceptionList.
946a5b7 is described below

commit 946a5b73fc0b10221e3a36dd98c749b90a571e5b
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Fri Aug 14 23:11:12 2020 -0400

    Reuse IOExceptionList.
---
 .../java/org/apache/commons/io/FileUtilsCleanDirectoryTestCase.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/io/FileUtilsCleanDirectoryTestCase.java 
b/src/test/java/org/apache/commons/io/FileUtilsCleanDirectoryTestCase.java
index b44d18c..503a659 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsCleanDirectoryTestCase.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsCleanDirectoryTestCase.java
@@ -111,7 +111,8 @@ public class FileUtilsCleanDirectoryTestCase {
             FileUtils.cleanDirectory(top);
             fail("expected IOException");
         } catch (final IOException e) {
-            assertEquals("Unable to delete file: " + file.getAbsolutePath(), 
e.getMessage());
+            final IOExceptionList list = (IOExceptionList) e;  
+            assertEquals("Unable to delete file: " + file.getAbsolutePath(), 
list.getCause(0).getMessage());
         } finally {
             chmod(top, 755, false);
         }

Reply via email to