ShowCompileInfoController { @GetMapping("showcompileinfo") @Secured("ROLE_USER") public String showCompileInfo(@RequestParam("solution_id") long submissionId, Model model, Authentication authentication) { String compileInfo = submissionService.findCompileInfo(submissionId); model.addAttribute("compileInfo", compileInfo); return "submissions/compile_info"; }  @GetMapping("showcompileinfo") @Secured("ROLE_USER") String showCompileInfo(@RequestParam("solution_id") long submissionId,
            Model model, Authentication authentication);  }
@Test public void testShowCompileInfo() throws Exception { log.info("showCompileInfo"); Submission submission = mockDataService.submission(false); MvcResult result = mvc.perform(get("/showcompileinfo").with(user(submission.getUser())) .param("solution_id", Long.toString(submission.getId()))) .andExpect(status().isOk()) .andExpect(view().name("submissions/compile_info")) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }