Skip to content

Commit

Permalink
HADOOP-18917. Addendum: Upgrade to commons-io 2.14.0 (#6152). Contrib…
Browse files Browse the repository at this point in the history
…uted by PJ Fanning

Co-authored-by: Ayush Saxena <ayushsaxena@apache.org>
  • Loading branch information
pjfanning and ayushtkn committed Oct 6, 2023
1 parent 2bf5a9e commit 57100bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
package org.apache.hadoop.fs.azurebfs.services;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.NoSuchFileException;

import org.junit.Assert;
import org.junit.BeforeClass;
Expand Down Expand Up @@ -114,7 +114,7 @@ public void testLookupForUser() throws IOException {
public void testLookupForUserFileNotFound() throws Exception {
TextFileBasedIdentityHandler handler =
new TextFileBasedIdentityHandler(userMappingFile.getPath() + ".test", groupMappingFile.getPath());
intercept(FileNotFoundException.class, "FileNotFoundException",
intercept(NoSuchFileException.class, "NoSuchFileException",
() -> handler.lookupForLocalUserIdentity(testUserDataLine3.split(":")[0]));
}

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

0 comments on commit 57100bb

Please sign in to comment.