package org.victoryw;

import org.junit.Test;
import org.junit.runner.RunWith;
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.test.context.junit4.SpringRunner;
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.MockMvcResultMatchers.status;
/**
 * Created by victoryw on 12/16/16.
 */

@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureMockMvc
public class ConsumerMainTest {

    @Autowired
    private MockMvc mockMvc;

    @Test
    public  void shouldReturnHelloWorldWhenRequest() throws Exception {
        this.mockMvc.perform(get("/")).
                andExpect(status().isOk());
    }
}

package org.victoryw;

import org.junit.Test;
import org.junit.runner.RunWith;
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.test.context.junit4.SpringRunner;
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.MockMvcResultMatchers.status;
/**
 * Created by victoryw on 12/16/16.
 */

@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureMockMvc
public class ConsumerMainTest {

    @Autowired
    private MockMvc mockMvc;

    @Test
    public final void shouldReturnHelloWorldWhenRequest() throws Exception {
        this.mockMvc.perform(get("/")).
                andExpect(status().isOk());
    }
}

Revert "[victoryw] #n/a break the code style to check the GPA"