@Bean public Step workerStep() { return this.workerStepBuilderFactory.get("workerStep") .inputChannel(requests()) .tasklet(tasklet(null)) .build(); }
@Bean public Step workerStep() { return this.workerStepBuilderFactory.get("workerStep") .inputChannel(requests()) .outputChannel(replies()) .tasklet(tasklet(null)) .build(); }
@Test public void inputChannelMustNotBeNull() { // given this.expectedException.expect(IllegalArgumentException.class); this.expectedException.expectMessage("inputChannel must not be null"); // when new RemotePartitioningWorkerStepBuilder("step").inputChannel(null); // then // expected exception }
@Test public void testMandatoryJobExplorer() { // given DirectChannel inputChannel = new DirectChannel(); this.expectedException.expect(IllegalArgumentException.class); this.expectedException.expectMessage("A JobExplorer must be provided"); // when new RemotePartitioningWorkerStepBuilder("step") .inputChannel(inputChannel) .tasklet(this.tasklet); // then // expected exception }