### Question:
ApiArticleController { @ApiOperation(value = "点赞", notes = "id") @PutMapping(value = "/like/{articleId}") public JsonData<Void> upVote(@PathVariable String articleId) { articleService.upVote(articleId); redisService.del(RedisConstant.REDIS_KEY_ARTICLE + articleId); return JsonData.success(); } ApiArticleController(ApiArticleService articleService, RedisService redisService); @ApiOperation(value = "查询集合", notes = "Article") @GetMapping JsonData<Object> findArticleByCondition(ArticleDto articleDto, String keyword, String sortType,
	                                               @PageableDefault(sort = "createAt", direction = DESC) Pageable pageable); @ApiOperation(value = "最热列表", notes = "最热列表") @GetMapping("/hot") JsonData<Object> findArticleHot(String sortType); @ApiOperation(value = "根据标签id查询文章", notes = "根据标签id查询文章") @GetMapping("/tag/{tagId}") JsonData<Page<ArticleDto>> findArticleByTagId(@PathVariable String tagId,
	                                                     @PageableDefault(sort = "create_at", direction = DESC) Pageable pageable); @GetMapping(value = "/{articleId}") JsonData<Object> findArticleByPrimaryKey(@PathVariable String articleId); @ApiOperation(value = "点赞", notes = "id") @PutMapping(value = "/like/{articleId}") JsonData<Void> upVote(@PathVariable String articleId); @ApiOperation(value = "取消点赞", notes = "id") @DeleteMapping(value = "/like/{articleId}") JsonData<Void> unUpVote(@PathVariable String articleId);  }### Answer:
@Test void testUpVote() { JsonData<Void> result = apiArticleController.upVote("articleId"); Assertions.assertEquals(new JsonData<Void>(true, 0, "message", any()), result); }