RejudgeController { @GetMapping(value = "admin/rejudge", params = "problem_id") public ResponseEntity<?> rejudgeProblem(@RequestParam("problem_id") long problemId) { rejudgeService.byProblemId(problemId); return ResponseEntity.status(HttpStatus.ACCEPTED).body(Collections.singletonMap("message", "重新评测请求已经受理")); }  @GetMapping(value = "admin/rejudge", params = "solution_id") CompletableFuture<?> rejudgeSolution(
            @RequestParam("solution_id") long submissionId); @GetMapping(value = "admin/rejudge", params = "problem_id") ResponseEntity<?> rejudgeProblem(@RequestParam("problem_id") long problemId);  }
@Test public void testRejudgeProblem() throws Exception { log.info("rejudgeProblem"); long problemId = 0; MvcResult result = mvc.perform(get("/admin/rejudge") .accept(MediaType.TEXT_HTML, MediaType.APPLICATION_JSON) .param("problem_id", Long.toString(problemId))) .andExpect(status().isAccepted()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn(); }