From 456d537e02d59410453d6137a570bcd33bdd3374 Mon Sep 17 00:00:00 2001 From: Stephan Reichhelm Date: Tue, 5 Nov 2024 10:40:51 +0100 Subject: [PATCH] * fix mock setup to fix test --- .../org/deegree/services/controller/OGCFrontControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deegree-services/deegree-services-commons/src/test/java/org/deegree/services/controller/OGCFrontControllerTest.java b/deegree-services/deegree-services-commons/src/test/java/org/deegree/services/controller/OGCFrontControllerTest.java index 4b744d81d2..7952934395 100644 --- a/deegree-services/deegree-services-commons/src/test/java/org/deegree/services/controller/OGCFrontControllerTest.java +++ b/deegree-services/deegree-services-commons/src/test/java/org/deegree/services/controller/OGCFrontControllerTest.java @@ -138,7 +138,7 @@ private void prepareOGCFrontController(RequestContext mockedContext) throws Exce .thenCallRealMethod(); PowerMockito.when(OGCFrontController.class, "parseHost", anyString()).thenCallRealMethod(); PowerMockito.when(OGCFrontController.class, "parseProtocol", anyString(), any(URL.class)).thenCallRealMethod(); - PowerMockito.when(OGCFrontController.class, "parsePort", anyString(), anyString(), any(URL.class)) + PowerMockito.when(OGCFrontController.class, "parsePort", any(), anyString(), any(URL.class)) .thenCallRealMethod(); PowerMockito.when(OGCFrontController.getContext()).thenReturn(mockedContext); }