From ef178342899376fcbf0c8b66cdf14d277cfa9899 Mon Sep 17 00:00:00 2001 From: steam Date: Fri, 28 Feb 2020 14:27:14 +0100 Subject: [PATCH] make FeaturesControllerTest less verbose --- .../click/poweronoff/satellite/api/FeaturesControllerTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/click/poweronoff/satellite/api/FeaturesControllerTest.java b/src/test/java/click/poweronoff/satellite/api/FeaturesControllerTest.java index 8d89666..02489f9 100644 --- a/src/test/java/click/poweronoff/satellite/api/FeaturesControllerTest.java +++ b/src/test/java/click/poweronoff/satellite/api/FeaturesControllerTest.java @@ -17,7 +17,6 @@ import static org.hamcrest.Matchers.is; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @@ -34,7 +33,7 @@ public class FeaturesControllerTest { @Test public void getFeaturesShouldReturnDefaultMessage() throws Exception { when(dataService.getAllFeatures()).thenReturn(Optional.of(List.of(createTestFeature()))); - this.mockMvc.perform(get("/features")).andDo(print()) + this.mockMvc.perform(get("/features")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON)) .andExpect(jsonPath("$[0].id").exists())