@@ -0,0 +1,1749 @@
+package tk.hishopapp.home;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0Aimport org.springframework.web.context.WebApplicationContext;%0Aimport tk.hishopapp.StartApplication;%0A%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0A%0A/**%0A * Created by Nikita Bakaev, ya@nbakaev.ru on 2/22/2016.%0A * All Rights Reserved%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = StartApplication.class)%0A@WebAppConfiguration%0A@ActiveProfiles(%22development%22)%0Apublic class RootControllerTest %7B%0A%0A    private MockMvc mockMvc;%0A%0A    @Autowired%0A    private WebApplicationContext webApplicationContext;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();%0A    %7D%0A%0A    @Test%0A    public void testIndex() throws Exception %7B%0A        mockMvc.perform(get(%22/api/v1/%22).contentType(MediaType.APPLICATION_JSON))%0A                .andExpect(status().isOk()).andExpect(content().contentType(%22application/json;charset=UTF-8%22));%0A    %7D%0A%7D

add home test