HADOOP-17899. Avoid using implicit dependency on junit-jupiter-api. (#3399)

(cherry picked from commit ce7a5bfbd3)
This commit is contained in:
Masatake Iwasaki 2021-09-08 18:10:50 +09:00
parent 5926ccde77
commit 76393e1359
1 changed files with 3 additions and 2 deletions

View File

@ -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());
}