package com.drumonii.loltrollbuild.controller;

import com.drumonii.loltrollbuild.BaseSpringTestRunner;
import org.junit.Test;

import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

public class BadControllerTest extends BaseSpringTestRunner {

	@Test
	public void throws400() throws Exception {
		mockMvc.perform(get("/400"))
				.andExpect(status().isBadRequest());
	}

	@Test
	public void throws403() throws Exception {
		mockMvc.perform(get("/403"))
				.andExpect(status().isForbidden());
	}

	@Test
	public void throws404() throws Exception {
		mockMvc.perform(get("/404"))
				.andExpect(status().isNotFound());
	}

	@Test
	public void throws500() throws Exception {
		mockMvc.perform(get("/500"))
				.andExpect(status().isInternalServerError());
	}

}
@@ -52,318 +52,977 @@
 ort 
-com.drumonii.loltrollbuild.BaseSpringTestRunner;%0Aimport org.junit.Test;%0A%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0A%0Apublic class BadControllerTest extends BaseSpringTestRunner %7B
+org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;%0Aimport org.springframework.context.annotation.ComponentScan.Filter;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.web.bind.annotation.ControllerAdvice;%0A%0Aimport static com.drumonii.loltrollbuild.config.Profiles.TESTING;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0A%0A@RunWith(SpringRunner.class)%0A@WebMvcTest(value = BadController.class, excludeFilters = @Filter(ControllerAdvice.class), secure = false)%0A@ActiveProfiles(%7B TESTING %7D)%0Apublic class BadControllerTest %7B%0A%0A%09@Autowired%0A%09private MockMvc mockMvc;
 %0A%0A%09@

Convert BadControllerTest to @WebMvcTest