@Bean public Step masterStep() { return this.masterStepBuilderFactory.get("masterStep") .partitioner("workerStep", new BasicPartitioner()) .gridSize(GRID_SIZE) .outputChannel(requests()) .inputChannel(replies()) .build(); }
@Test public void inputChannelMustNotBeNull() { // given this.expectedException.expect(IllegalArgumentException.class); this.expectedException.expectMessage("inputChannel must not be null"); // when new RemotePartitioningMasterStepBuilder("step").inputChannel(null); // then // expected exception }