如何编写测试用例
@GetMapping(“ / batchs / {id}”) public可选的getBatch(@PathVariable String id)引发ParseException {
System.out.println(" the id from postman is "+id);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date date= formatter.parse(id);
System.out.println(date);
return batchService.getBatch(date);