|
|
@ -1,7 +1,7 @@
|
|
|
|
From 852a31061e2d46cc4bc1b5cfa388ed023de5095d Mon Sep 17 00:00:00 2001
|
|
|
|
From e089dcee616e2fd37897e1a95492f581d1f6c939 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mat Booth <mat.booth@redhat.com>
|
|
|
|
From: Mat Booth <mat.booth@redhat.com>
|
|
|
|
Date: Fri, 7 Dec 2018 18:01:27 +0000
|
|
|
|
Date: Fri, 7 Dec 2018 18:01:27 +0000
|
|
|
|
Subject: [PATCH 2/2] Port to mockito 2
|
|
|
|
Subject: [PATCH 2/3] Port to mockito 2
|
|
|
|
|
|
|
|
|
|
|
|
Gets it building, but disables tests that are caused by change in
|
|
|
|
Gets it building, but disables tests that are caused by change in
|
|
|
|
behaviour of mockito that I didn't know how to fix
|
|
|
|
behaviour of mockito that I didn't know how to fix
|
|
|
@ -14,7 +14,7 @@ behaviour of mockito that I didn't know how to fix
|
|
|
|
5 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
5 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java
|
|
|
|
index 282e11b..0411caf 100644
|
|
|
|
index 67f058ded..4a8cd1ab0 100644
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestAbortHandling.java
|
|
|
|
@@ -288,6 +288,7 @@ public class TestAbortHandling extends LocalServerTestBase {
|
|
|
|
@@ -288,6 +288,7 @@ public class TestAbortHandling extends LocalServerTestBase {
|
|
|
@ -26,7 +26,7 @@ index 282e11b..0411caf 100644
|
|
|
|
final HttpClientConnection conn = Mockito.mock(HttpClientConnection.class);
|
|
|
|
final HttpClientConnection conn = Mockito.mock(HttpClientConnection.class);
|
|
|
|
final ConnectionRequest connrequest = Mockito.mock(ConnectionRequest.class);
|
|
|
|
final ConnectionRequest connrequest = Mockito.mock(ConnectionRequest.class);
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java
|
|
|
|
index f638031..31799cb 100644
|
|
|
|
index f6380313e..31799cbc1 100644
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/client/integration/TestSPNegoScheme.java
|
|
|
|
@@ -150,6 +150,7 @@ public class TestSPNegoScheme extends LocalServerTestBase {
|
|
|
|
@@ -150,6 +150,7 @@ public class TestSPNegoScheme extends LocalServerTestBase {
|
|
|
@ -46,7 +46,7 @@ index f638031..31799cb 100644
|
|
|
|
this.serverBootstrap.registerHandler("*", new PleaseNegotiateService());
|
|
|
|
this.serverBootstrap.registerHandler("*", new PleaseNegotiateService());
|
|
|
|
final HttpHost target = start();
|
|
|
|
final HttpHost target = start();
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java
|
|
|
|
index 2261da8..e922155 100644
|
|
|
|
index 7de9921e2..07b6bfccc 100644
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java
|
|
|
|
@@ -402,6 +402,7 @@ public class TestMainClientExec {
|
|
|
|
@@ -402,6 +402,7 @@ public class TestMainClientExec {
|
|
|
@ -65,7 +65,7 @@ index 2261da8..e922155 100644
|
|
|
|
\ No newline at end of file
|
|
|
|
\ No newline at end of file
|
|
|
|
+}
|
|
|
|
+}
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java
|
|
|
|
index 9a96ba6..41eb023 100644
|
|
|
|
index 9a96ba686..41eb0236f 100644
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMinimalClientExec.java
|
|
|
|
@@ -256,6 +256,7 @@ public class TestMinimalClientExec {
|
|
|
|
@@ -256,6 +256,7 @@ public class TestMinimalClientExec {
|
|
|
@ -77,7 +77,7 @@ index 9a96ba6..41eb023 100644
|
|
|
|
final HttpRoute route = new HttpRoute(target);
|
|
|
|
final HttpRoute route = new HttpRoute(target);
|
|
|
|
final HttpClientContext context = new HttpClientContext();
|
|
|
|
final HttpClientContext context = new HttpClientContext();
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java
|
|
|
|
diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java
|
|
|
|
index 5621a3f..23506dc 100644
|
|
|
|
index a5d0591da..78b1af440 100644
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java
|
|
|
|
--- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java
|
|
|
|
+++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestRedirectExec.java
|
|
|
|
@@ -349,7 +349,7 @@ public class TestRedirectExec {
|
|
|
|
@@ -349,7 +349,7 @@ public class TestRedirectExec {
|
|
|
@ -100,5 +100,5 @@ index 5621a3f..23506dc 100644
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
--
|
|
|
|
2.19.1
|
|
|
|
2.31.1
|
|
|
|
|
|
|
|
|
|
|
|