fix testcase. #1025

pull/1034/head
hengyunabc 5 years ago
parent 3da99d5ba5
commit 4e771e2a7d

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

Loading…
Cancel
Save