Search in sources :

Example 1 with IdentityAttributeRef

use of org.opendaylight.controller.config.api.IdentityAttributeRef in project controller by opendaylight.

the class NetconfTestImplModuleTest method testIdentities.

@Test
public void testIdentities() throws Exception {
    final ConfigTransactionJMXClient transaction = this.configRegistryClient.createTransaction();
    final ObjectName nameCreated = transaction.createModule(IdentityTestModuleFactory.NAME, this.instanceName);
    final IdentityTestModuleMXBean mxBean = transaction.newMXBeanProxy(nameCreated, IdentityTestModuleMXBean.class);
    final IdentitiesContainer c = new IdentitiesContainer();
    c.setAfi(new IdentityAttributeRef(TestIdentity2.QNAME.toString()));
    mxBean.setIdentitiesContainer(c);
    transaction.commit();
}
Also used : ConfigTransactionJMXClient(org.opendaylight.controller.config.util.ConfigTransactionJMXClient) IdentityAttributeRef(org.opendaylight.controller.config.api.IdentityAttributeRef) ObjectName(javax.management.ObjectName) Test(org.junit.Test) AbstractConfigTest(org.opendaylight.controller.config.manager.impl.AbstractConfigTest)

Aggregations

ObjectName (javax.management.ObjectName)1 Test (org.junit.Test)1 IdentityAttributeRef (org.opendaylight.controller.config.api.IdentityAttributeRef)1 AbstractConfigTest (org.opendaylight.controller.config.manager.impl.AbstractConfigTest)1 ConfigTransactionJMXClient (org.opendaylight.controller.config.util.ConfigTransactionJMXClient)1