Package org.fusesource.ide.camel.model.generated

Examples of org.fusesource.ide.camel.model.generated.Filter


    assertValidNode(ep1, "ep1");
    ep1.setUri("seda:a");

    assertNodeText("ep1", ep1, "", "", "");
   
    Filter filter1 = new Filter();
    assertValidNode(filter1, "filter1");
    // TODO set the filter...
   
    Endpoint ep2 = new Endpoint();
    assertValidNode(ep2, "ep2");
    ep2.setUri("seda:b");
   
    // wire them up...
    ep1.addTargetNode(filter1);
    filter1.addTargetNode(ep2);
   
    RouteSupport route = new Route();
    assertValidNode(route, "route");
   
    route.addChildren(ep1, filter1, ep2);
View Full Code Here


    routeContainer.addChild(route1);
   
    Endpoint endpoint1 = new Endpoint("seda:a");
    route1.addChild(endpoint1);
   
    Filter filter1 = new Filter();
    endpoint1.addTargetNode(filter1);
   
    Endpoint endpoint2 = new Endpoint("seda:b");
    filter1.addTargetNode(endpoint2);

    // from seda:b -> filter -> seda:c
    RouteSupport route2 = new Route();
    routeContainer.addChild(route2);
   
    Endpoint endpoint3 = new Endpoint("seda:b");
    route2.addChild(endpoint3);
   
    Filter filter2 = new Filter();
    endpoint3.addTargetNode(filter2);
   
    Endpoint endpoint4 = new Endpoint("seda:c");
    filter2.addTargetNode(endpoint4);

   
    EndpointSummary summary = new EndpointSummary(routeContainer);
   
    Map<String, Endpoint> inputEndpoints = summary.getInputEndpoints();
View Full Code Here

  @Test
  public void testModelSave() throws Exception {
   
    assertDisplayText(new Endpoint());
    assertDisplayText(new Filter());
    assertDisplayText(new Route());
  }
View Full Code Here

public class CanConnectTest {

  @Test
  public void testCanConnect() throws Exception {
    Endpoint endpoint = new Endpoint();
    Filter filter = new Filter();
    Choice choice = new Choice();
    When when = new When();
    Otherwise otherwise = new Otherwise();
    Bean bean = new Bean();
   
View Full Code Here

        imageProvider.addIconsForClass(new Choice());
        imageProvider.addIconsForClass(new ConvertBody());
        imageProvider.addIconsForClass(new Delay());
        imageProvider.addIconsForClass(new DynamicRouter());
        imageProvider.addIconsForClass(new Enrich());
        imageProvider.addIconsForClass(new Filter());
        imageProvider.addIconsForClass(new Finally());
        imageProvider.addIconsForClass(new IdempotentConsumer());
        imageProvider.addIconsForClass(new InOnly());
        imageProvider.addIconsForClass(new InOut());
        imageProvider.addIconsForClass(new Intercept());
View Full Code Here

    List<AbstractNode> routeChildren = route.getChildren();

    Endpoint endpoint = assertChildIsInstance(route.getRootNodes(), 0, Endpoint.class);
    assertEquals("endpoint uri", "seda:someWhere", endpoint.getUri());

    Filter filter = assertChildIsInstance(endpoint.getOutputs(), 0, Filter.class);
    assertEquals("filter expression", "/foo/bar", filter.getExpression().getExpression());
    assertEquals("filter language", "xpath", filter.getExpression().getLanguage());
   
    Endpoint endpoint2 = assertChildIsInstance(filter.getOutputs(), 0, Endpoint.class);
    assertEquals("endpoint2 uri", "seda:anotherPlace2", endpoint2.getUri());
   
    assertContains(routeChildren, endpoint, filter, endpoint2);
  }
View Full Code Here

    List<AbstractNode> routeChildren = route.getChildren();

    Endpoint endpoint = assertChildIsInstance(route.getRootNodes(), 0, Endpoint.class);
    assertEquals("endpoint uri", "seda:someWhere", endpoint.getUri());

    Filter filter = assertChildIsInstance(endpoint.getOutputs(), 0, Filter.class);
    assertEquals("filter expression", "/foo/bar", filter.getExpression().getExpression());
    assertEquals("filter language", "xpath", filter.getExpression().getLanguage());
   
    Endpoint endpoint2 = assertChildIsInstance(filter.getOutputs(), 0, Endpoint.class);
    assertEquals("endpoint2 uri", "seda:anotherPlace2", endpoint2.getUri());
   
    assertContains(routeChildren, endpoint, filter, endpoint2);
  }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.camel.model.generated.Filter

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.