mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 04:52:20 +00:00
Improved handling when TaskListener is null (#4201)
This commit is contained in:
1 parent
7aa09f4674
commit
5c10c6c055
2 files changed
+8
-11
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user