diff options
Diffstat (limited to 'src/test/java/org/berzerkula/builddb/controllers/BuilddbTestHomeController.java')
-rw-r--r-- | src/test/java/org/berzerkula/builddb/controllers/BuilddbTestHomeController.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/java/org/berzerkula/builddb/controllers/BuilddbTestHomeController.java b/src/test/java/org/berzerkula/builddb/controllers/BuilddbTestHomeController.java deleted file mode 100644 index 94ae655..0000000 --- a/src/test/java/org/berzerkula/builddb/controllers/BuilddbTestHomeController.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.berzerkula.builddb.controllers; - -import org.berzerkula.builddb.config.SecurityConfig; -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.context.annotation.Import; -import org.springframework.test.web.servlet.MockMvc; - -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.status; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view; - -@Import(SecurityConfig.class) -@AutoConfigureMockMvc -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) - -public class BuilddbTestHomeController { - - @Autowired - private MockMvc mockMvc; - - @Test - void shouldReturnContactOk() throws Exception { - mockMvc.perform(get("/contact")) - .andExpect(status().isOk()) - .andExpect(view().name("contact")) - .andDo(print()); - } - -} |