diff --git a/commons/src/test/java/com/ozonehis/eip/utils/ShutdownHandlerTest.java b/commons/src/test/java/com/ozonehis/eip/utils/ShutdownHandlerTest.java index bc9f2ce..5db05d8 100644 --- a/commons/src/test/java/com/ozonehis/eip/utils/ShutdownHandlerTest.java +++ b/commons/src/test/java/com/ozonehis/eip/utils/ShutdownHandlerTest.java @@ -7,9 +7,11 @@ */ package com.ozonehis.eip.utils; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; -import org.junit.jupiter.api.*; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import org.mockito.Mockito; import org.slf4j.Logger; import org.springframework.context.ApplicationContext; @@ -26,7 +28,7 @@ public void setUp() { shutdownHandler = new ShutdownHandler(); applicationContext = mock(ConfigurableApplicationContext.class); shutdownHandler.setApplicationContext(applicationContext); - logger = Mockito.mock(Logger.class); + logger = mock(Logger.class); ShutdownHandler.LOGGER = logger; }