One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
@Controller | |
@RequestMapping("/") | |
public class IndexController { | |
@GetMapping("/") | |
public String index(){ | |
return "index"; | |
} | |
} |
@WebMvcTest(IndexController.class) | |
@AutoConfigureMockMvc | |
class IndexControllerTest { | |
@Autowired | |
private MockMvc mockMvc; | |
@Test | |
@DisplayName("check if index page is rendered.") | |
public void testIndexPage() throws Exception { |
dependencies { | |
implementation 'org.springframework.boot:spring-boot-starter-mustache' | |
implementation 'org.springframework.boot:spring-boot-starter-web' | |
implementation 'org.springframework.boot:spring-boot-starter-webflux' | |
compileOnly 'org.projectlombok:lombok' | |
developmentOnly 'org.springframework.boot:spring-boot-devtools' | |
annotationProcessor 'org.projectlombok:lombok' | |
testImplementation 'org.springframework.boot:spring-boot-starter-test' | |
testImplementation 'io.projectreactor:reactor-test' |