Package org.mokai.impl.camel

Examples of org.mokai.impl.camel.CamelRoutingEngine.removeConnection()


      psTest = connectorServices.get(2);
      Assert.assertEquals(cs1, psTest); // the one with 2000 priority

      // remove the connector test3
      routingEngine.removeConnection("test3");

      // check that there are only 2 connector services
      connectorServices = routingEngine.getConnections();
      Assert.assertEquals(2, connectorServices.size());
View Full Code Here


  @Test(expectedExceptions=ObjectNotFoundException.class)
  public void shouldFailToRemoveNonExistingConnection() throws Exception {
    CamelRoutingEngine routingEngine = new CamelRoutingEngine();

    try {
      routingEngine.removeConnection("test");
    } finally {
      routingEngine.shutdown();
    }
  }
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.