Package org.mokai.connector

Examples of org.mokai.connector.RoundRobinProcessor.supports()


    RoundRobinProcessor processor = new RoundRobinProcessor()
      .addProcessor(p1)
      .addProcessor(p2);

    Assert.assertTrue(processor.supports(new Message()));
  }

  @Test
  public void shouldNotSupportMessage() throws Exception {
    Processor p1 = mock(Processor.class);
View Full Code Here


    RoundRobinProcessor processor = new RoundRobinProcessor()
      .addProcessor(p1)
      .addProcessor(p2);

    Assert.assertFalse(processor.supports(new Message()));
  }

  @Test
  public void shouldNotSupportMessageIfNoProcessors() throws Exception {
    RoundRobinProcessor processor = new RoundRobinProcessor();
View Full Code Here

  }

  @Test
  public void shouldNotSupportMessageIfNoProcessors() throws Exception {
    RoundRobinProcessor processor = new RoundRobinProcessor();
    Assert.assertFalse(processor.supports(new Message()));
  }

  @Test
  public void shouldConfigureAndDestroyProcessors() throws Exception {
    Processor p1 = mock(Processor.class, withSettings().extraInterfaces(Configurable.class));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.