mirror of https://github.com/shred/acme4j
Fix unit test failures if logging with debug level
parent
dbb33118d1
commit
acacaebb52
|
@ -412,6 +412,7 @@ public class DefaultConnectionTest {
|
||||||
verify(mockUrlConnection).setDoOutput(false);
|
verify(mockUrlConnection).setDoOutput(false);
|
||||||
verify(mockUrlConnection).connect();
|
verify(mockUrlConnection).connect();
|
||||||
verify(mockUrlConnection).getResponseCode();
|
verify(mockUrlConnection).getResponseCode();
|
||||||
|
verify(mockUrlConnection, atLeast(0)).getHeaderFields();
|
||||||
verifyNoMoreInteractions(mockUrlConnection);
|
verifyNoMoreInteractions(mockUrlConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,6 +457,7 @@ public class DefaultConnectionTest {
|
||||||
verify(mockUrlConnection).setFixedLengthStreamingMode(outputStream.toByteArray().length);
|
verify(mockUrlConnection).setFixedLengthStreamingMode(outputStream.toByteArray().length);
|
||||||
verify(mockUrlConnection).getOutputStream();
|
verify(mockUrlConnection).getOutputStream();
|
||||||
verify(mockUrlConnection).getResponseCode();
|
verify(mockUrlConnection).getResponseCode();
|
||||||
|
verify(mockUrlConnection, atLeast(0)).getHeaderFields();
|
||||||
verifyNoMoreInteractions(mockUrlConnection);
|
verifyNoMoreInteractions(mockUrlConnection);
|
||||||
|
|
||||||
String serialized = new String(outputStream.toByteArray(), "utf-8");
|
String serialized = new String(outputStream.toByteArray(), "utf-8");
|
||||||
|
|
Loading…
Reference in New Issue