@Test public void serviceNameMatching() { operationKeyMatcher.setServiceName("wrongService"); assertInvocation("With wrong serviceName, key must fail to match", false); operationKeyMatcher.setServiceName("serviceName"); assertInvocation("With right serviceName, key must match", true); operationKeyMatcher.setServiceName("*viceName"); assertInvocation("With left wildcard, key must match", true); operationKeyMatcher.setServiceName("service*"); assertInvocation("With right wildcard, key must match", true); operationKeyMatcher.setServiceName("*erviceNam*"); assertInvocation("With both wildcards, key must match", true); operationKeyMatcher.setServiceName("*reviceName"); assertInvocation("With wrong left wildcard, key must fail to match", false); operationKeyMatcher.setServiceName("servce*"); assertInvocation("With wrong right wildcard, key must fail to match", false); operationKeyMatcher.setServiceName("*revicNma*"); assertInvocation("With wrong double wildcard, key must fail to match", false); }
public void setServiceName(String serviceName) { this.serviceName = serviceName; }
OperationKeyMatcher implements Matcher { public void setServiceName(String serviceName) { this.serviceName = serviceName; } }
OperationKeyMatcher implements Matcher { public void setServiceName(String serviceName) { this.serviceName = serviceName; }  }
OperationKeyMatcher implements Matcher { public void setServiceName(String serviceName) { this.serviceName = serviceName; }  String getServiceName(); void setServiceName(String serviceName); String getOperationName(); void setOperationName(String operationName); int getMajorVersion(); void setMajorVersion(int majorVersion); int getMinorVersion(); void setMinorVersion(int minorVersion); boolean isInverted(); void setInverted(boolean inverted); String getNamespace(); void setNamespace(String namespace); boolean isRequireNullNamespace(); void setRequireNullNamespace(boolean requireNullNamespace); OperationKey.Type getType(); void setType(String type); void setType(OperationKey.Type type); @Override boolean matches(ExecutionContext ctx, OperationKey key, Object[] args); boolean matches(OperationKey key); String toString(); }
OperationKeyMatcher implements Matcher { public void setServiceName(String serviceName) { this.serviceName = serviceName; }  String getServiceName(); void setServiceName(String serviceName); String getOperationName(); void setOperationName(String operationName); int getMajorVersion(); void setMajorVersion(int majorVersion); int getMinorVersion(); void setMinorVersion(int minorVersion); boolean isInverted(); void setInverted(boolean inverted); String getNamespace(); void setNamespace(String namespace); boolean isRequireNullNamespace(); void setRequireNullNamespace(boolean requireNullNamespace); OperationKey.Type getType(); void setType(String type); void setType(OperationKey.Type type); @Override boolean matches(ExecutionContext ctx, OperationKey key, Object[] args); boolean matches(OperationKey key); String toString();  }