@Test public void testResolveInterfaceGroup() { String interfaceGroup = "ig"; String book = "book"; _ctxtB.setReferenceBooks( ImmutableSortedSet.of( ReferenceBook.builder(book) .setInterfaceGroups( ImmutableList.of( new InterfaceGroup( ImmutableSortedSet.of(NodeInterfacePair.of("node1", "iface11")), interfaceGroup))) .build())); build(); assertThat( new ParboiledInterfaceSpecifier(new InterfaceGroupInterfaceAstNode(book, interfaceGroup)) .resolve(_nodes, _ctxt), contains(NodeInterfacePair.of(_iface11))); assertThat( new ParboiledInterfaceSpecifier(new InterfaceGroupInterfaceAstNode(interfaceGroup, book)) .resolve(_nodes, _ctxt), contains(NodeInterfacePair.of(_iface11))); }
@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);  }