Skip to content

Commit 57100bb

Browse files
pjfanningayushtkn
andauthored
HADOOP-18917. Addendum: Upgrade to commons-io 2.14.0 (#6152). Contributed by PJ Fanning
Co-authored-by: Ayush Saxena <[email protected]>
1 parent 2bf5a9e commit 57100bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestTextFileBasedIdentityHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
package org.apache.hadoop.fs.azurebfs.services;
2020

2121
import java.io.File;
22-
import java.io.FileNotFoundException;
2322
import java.io.IOException;
2423
import java.nio.charset.Charset;
24+
import java.nio.file.NoSuchFileException;
2525

2626
import org.junit.Assert;
2727
import org.junit.BeforeClass;
@@ -114,7 +114,7 @@ public void testLookupForUser() throws IOException {
114114
public void testLookupForUserFileNotFound() throws Exception {
115115
TextFileBasedIdentityHandler handler =
116116
new TextFileBasedIdentityHandler(userMappingFile.getPath() + ".test", groupMappingFile.getPath());
117-
intercept(FileNotFoundException.class, "FileNotFoundException",
117+
intercept(NoSuchFileException.class, "NoSuchFileException",
118118
() -> handler.lookupForLocalUserIdentity(testUserDataLine3.split(":")[0]));
119119
}
120120

@@ -143,7 +143,7 @@ public void testLookupForGroup() throws IOException {
143143
public void testLookupForGroupFileNotFound() throws Exception {
144144
TextFileBasedIdentityHandler handler =
145145
new TextFileBasedIdentityHandler(userMappingFile.getPath(), groupMappingFile.getPath() + ".test");
146-
intercept(FileNotFoundException.class, "FileNotFoundException",
146+
intercept(NoSuchFileException.class, "NoSuchFileException",
147147
() -> handler.lookupForLocalGroupIdentity(testGroupDataLine2.split(":")[0]));
148148
}
149149
}

0 commit comments

Comments
 (0)