minor fixes in test
@@ -11,8 +11,8 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
+import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.http.MediaType;
-import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
@@ -25,10 +25,9 @@ import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.patch;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
-import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
-@ExtendWith(SpringExtension.class)
+@ExtendWith(MockitoExtension.class)
public class HabitStatisticControllerTest {
private static final String habitStatisticLink = "/habit/statistic/";
private MockMvc mockMvc;
@@ -42,7 +41,6 @@ public class HabitStatisticControllerTest {
@BeforeEach
void setup() {
this.mockMvc = MockMvcBuilders.standaloneSetup(habitStatisticController)
- .alwaysDo(print())
.build();
}
