mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-29 18:58:37 +08:00
fix testcase. #1025
This commit is contained in:
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…
Reference in New Issue
Block a user