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