Skip to content

Commit

Permalink
fix Anonymous classes should not contain unused non-overridden methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yurake committed Feb 15, 2023
1 parent e449b6a commit a686fd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit a686fd2

Please sign in to comment.