Package org.mokai.impl.camel

Examples of org.mokai.impl.camel.CamelRoutingEngine


    }
  }

  @Test
  public void shouldFailToModifyReturnedConnections() throws Exception {
    CamelRoutingEngine routingEngine = new CamelRoutingEngine();

    try {
      Connector connector = mock(Connector.class);
      ConnectorService cs1 = routingEngine.addConnection("test1", connector);

      List<ConnectorService> connectorServices = routingEngine.getConnections();
      Assert.assertEquals(connectorServices.size(), 1);

      connectorServices.add(cs1);
      Assert.assertEquals(connectorServices.size(), 2);

      Assert.assertEquals(routingEngine.getConnections().size(), 1);
    } finally {
      routingEngine.shutdown();
    }
  }
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

Related Classes of org.mokai.impl.camel.CamelRoutingEngine

Copyright © 2018 www.massapicom. 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.