Tabnine Logo
EventDrivenConsumer.isAutoStartup
Code IndexAdd Tabnine to your IDE (free)

How to use
isAutoStartup
method
in
org.springframework.integration.endpoint.EventDrivenConsumer

Best Java code snippets using org.springframework.integration.endpoint.EventDrivenConsumer.isAutoStartup (Showing top 3 results out of 315)

origin: spring-projects/spring-integration

@Test
public void targetOnly() {
  String beanName = "outboundWithImplicitChannel";
  Object channel = this.applicationContext.getBean(beanName);
  assertTrue(channel instanceof DirectChannel);
  BeanFactoryChannelResolver channelResolver = new BeanFactoryChannelResolver(this.applicationContext);
  assertNotNull(channelResolver.resolveDestination(beanName));
  Object adapter = this.applicationContext.getBean(beanName + ".adapter");
  assertNotNull(adapter);
  assertTrue(adapter instanceof EventDrivenConsumer);
  assertFalse(((EventDrivenConsumer) adapter).isAutoStartup());
  assertEquals(-1, ((EventDrivenConsumer) adapter).getPhase());
  TestConsumer consumer = (TestConsumer) this.applicationContext.getBean("consumer");
  assertNull(consumer.getLastMessage());
  Message<?> message = new GenericMessage<String>("test");
  try {
    ((MessageChannel) channel).send(message);
    fail("MessageDispatchingException is expected.");
  }
  catch (Exception e) {
    assertThat(e, Matchers.instanceOf(MessageDeliveryException.class));
    assertThat(e.getCause(), Matchers.instanceOf(MessageDispatchingException.class));
  }
  ((EventDrivenConsumer) adapter).start();
  ((MessageChannel) channel).send(message);
  assertNotNull(consumer.getLastMessage());
  assertEquals(message, consumer.getLastMessage());
}
origin: spring-projects/spring-integration-aws

assertThat(this.s3OutboundChannelAdapter.isAutoStartup()).isFalse();
assertThat(this.s3OutboundChannelAdapter.isRunning()).isFalse();
assertThat(TestUtils.getPropertyValue(this.s3OutboundChannelAdapter, "inputChannel"))
origin: spring-projects/spring-integration-aws

    .isEqualTo("foo");
assertThat(this.sqsOutboundChannelAdapter.getPhase()).isEqualTo(100);
assertThat(this.sqsOutboundChannelAdapter.isAutoStartup()).isFalse();
assertThat(this.sqsOutboundChannelAdapter.isRunning()).isFalse();
assertThat(TestUtils.getPropertyValue(this.sqsOutboundChannelAdapter, "inputChannel"))
org.springframework.integration.endpointEventDrivenConsumerisAutoStartup

Popular methods of EventDrivenConsumer

  • <init>
  • getComponentName
  • start
  • afterPropertiesSet
  • isRunning
  • getHandler
  • getPhase
  • logComponentSubscriptionEvent
  • setBeanFactory
  • setBeanName
  • setPhase
  • setPhase

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now