Package org.mokai.impl.camel

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


      Assert.assertTrue(applications.contains(cs1));
      Assert.assertTrue(applications.contains(cs2));
      Assert.assertTrue(applications.contains(cs3));

      // remove one of the applications
      routingEngine.removeApplication("test3");

      applications = routingEngine.getApplications();
      Assert.assertEquals(2, applications.size());

      Assert.assertTrue(applications.contains(cs1));
View Full Code Here


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

    try {
      routingEngine.removeApplication("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.