1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

Fix test about the contributions downloader

This commit is contained in:
Mattia Bertorello 2019-07-18 12:17:04 +02:00 committed by Martino Facchin
parent 1d21f0cca3
commit a492c1ac44
2 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,9 @@ public class GzippedJsonDownloaderTest {
@Test
public void testJsonDownload() throws Exception {
new GZippedJsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json"), new URL("http://downloads.arduino.cc/libraries/library_index.json.gz")).download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener());
new GZippedJsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json"),
new URL("http://downloads.arduino.cc/libraries/library_index.json.gz"))
.download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener(), true);
InputStream indexIn = new FileInputStream(tempFile);
ObjectMapper mapper = new ObjectMapper();

View File

@ -38,7 +38,8 @@ public class JsonDownloaderTest {
@Test
public void testJsonDownload() throws Exception {
new JsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json")).download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener());
new JsonDownloader(downloader, new URL("http://downloads.arduino.cc/libraries/library_index.json"))
.download(tempFile, new MultiStepProgress(1), "", new NoopProgressListener(), true);
InputStream indexIn = new FileInputStream(tempFile);
ObjectMapper mapper = new ObjectMapper();