@Test public void testResolveZone() { Zone zone1 = new Zone("zone1"); _node1.setZones(ImmutableSortedMap.of("zone1", zone1)); _node2.setZones(ImmutableSortedMap.of("zone1", zone1)); zone1.setInterfaces(ImmutableSet.of("iface11", "iface2")); build(); assertThat( new ParboiledInterfaceSpecifier(new ZoneInterfaceAstNode("zone1")).resolve(_nodes, _ctxt), containsInAnyOrder(NodeInterfacePair.of(_iface11), NodeInterfacePair.of(_iface2))); }
@Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } ParboiledInterfaceSpecifier(InterfaceAstNode ast); }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } ParboiledInterfaceSpecifier(InterfaceAstNode ast); static ParboiledInterfaceSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt); }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } ParboiledInterfaceSpecifier(InterfaceAstNode ast); static ParboiledInterfaceSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt);  }