TeStereo report

@Test @Ignore public void testMoveComparatorWhenInUse() throws Exception { testAddComparatorToEnabledSchema(); schemaManager.getMatchingRuleRegistry().register(new DummyMR()); Dn dn=new Dn("m-oid=" + OID + ",ou=comparators,cn=apachemeta,ou=schema"); Dn newDn=new Dn("m-oid=" + OID + ",ou=comparators,cn=apache,ou=schema"); try { connection.move(dn,newDn); fail("should not be able to move a comparator in use"); } catch ( LdapUnwillingToPerformException e) { assertEquals(e.getResultCode(),ResultCodeEnum.UNWILLING_TO_PERFORM); } assertTrue("comparator should still be in the registry after move failure",schemaManager.getComparatorRegistry().contains(OID)); schemaManager.getMatchingRuleRegistry().unregister(OID); schemaManager.getGlobalOidRegistry().unregister(OID); }