|
|
|
@ -31,6 +31,8 @@ public class DownloadUtilsTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testAliyunDownload() throws IOException {
|
|
|
|
|
// fix travis-ci failed problem
|
|
|
|
|
if (TimeUnit.MILLISECONDS.toHours(TimeZone.getDefault().getOffset(System.currentTimeMillis())) == 8) {
|
|
|
|
|
String version = "3.3.7";
|
|
|
|
|
File folder = rootFolder.newFolder();
|
|
|
|
|
System.err.println(folder.getAbsolutePath());
|
|
|
|
@ -39,6 +41,7 @@ public class DownloadUtilsTest {
|
|
|
|
|
File as = new File(folder, version + File.separator + "arthas" + File.separator + "as.sh");
|
|
|
|
|
Assert.assertTrue(as.exists());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testCenterDownload() throws IOException {
|
|
|
|
|