@@ -0,0 +1,1969 @@
+package pl.bajtas.whoshouldcall.controller;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0Aimport org.springframework.web.context.request.RequestAttributes;%0Aimport org.springframework.web.context.request.RequestContextHolder;%0Aimport pl.bajtas.whoshouldcall.config.AppConfig;%0Aimport pl.bajtas.whoshouldcall.config.PersistanceConfig;%0A%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.forwardedUrl;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;%0A%0A/**%0A * Created by Bajtas on 16.05.2017.%0A */%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0A@ContextConfiguration(classes = %7BPersistanceConfig.class, AppConfig.class%7D)%0Apublic class HomeControllerTest %7B%0A    private MockMvc mockMvc;%0A%0A    @InjectMocks%0A    private HomeController homeController;%0A    @Mock%0A    private RequestAttributes requestAttributes;%0A%0A    @Before%0A    public void setup() %7B%0A        MockitoAnnotations.initMocks(this);%0A%0A        RequestContextHolder.setRequestAttributes(requestAttributes);%0A        this.mockMvc = MockMvcBuilders.standaloneSetup(homeController).build();%0A    %7D%0A%0A    @Test%0A    public void renderHomePageViewTest() throws Exception %7B%0A        mockMvc.perform(get(%22/%22))%0A                .andExpect(status().isOk())%0A                .andExpect(view().name(%22index%22))%0A                .andExpect(forwardedUrl(%22index%22));%0A    %7D%0A%7D%0A

Add seed of HomeControllerTest.