@Test public void testDeleteEntry() throws Exception { Session dir1 = memdir1.getSession(); Session dir2 = memdir2.getSession(); Session dir3 = memdir3.getSession(); dir.deleteEntry("no-such-entry"); assertEquals(4, dir.getEntries().size()); assertEquals(2, dir1.getEntries().size()); assertEquals(2, dir2.getEntries().size()); assertEquals(2, dir3.getEntries().size()); dir.deleteEntry("1"); assertNull(dir.getEntry("1")); assertEquals(3, dir.getEntries().size()); assertEquals(1, dir1.getEntries().size()); assertEquals(1, dir2.getEntries().size()); assertEquals(2, dir3.getEntries().size()); dir.deleteEntry("3"); assertNull(dir.getEntry("3")); assertEquals(2, dir.getEntries().size()); assertEquals(1, dir1.getEntries().size()); assertEquals(1, dir2.getEntries().size()); assertEquals(1, dir3.getEntries().size()); }
@Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); @Override String getName(); @Override String getSchema(); @Override String getParentDirectory(); @Override String getIdField(); @Override String getPasswordField(); @Override Session getSession(); @Override Reference getReference(String referenceFieldName); @Override void invalidateDirectoryCache(); }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); @Override String getName(); @Override String getSchema(); @Override String getParentDirectory(); @Override String getIdField(); @Override String getPasswordField(); @Override Session getSession(); @Override Reference getReference(String referenceFieldName); @Override void invalidateDirectoryCache();  }