@Test public void job_not_found_throws_pds_not_found_exception() { expected.expect(PDSNotFoundException.class); expected.expectMessage("Given job does not exist"); UUID notExistingJobUUID = UUID.randomUUID(); serviceToTest.getJobStatus(notExistingJobUUID); }
@UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) public PDSJobStatus getJobStatus(UUID jobUUID) { notNull(jobUUID, "job uuid may not be null!"); PDSJob job = assertJobFound(jobUUID,repository); return new PDSJobStatus(job); }
PDSGetJobStatusService { @UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) public PDSJobStatus getJobStatus(UUID jobUUID) { notNull(jobUUID, "job uuid may not be null!"); PDSJob job = assertJobFound(jobUUID,repository); return new PDSJobStatus(job); } }
PDSGetJobStatusService { @UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) public PDSJobStatus getJobStatus(UUID jobUUID) { notNull(jobUUID, "job uuid may not be null!"); PDSJob job = assertJobFound(jobUUID,repository); return new PDSJobStatus(job); }  }
PDSGetJobStatusService { @UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) public PDSJobStatus getJobStatus(UUID jobUUID) { notNull(jobUUID, "job uuid may not be null!"); PDSJob job = assertJobFound(jobUUID,repository); return new PDSJobStatus(job); }  @UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) PDSJobStatus getJobStatus(UUID jobUUID); }
PDSGetJobStatusService { @UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) public PDSJobStatus getJobStatus(UUID jobUUID) { notNull(jobUUID, "job uuid may not be null!"); PDSJob job = assertJobFound(jobUUID,repository); return new PDSJobStatus(job); }  @UseCaseUserFetchesJobStatus(@PDSStep(name="service call",description = "returns job status",number=2)) PDSJobStatus getJobStatus(UUID jobUUID);  }