@Test public void testGetURIs() throws Exception { NamespaceRegistry delegate = mock(NamespaceRegistry.class); NamespaceRegistryFacade facade = getFacade(delegate); final String[] uris = new String[]{"jcr", "nt", "oak"}; when(delegate.getURIs()).thenReturn(uris); assertSame("should be same", uris, facade.getURIs()); }
@Override public String[] getURIs() throws RepositoryException { return delegate.getURIs(); }
NamespaceRegistryFacade implements NamespaceRegistry { @Override public String[] getURIs() throws RepositoryException { return delegate.getURIs(); } }
NamespaceRegistryFacade implements NamespaceRegistry { @Override public String[] getURIs() throws RepositoryException { return delegate.getURIs(); } @SuppressWarnings("WeakerAccess")  NamespaceRegistryFacade(@NotNull NamespaceRegistry delegate); }
NamespaceRegistryFacade implements NamespaceRegistry { @Override public String[] getURIs() throws RepositoryException { return delegate.getURIs(); } @SuppressWarnings("WeakerAccess")  NamespaceRegistryFacade(@NotNull NamespaceRegistry delegate); @Override String[] getPrefixes(); @Override String[] getURIs(); @Override String getURI(String prefix); @Override String getPrefix(String uri); @Override void registerNamespace(String prefix, String uri); @Override void unregisterNamespace(String prefix); }
NamespaceRegistryFacade implements NamespaceRegistry { @Override public String[] getURIs() throws RepositoryException { return delegate.getURIs(); } @SuppressWarnings("WeakerAccess")  NamespaceRegistryFacade(@NotNull NamespaceRegistry delegate); @Override String[] getPrefixes(); @Override String[] getURIs(); @Override String getURI(String prefix); @Override String getPrefix(String uri); @Override void registerNamespace(String prefix, String uri); @Override void unregisterNamespace(String prefix);  }