package hello;

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

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.http.MediaType;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Hello.class)
@AutoConfigureMockMvc
@DirtiesContext
@ActiveProfiles("test")
public class HomePageTest {

	@Autowired
	private MockMvc mvc;

	@Test
	public void getRoot() throws Exception {
		mvc.perform(MockMvcRequestBuilders.get("/").accept(MediaType.TEXT_HTML)).andExpect(status().isOk());
	}

	@Test
	public void getApiRoot() throws Exception {
		mvc.perform(MockMvcRequestBuilders.get("/api").accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk());
	}
}

@@ -115,16 +115,28 @@
 g.junit.
+jupiter.api.
 Test;%0Aim
@@ -154,18 +154,36 @@
 nit.
-runner.Run
+jupiter.api.extension.Extend
 With
@@ -600,22 +600,32 @@
 unit
-4.SpringRunner
+.jupiter.SpringExtension
 ;%0Aim
@@ -753,19 +753,22 @@
 ders;%0A%0A@
-Run
+Extend
 With(Spr
@@ -774,14 +774,17 @@
 ring
-Runner
+Extension
 .cla

Fix errors in HomePageTest class.