@@ -0,0 +1,1703 @@
+package com.defimak47.grooshella.web;%0A%0Aimport static org.junit.Assert.fail;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.ResultActions;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0Aimport org.springframework.web.context.WebApplicationContext;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0Apublic class HomeControllerTest %7B%0A%0A    %0A    private MockMvc mockMvc;%0A%0A    @Autowired%0A    private ApplicationContext applicationContext;%0A%0A    @Before%0A    public void setUp () throws Exception %7B%0A        mockMvc = MockMvcBuilders.webAppContextSetup((WebApplicationContext) applicationContext).build();%0A    %7D%0A%0A    @Test%0A    public void testPage () %7B%0A        ResultActions result = null;%0A        _given: %7B%0A        %7D%0A%0A        _then: try %7B%0A            result = mockMvc.perform(get(%22/index.html%22));%0A        %7D catch (Exception e) %7B%0A            fail(e.getMessage());%0A        %7D%0A%0A        _expect: try %7B%0A            result.andExpect(status().isOk()).andExpect(view().name(%22index%22));%0A        %7D catch (Exception e) %7B%0A            fail(e.getMessage());%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Test for home controller.