fix testcase. #1025

This commit is contained in:
hengyunabc 2020-02-14 03:44:46 +08:00
parent 3da99d5ba5
commit 4e771e2a7d

View File

@ -32,10 +32,7 @@ public class DownloadUtilsTest {
@Test
public void testReadMavenMetaData() throws IOException {
String url = "http://repo1.maven.org/maven2/com/taobao/arthas/arthas-packaging/maven-metadata.xml";
Assert.assertEquals(IOUtils.toString(new URL(url).openStream()), readMavenMetaData("center", true));
Assert.assertNull(readMavenMetaData("", false));
Assert.assertNull(readMavenMetaData("https/", false));
String url = "https://repo1.maven.org/maven2/com/taobao/arthas/arthas-packaging/maven-metadata.xml";
Assert.assertEquals(IOUtils.toString(new URL(url).openStream()), readMavenMetaData("center", false));
}
}