@Test public void shouldReturnTrueWhenDefaultCapabilitiesMatchAndNodeHasExtensionCapabilities() { Map<String, Object> nodeCapabilities = nodeCapabilities(); nodeCapabilities.putAll(extensionCapabilities()); Map<String, Object> requestedCapabilities = requestedCapabilities(); assertTrue(capabilityMatcher.matches(nodeCapabilities, requestedCapabilities)); }
@Override public boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability) { boolean basicChecks = super.matches(nodeCapability, requestedCapability); boolean customChecks = extensionCapabilityCheck(nodeCapability, requestedCapability); return basicChecks && customChecks; }
CustomCapabilityMatcher extends DefaultCapabilityMatcher { @Override public boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability) { boolean basicChecks = super.matches(nodeCapability, requestedCapability); boolean customChecks = extensionCapabilityCheck(nodeCapability, requestedCapability); return basicChecks && customChecks; } }
CustomCapabilityMatcher extends DefaultCapabilityMatcher { @Override public boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability) { boolean basicChecks = super.matches(nodeCapability, requestedCapability); boolean customChecks = extensionCapabilityCheck(nodeCapability, requestedCapability); return basicChecks && customChecks; }  }
CustomCapabilityMatcher extends DefaultCapabilityMatcher { @Override public boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability) { boolean basicChecks = super.matches(nodeCapability, requestedCapability); boolean customChecks = extensionCapabilityCheck(nodeCapability, requestedCapability); return basicChecks && customChecks; }  @Override boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability); }
CustomCapabilityMatcher extends DefaultCapabilityMatcher { @Override public boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability) { boolean basicChecks = super.matches(nodeCapability, requestedCapability); boolean customChecks = extensionCapabilityCheck(nodeCapability, requestedCapability); return basicChecks && customChecks; }  @Override boolean matches(Map<String, Object> nodeCapability, Map<String, Object> requestedCapability);  }