@Test public void real_world_location_resource_compute_should_be_able_to_match_an_abstract_compute_from_topology() throws Exception { Map<String, MatchingConfiguration> emptyMatchingConfigurations = new HashMap<>(); NodeTemplate wantedNodeTemplate = nodeTemplate("tosca.nodes.Compute"); NodeType wantedNodeType = new NodeType(); List<LocationResourceTemplate> proposition = nodeMatcher.matchNode(wantedNodeTemplate, wantedNodeType, locationResources, emptyMatchingConfigurations); assertThat(proposition).hasSize(1); }
public List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources, Map<String, MatchingConfiguration> matchingConfigurations) { return super.match(nodeTemplate, nodeType, locationResources.getNodeTemplates(), locationResources.getNodeTypes(), locationResources, matchingConfigurations); }
DefaultNodeMatcher extends AbstractTemplateMatcher<LocationResourceTemplate, NodeTemplate, NodeType> implements INodeMatcherPlugin { public List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources, Map<String, MatchingConfiguration> matchingConfigurations) { return super.match(nodeTemplate, nodeType, locationResources.getNodeTemplates(), locationResources.getNodeTypes(), locationResources, matchingConfigurations); } }
DefaultNodeMatcher extends AbstractTemplateMatcher<LocationResourceTemplate, NodeTemplate, NodeType> implements INodeMatcherPlugin { public List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources, Map<String, MatchingConfiguration> matchingConfigurations) { return super.match(nodeTemplate, nodeType, locationResources.getNodeTemplates(), locationResources.getNodeTypes(), locationResources, matchingConfigurations); }  }
DefaultNodeMatcher extends AbstractTemplateMatcher<LocationResourceTemplate, NodeTemplate, NodeType> implements INodeMatcherPlugin { public List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources, Map<String, MatchingConfiguration> matchingConfigurations) { return super.match(nodeTemplate, nodeType, locationResources.getNodeTemplates(), locationResources.getNodeTypes(), locationResources, matchingConfigurations); }  List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources,
            Map<String, MatchingConfiguration> matchingConfigurations); }
DefaultNodeMatcher extends AbstractTemplateMatcher<LocationResourceTemplate, NodeTemplate, NodeType> implements INodeMatcherPlugin { public List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources, Map<String, MatchingConfiguration> matchingConfigurations) { return super.match(nodeTemplate, nodeType, locationResources.getNodeTemplates(), locationResources.getNodeTypes(), locationResources, matchingConfigurations); }  List<LocationResourceTemplate> matchNode(NodeTemplate nodeTemplate, NodeType nodeType, LocationResources locationResources,
            Map<String, MatchingConfiguration> matchingConfigurations);  }