@Test void checkAllowed() throws NamespaceNotAllowedException { this.validator.checkAllowed(Arrays.asList("namespace"), "namespace"); }
@Override public void checkAllowed(Collection<String> allowedNamespaces, String namespace) throws NamespaceNotAllowedException { if (!isAllowed(allowedNamespaces, namespace)) { throw new NamespaceNotAllowedException( "Allowed namespace list [" + allowedNamespaces + "] does not matches namespace [" + namespace + "]"); } }
DefaultNamespaceValidator implements NamespaceValidator { @Override public void checkAllowed(Collection<String> allowedNamespaces, String namespace) throws NamespaceNotAllowedException { if (!isAllowed(allowedNamespaces, namespace)) { throw new NamespaceNotAllowedException( "Allowed namespace list [" + allowedNamespaces + "] does not matches namespace [" + namespace + "]"); } } }
DefaultNamespaceValidator implements NamespaceValidator { @Override public void checkAllowed(Collection<String> allowedNamespaces, String namespace) throws NamespaceNotAllowedException { if (!isAllowed(allowedNamespaces, namespace)) { throw new NamespaceNotAllowedException( "Allowed namespace list [" + allowedNamespaces + "] does not matches namespace [" + namespace + "]"); } }  }
DefaultNamespaceValidator implements NamespaceValidator { @Override public void checkAllowed(Collection<String> allowedNamespaces, String namespace) throws NamespaceNotAllowedException { if (!isAllowed(allowedNamespaces, namespace)) { throw new NamespaceNotAllowedException( "Allowed namespace list [" + allowedNamespaces + "] does not matches namespace [" + namespace + "]"); } }  @Override boolean isAllowed(Collection<String> allowedNamespaces, String namespace); @Override void checkAllowed(Collection<String> allowedNamespaces, String namespace); }
DefaultNamespaceValidator implements NamespaceValidator { @Override public void checkAllowed(Collection<String> allowedNamespaces, String namespace) throws NamespaceNotAllowedException { if (!isAllowed(allowedNamespaces, namespace)) { throw new NamespaceNotAllowedException( "Allowed namespace list [" + allowedNamespaces + "] does not matches namespace [" + namespace + "]"); } }  @Override boolean isAllowed(Collection<String> allowedNamespaces, String namespace); @Override void checkAllowed(Collection<String> allowedNamespaces, String namespace);  }