From c8878271a8e8c109a2f397f1478418adfa0f3dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Hern=C3=A1n=20Carle?= Date: Tue, 1 Aug 2023 13:43:28 +0200 Subject: [PATCH] fix test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pablo HernĂ¡n Carle --- .../gateway/security/service/zosmf/ZosmfServiceTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gateway-service/src/test/java/org/zowe/apiml/gateway/security/service/zosmf/ZosmfServiceTest.java b/gateway-service/src/test/java/org/zowe/apiml/gateway/security/service/zosmf/ZosmfServiceTest.java index 5367619c42..aab9a9a24b 100644 --- a/gateway-service/src/test/java/org/zowe/apiml/gateway/security/service/zosmf/ZosmfServiceTest.java +++ b/gateway-service/src/test/java/org/zowe/apiml/gateway/security/service/zosmf/ZosmfServiceTest.java @@ -849,11 +849,7 @@ void givenConnectionIssue_thenFalseAndException() { )).thenThrow(new RestClientException("resource access exception", new ConnectException("connection exception"))); assertThat(underTest.isAccessible(), is(false)); - verify(mockedAppender, atLeast(1)).doAppend(loggingCaptor.capture()); - String values = loggedValues(); - assertTrue(values.length() > 0); - assertTrue(values.contains("Could not connecto to z/OSMF. Please verify z/OSMF instance is up and running"), values); - assertTrue(values.contains("connection exception"), values); + verify(apimlLogger, times(1)).log("org.zowe.apiml.security.auth.zosmf.connectError", "resource access exception; nested exception is java.net.ConnectException: connection exception"); } @Test