Improved handling when TaskListener is null (#4201)

This commit is contained in:
Anders Hammar authored and Oleg Nenashev committed 2019-09-20 09:35:17 +02:00
1 parent 7aa09f4674
commit 5c10c6c055
2 files changed
+8 -11

No files matched your search

+1 -2
View File
@@ -664,9 +664,8 @@ public class FilePathTest {
when(con2.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK);
when(con2.getInputStream()).thenReturn(someZippedContent());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
String message = "going ahead";
assertTrue(d.installIfNecessaryFrom(url, new StreamTaskListener(baos), message));
assertTrue(d.installIfNecessaryFrom(url, null, message));
}
private URL someUrlToZipFile(final URLConnection con) throws IOException {