| | |
| | | import org.opends.server.admin.ManagedObjectAlreadyExistsException; |
| | | import org.opends.server.admin.ManagedObjectNotFoundException; |
| | | import org.opends.server.admin.MockLDAPProfile; |
| | | import org.opends.server.admin.TestCfg; |
| | | import org.opends.server.admin.TestChildCfgClient; |
| | | import org.opends.server.admin.TestChildCfgDefn; |
| | | import org.opends.server.admin.TestParentCfgClient; |
| | |
| | | @AfterClass |
| | | public void tearDown() { |
| | | LDAPProfile.getInstance().popWrapper(); |
| | | TestCfg.cleanup(); |
| | | } |
| | | |
| | | |
| | |
| | | CommunicationException { |
| | | ManagedObject<RootCfgClient> root = context |
| | | .getRootConfigurationManagedObject(); |
| | | return root.createChild( |
| | | org.opends.server.admin.TestCfg.RD_TEST_ONE_TO_MANY_PARENT, |
| | | return root.createChild(TestCfg.getTestOneToManyParentRelationDefinition(), |
| | | TestParentCfgDefn.getInstance(), name, null).getConfiguration(); |
| | | } |
| | | |
| | |
| | | CommunicationException { |
| | | ManagedObject<RootCfgClient> root = context |
| | | .getRootConfigurationManagedObject(); |
| | | return root.getChild( |
| | | org.opends.server.admin.TestCfg.RD_TEST_ONE_TO_MANY_PARENT, name) |
| | | .getConfiguration(); |
| | | return root.getChild(TestCfg.getTestOneToManyParentRelationDefinition(), |
| | | name).getConfiguration(); |
| | | } |
| | | |
| | | |
| | |
| | | CommunicationException { |
| | | ManagedObject<RootCfgClient> root = context |
| | | .getRootConfigurationManagedObject(); |
| | | return root |
| | | .listChildren(org.opends.server.admin.TestCfg.RD_TEST_ONE_TO_MANY_PARENT); |
| | | return root.listChildren(TestCfg.getTestOneToManyParentRelationDefinition()); |
| | | } |
| | | |
| | | |
| | |
| | | CommunicationException { |
| | | ManagedObject<RootCfgClient> root = context |
| | | .getRootConfigurationManagedObject(); |
| | | root.removeChild( |
| | | org.opends.server.admin.TestCfg.RD_TEST_ONE_TO_MANY_PARENT, name); |
| | | root.removeChild(TestCfg.getTestOneToManyParentRelationDefinition(), name); |
| | | } |
| | | } |