@Test public void random_value_contained_in_build_params() { UUID uuid = UUID.randomUUID(); JobParameters params = builderToTest.buildParams(uuid); assertNotNull(params.getString("random")); }
public JobParameters buildParams(UUID sechubJobUUID) { Assert.notNull(sechubJobUUID, "sechub job UUID may not be null!"); JobParametersBuilder builder = new JobParametersBuilder(); builder.addString(BATCHPARAM_SECHUB_UUID, sechubJobUUID.toString()); builder.addString("random", UUID.randomUUID().toString()); JobParameters jobParameters = builder.toJobParameters(); return jobParameters; }
SecHubBatchJobParameterBuilder { public JobParameters buildParams(UUID sechubJobUUID) { Assert.notNull(sechubJobUUID, "sechub job UUID may not be null!"); JobParametersBuilder builder = new JobParametersBuilder(); builder.addString(BATCHPARAM_SECHUB_UUID, sechubJobUUID.toString()); builder.addString("random", UUID.randomUUID().toString()); JobParameters jobParameters = builder.toJobParameters(); return jobParameters; } }
SecHubBatchJobParameterBuilder { public JobParameters buildParams(UUID sechubJobUUID) { Assert.notNull(sechubJobUUID, "sechub job UUID may not be null!"); JobParametersBuilder builder = new JobParametersBuilder(); builder.addString(BATCHPARAM_SECHUB_UUID, sechubJobUUID.toString()); builder.addString("random", UUID.randomUUID().toString()); JobParameters jobParameters = builder.toJobParameters(); return jobParameters; }  }
SecHubBatchJobParameterBuilder { public JobParameters buildParams(UUID sechubJobUUID) { Assert.notNull(sechubJobUUID, "sechub job UUID may not be null!"); JobParametersBuilder builder = new JobParametersBuilder(); builder.addString(BATCHPARAM_SECHUB_UUID, sechubJobUUID.toString()); builder.addString("random", UUID.randomUUID().toString()); JobParameters jobParameters = builder.toJobParameters(); return jobParameters; }  JobParameters buildParams(UUID sechubJobUUID); }
SecHubBatchJobParameterBuilder { public JobParameters buildParams(UUID sechubJobUUID) { Assert.notNull(sechubJobUUID, "sechub job UUID may not be null!"); JobParametersBuilder builder = new JobParametersBuilder(); builder.addString(BATCHPARAM_SECHUB_UUID, sechubJobUUID.toString()); builder.addString("random", UUID.randomUUID().toString()); JobParameters jobParameters = builder.toJobParameters(); return jobParameters; }  JobParameters buildParams(UUID sechubJobUUID);  }