@Bean public DirectChannel requests() { return new DirectChannel(); }
@Bean public DirectChannel requests() { return new DirectChannel(); }
@Bean public DirectChannel replies() { return new DirectChannel(); }
@Bean public DirectChannel requests() { return new DirectChannel(); }
@Bean public DirectChannel replies() { return new DirectChannel(); }
@Bean public DirectChannel requests() { return new DirectChannel(); }
@Bean public DirectChannel requests() { return new DirectChannel(); }
@Bean public DirectChannel requests() { return new DirectChannel(); }
@Bean public DirectChannel replies() { return new DirectChannel(); }
@Bean public MessageChannel gatewayChannel() { return new DirectChannel(); }
@Bean public MessageChannel fromTcp() { return new DirectChannel(); }
@Test public void testIntegrationFlowCreation() { // given DirectChannel inputChannel = new DirectChannel(); DirectChannel outputChannel = new DirectChannel(); RemoteChunkingWorkerBuilder<String, String> builder = new RemoteChunkingWorkerBuilder<String, String>() .itemProcessor(this.itemProcessor) .itemWriter(this.itemWriter) .inputChannel(inputChannel) .outputChannel(outputChannel); // when IntegrationFlow integrationFlow = builder.build(); // then Assert.assertNotNull(integrationFlow); }
@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 }
@Test public void testMandatoryOutputChannel() { // given RemoteChunkingWorkerBuilder<String, String> builder = new RemoteChunkingWorkerBuilder<String, String>() .itemWriter(items -> { }) .inputChannel(new DirectChannel()); this.expectedException.expect(IllegalArgumentException.class); this.expectedException.expectMessage("An OutputChannel must be provided"); // when builder.build(); // then // expected exception }
@Test public void eitherOutputChannelOrMessagingTemplateMustBeProvided() { // given RemotePartitioningMasterStepBuilder builder = new RemotePartitioningMasterStepBuilder("step") .outputChannel(new DirectChannel()) .messagingTemplate(new MessagingTemplate()); this.expectedException.expect(IllegalStateException.class); this.expectedException.expectMessage("You must specify either an outputChannel or a messagingTemplate but not both."); // when Step step = builder.build(); // then // expected exception }
@Test public void eitherOutputChannelOrMessagingTemplateMustBeProvided() { // given RemoteChunkingMasterStepBuilder<String, String> builder = new RemoteChunkingMasterStepBuilder<String, String>("step") .inputChannel(this.inputChannel) .outputChannel(new DirectChannel()) .messagingTemplate(new MessagingTemplate()); this.expectedException.expect(IllegalStateException.class); this.expectedException.expectMessage("You must specify either an outputChannel or a messagingTemplate but not both."); // when TaskletStep step = builder.build(); // then // expected exception }
@Bean @BridgeFrom("skippedChannel6") @Profile("foo") public MessageChannel skippedChannel1() { return new DirectChannel(); }
@Bean @BridgeTo @IdempotentReceiver("idempotentReceiverInterceptor") public MessageChannel bridgeChannel() { return new DirectChannel(); }
DirectChannel outputChannel = new DirectChannel(); Partitioner partitioner = Mockito.mock(Partitioner.class); StepExecutionAggregator stepExecutionAggregator = (result, executions) -> { };
long timeout = 1000L; long pollInterval = 5000L; DirectChannel outputChannel = new DirectChannel(); Partitioner partitioner = Mockito.mock(Partitioner.class); StepExecutionAggregator stepExecutionAggregator = (result, executions) -> { };