@Test public void testResolveUnion() { assertThat( new ParboiledRoutingPolicySpecifier( new UnionRoutingPolicyAstNode( new NameRoutingPolicyAstNode("routingPolicy1"), new NameRoutingPolicyAstNode("routingPolicy2"))) .resolve(_nodeName, _ctxt), equalTo(ImmutableSet.of(_routingPolicy1, _routingPolicy2))); }
@Override public Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt) { return _ast.accept(new RoutingPolicyAstNodeToRoutingPolicys(node, ctxt)); }
ParboiledRoutingPolicySpecifier implements RoutingPolicySpecifier { @Override public Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt) { return _ast.accept(new RoutingPolicyAstNodeToRoutingPolicys(node, ctxt)); } }
ParboiledRoutingPolicySpecifier implements RoutingPolicySpecifier { @Override public Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt) { return _ast.accept(new RoutingPolicyAstNodeToRoutingPolicys(node, ctxt)); } ParboiledRoutingPolicySpecifier(RoutingPolicyAstNode ast); }
ParboiledRoutingPolicySpecifier implements RoutingPolicySpecifier { @Override public Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt) { return _ast.accept(new RoutingPolicyAstNodeToRoutingPolicys(node, ctxt)); } ParboiledRoutingPolicySpecifier(RoutingPolicyAstNode ast); static ParboiledRoutingPolicySpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt); }
ParboiledRoutingPolicySpecifier implements RoutingPolicySpecifier { @Override public Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt) { return _ast.accept(new RoutingPolicyAstNodeToRoutingPolicys(node, ctxt)); } ParboiledRoutingPolicySpecifier(RoutingPolicyAstNode ast); static ParboiledRoutingPolicySpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<RoutingPolicy> resolve(String node, SpecifierContext ctxt);  }