diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/http/TestHttpFileSystem.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/http/TestHttpFileSystem.java index 51692ede22b..4c6cf823a76 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/http/TestHttpFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/http/TestHttpFileSystem.java @@ -25,8 +25,9 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IOUtils; +import org.junit.Before; import org.junit.Test; -import org.junit.jupiter.api.BeforeEach; + import java.io.IOException; import java.io.InputStream; @@ -44,7 +45,7 @@ import static org.junit.Assert.assertEquals; public class TestHttpFileSystem { private final Configuration conf = new Configuration(false); - @BeforeEach + @Before public void setUp() { conf.set("fs.http.impl", HttpFileSystem.class.getCanonicalName()); }