@Test public void successfulJobExecutionsPerJobAndLimited() throws Exception { mockMvc.perform(get("/jobExecutions?jobName=j2&exitCode=COMPLETED&limitPerJob=1")) .andExpect(status().isOk()) .andExpect(jsonPath("$..jobExecution", hasSize(1))); }
@Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") public JobExecutionResource get(@PathVariable long id) { return new JobExecutionResource(jobExecutionService.jobExecution(id)); }
JobExecutionController { @Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") public JobExecutionResource get(@PathVariable long id) { return new JobExecutionResource(jobExecutionService.jobExecution(id)); } }
JobExecutionController { @Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") public JobExecutionResource get(@PathVariable long id) { return new JobExecutionResource(jobExecutionService.jobExecution(id)); }  }
JobExecutionController { @Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") public JobExecutionResource get(@PathVariable long id) { return new JobExecutionResource(jobExecutionService.jobExecution(id)); }  @Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") JobExecutionResource get(@PathVariable long id); @Operation(summary = "Find Spring batch job executions by job name and exit code") @GetMapping CollectionModel<JobExecutionResource> all(
            @RequestParam(value = "jobName", required = false) String jobName,
            @RequestParam(value = "exitCode", required = false) String exitCode,
            @RequestParam(value = "limitPerJob", defaultValue = "3") Integer limitPerJob); @Operation(summary = "Start a Spring Batch job execution") @PostMapping ResponseEntity<JobExecutionResource> put(@RequestBody JobConfig jobConfig); }
JobExecutionController { @Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") public JobExecutionResource get(@PathVariable long id) { return new JobExecutionResource(jobExecutionService.jobExecution(id)); }  @Operation(summary = "Get all Spring batch job execution by ID") @GetMapping("/{id}") JobExecutionResource get(@PathVariable long id); @Operation(summary = "Find Spring batch job executions by job name and exit code") @GetMapping CollectionModel<JobExecutionResource> all(
            @RequestParam(value = "jobName", required = false) String jobName,
            @RequestParam(value = "exitCode", required = false) String exitCode,
            @RequestParam(value = "limitPerJob", defaultValue = "3") Integer limitPerJob); @Operation(summary = "Start a Spring Batch job execution") @PostMapping ResponseEntity<JobExecutionResource> put(@RequestBody JobConfig jobConfig);  }