@Test public void testCommit() { LdapName expectedOldName = LdapUtils.newLdapName("cn=oldDn"); LdapName expectedTempName = LdapUtils.newLdapName("cn=newDn"); UnbindOperationExecutor tested = new UnbindOperationExecutor( ldapOperationsMock, expectedOldName, expectedTempName); tested.commit(); verify(ldapOperationsMock).unbind(expectedTempName); }
public void commit() { log.debug("Committing unbind operation - unbinding temporary entry"); ldapOperations.unbind(temporaryDn); }
UnbindOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Committing unbind operation - unbinding temporary entry"); ldapOperations.unbind(temporaryDn); } }
UnbindOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Committing unbind operation - unbinding temporary entry"); ldapOperations.unbind(temporaryDn); } UnbindOperationExecutor(LdapOperations ldapOperations,
            Name originalDn, Name temporaryDn); }
UnbindOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Committing unbind operation - unbinding temporary entry"); ldapOperations.unbind(temporaryDn); } UnbindOperationExecutor(LdapOperations ldapOperations,
            Name originalDn, Name temporaryDn); void rollback(); void commit(); void performOperation(); }
UnbindOperationExecutor implements
        CompensatingTransactionOperationExecutor { public void commit() { log.debug("Committing unbind operation - unbinding temporary entry"); ldapOperations.unbind(temporaryDn); } UnbindOperationExecutor(LdapOperations ldapOperations,
            Name originalDn, Name temporaryDn); void rollback(); void commit(); void performOperation();  }