| | |
| | | assertTrue(schemaEntry.hasAttribute(mtType)); |
| | | |
| | | AttributeValue oldMTValue = |
| | | schemaEntry.getAttribute(mtType).get(0).getValues().iterator().next(); |
| | | schemaEntry.getAttribute(mtType).get(0).iterator().next(); |
| | | |
| | | String path = TestCaseUtils.createTempFile( |
| | | "dn: cn=schema", |
| | |
| | | assertTrue(schemaEntry.hasAttribute(mtType)); |
| | | |
| | | AttributeValue newMTValue = |
| | | schemaEntry.getAttribute(mtType).get(0).getValues().iterator().next(); |
| | | schemaEntry.getAttribute(mtType).get(0).iterator().next(); |
| | | assertFalse(oldMTValue.equals(newMTValue)); |
| | | } |
| | | |
| | |
| | | public void testAddAndDeleteDefinitionWithExtraSpaces() |
| | | throws Exception |
| | | { |
| | | int resultCode = TestCaseUtils.applyModifications( |
| | | int resultCode = TestCaseUtils.applyModifications(false, |
| | | "dn: cn=schema", |
| | | "changetype: modify", |
| | | "add: objectClasses", |
| | |
| | | assertNotNull(DirectoryServer.getObjectClass( |
| | | "testaddanddeletedefinitionwithextraspaces-oid")); |
| | | |
| | | resultCode = TestCaseUtils.applyModifications( |
| | | resultCode = TestCaseUtils.applyModifications(false, |
| | | "dn: cn=schema", |
| | | "changetype: modify", |
| | | "delete: objectClasses", |