@Test public void testRootPrefixEntry() { HMSPaths.Entry root = HMSPaths.Entry.createRoot(true); root.toString(); Assert.assertNull(root.find(new String[]{"a"}, true)); Assert.assertNull(root.find(new String[]{"a"}, false)); Assert.assertEquals(root, root.findPrefixEntry(Lists.newArrayList("a"))); Assert.assertEquals(root, root.findPrefixEntry(Lists.newArrayList("a", "b"))); try { root.createPrefix(Lists.newArrayList("a")); Assert.fail(); } catch (IllegalArgumentException ex) { } }
@Override public String toString() { return String.format("%s:%s", getClass().getSimpleName(), Arrays.toString(prefixes)); }
HMSPaths implements AuthzPaths { @Override public String toString() { return String.format("%s:%s", getClass().getSimpleName(), Arrays.toString(prefixes)); } }
HMSPaths implements AuthzPaths { @Override public String toString() { return String.format("%s:%s", getClass().getSimpleName(), Arrays.toString(prefixes)); } HMSPaths();  HMSPaths(String[] pathPrefixes); }
HMSPaths implements AuthzPaths { @Override public String toString() { return String.format("%s:%s", getClass().getSimpleName(), Arrays.toString(prefixes)); } HMSPaths();  HMSPaths(String[] pathPrefixes); @Override Set<String> findAuthzObject(String[] pathElements); @Override Set<String> findAuthzObjectExactMatches(String[] pathElements); Set<String> findAuthzObject(String[] pathElements, boolean isPartialOk); @Override boolean isUnderPrefix(String[] pathElements); Collection<Entry> getAllEntries(); @Override HMSPathsDumper getPathsDump(); @Override String toString(); String dumpContent(); }
HMSPaths implements AuthzPaths { @Override public String toString() { return String.format("%s:%s", getClass().getSimpleName(), Arrays.toString(prefixes)); } HMSPaths();  HMSPaths(String[] pathPrefixes); @Override Set<String> findAuthzObject(String[] pathElements); @Override Set<String> findAuthzObjectExactMatches(String[] pathElements); Set<String> findAuthzObject(String[] pathElements, boolean isPartialOk); @Override boolean isUnderPrefix(String[] pathElements); Collection<Entry> getAllEntries(); @Override HMSPathsDumper getPathsDump(); @Override String toString(); String dumpContent();  }