From a686fd2471564aec756e45cd6513888b2fa4d65c Mon Sep 17 00:00:00 2001 From: yurak Date: Thu, 16 Feb 2023 00:36:49 +0900 Subject: [PATCH] fix Anonymous classes should not contain unused non-overridden methods #3049 --- .../tier/healthcheck/ReadinessHealthCheckHazelcastTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/healthcheck/ReadinessHealthCheckHazelcastTest.java b/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/healthcheck/ReadinessHealthCheckHazelcastTest.java index 3ddbb7c07..e8e4e86ad 100644 --- a/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/healthcheck/ReadinessHealthCheckHazelcastTest.java +++ b/application/jaxrs-hazelcast-quarkus/src/test/java/webapp/tier/healthcheck/ReadinessHealthCheckHazelcastTest.java @@ -10,7 +10,6 @@ import org.eclipse.microprofile.health.HealthCheckResponse.Status; import org.junit.jupiter.api.Test; -import org.mockito.Mockito; import io.quarkus.test.junit.QuarkusTest; import webapp.tier.service.HazelcastServiceStatus; @@ -27,6 +26,7 @@ void testCallDown() { @Test void testCallUp() throws IOException, TimeoutException { ReadinessHealthCheckHazelcast hc = new ReadinessHealthCheckHazelcast() { + @Override protected HazelcastServiceStatus createHazelcastStatus() { HazelcastServiceStatus mock = mock(HazelcastServiceStatus.class); when(mock.isActive()).thenReturn(true);