@Test public void jobs() throws Exception { mockMvc.perform(get("/jobs")) .andDo(print()) .andExpect(status().isOk()) .andExpect(jsonPath("$.*", hasSize(2))); }
@Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") public JobResource get(@PathVariable String jobName) { return new JobResource(jobService.job(jobName)); }
JobController { @Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") public JobResource get(@PathVariable String jobName) { return new JobResource(jobService.job(jobName)); } }
JobController { @Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") public JobResource get(@PathVariable String jobName) { return new JobResource(jobService.job(jobName)); }  }
JobController { @Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") public JobResource get(@PathVariable String jobName) { return new JobResource(jobService.job(jobName)); }  @Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") JobResource get(@PathVariable String jobName); @Operation(summary = "Get all Spring Batch jobs") @GetMapping CollectionModel<JobResource> all(); }
JobController { @Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") public JobResource get(@PathVariable String jobName) { return new JobResource(jobService.job(jobName)); }  @Operation(summary = "Get a Spring Batch job by name") @GetMapping("/{jobName}") JobResource get(@PathVariable String jobName); @Operation(summary = "Get all Spring Batch jobs") @GetMapping CollectionModel<JobResource> all();  }