@Override public void unbind(Name name) throws NamingException { delegating.unbind(name); }
@Override public void unbind(String name) throws NamingException { delegating.unbind(name); }
public Object executeWithContext(DirContext ctx) throws NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
@Override public void unbind(Name name) throws NamingException { delegating.unbind(name); }
public Object executeWithContext(DirContext ctx) throws NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
@Override public void unbind(Name name) throws NamingException { delegating.unbind(name); }
@Override public synchronized void unbind(Name name) throws NamingException { this.delegate.unbind(name); }
public Object executeWithContext(DirContext ctx) throws javax.naming.NamingException { ctx.unbind(dn); return null; } });
@Override protected Object call() throws NameNotFoundException, Exception { final String path = LdapUtils.getOu(ou, organizationalUnits); if (doesExist(ctx, ou, organizationalUnits) == false) { log.info(OBJECT_CLASS + " doesn't exist and can't delete it (OK): " + path); return null; } log.info("Delete " + OBJECT_CLASS + ": " + path); ctx.unbind(path); return null; } }.excecute();
@Test public void testUnbind() throws Exception { expectGetReadWriteContext(); tested.unbind(nameMock); verify(dirContextMock).unbind(nameMock); verify(dirContextMock).close(); }
@Test public void testUnbind_String() throws Exception { expectGetReadWriteContext(); tested.unbind(DEFAULT_BASE_STRING); verify(dirContextMock).unbind(DEFAULT_BASE_STRING); verify(dirContextMock).close(); }
@Test public void testPerformOperation_NoTransaction() throws Throwable { Object[] expectedArgs = new Object[] { "someDn" }; CompensatingTransactionUtils.performOperation(contextSourceMock, dirContextMock, getUnbindMethod(), expectedArgs); verify(dirContextMock).unbind("someDn"); }