use of org.onosproject.yang.gen.v1.openconfigplatform.rev20180603.openconfigplatform.platformcomponenttop.components.component.DefaultConfig in project onos by opennetworkinglab.
the class OpenConfigComponentHandlerTest method testAddConfig.
/**
* UnitTest method for addConfig.
*/
@Test
public void testAddConfig() {
// test Handler
OpenConfigComponentHandler component = new OpenConfigComponentHandler("name", parent);
// call addConfig
OpenConfigConfigOfComponentHandler config = new OpenConfigConfigOfComponentHandler(component);
// expected ModelObject
DefaultComponent modelObject = new DefaultComponent();
modelObject.name("name");
DefaultConfig con = new DefaultConfig();
modelObject.config(con);
assertEquals("[NG]addConfig:ModelObject(Config added) is not an expected one.\n", modelObject, component.getModelObject());
}
use of org.onosproject.yang.gen.v1.openconfigplatform.rev20180603.openconfigplatform.platformcomponenttop.components.component.DefaultConfig in project onos by opennetworkinglab.
the class OpenConfigConfigOfAssignmentHandlerTest method testAddLogicalChannel.
/**
* UnitTest method for addLogicalChannel.
*/
@Test
public void testAddLogicalChannel() {
// test Handler
OpenConfigConfigOfAssignmentHandler config = new OpenConfigConfigOfAssignmentHandler(parent);
// call addLogicalChannel
config.addLogicalChannel("name");
// expected ModelObject
DefaultConfig modelObject = new DefaultConfig();
modelObject.logicalChannel("name");
assertEquals("[NG]addLogicalChannel:ModelObject(LogicalChannel added) is not an expected one.\n", modelObject, config.getModelObject());
}
use of org.onosproject.yang.gen.v1.openconfigplatform.rev20180603.openconfigplatform.platformcomponenttop.components.component.DefaultConfig in project onos by opennetworkinglab.
the class OpenConfigConfigOfAssignmentHandlerTest method testGetModelObject.
/**
* UnitTest method for getModelObject.
*/
@Test
public void testGetModelObject() {
// test Handler
OpenConfigConfigOfAssignmentHandler config = new OpenConfigConfigOfAssignmentHandler(parent);
// expected ModelObject
DefaultConfig modelObject = new DefaultConfig();
assertEquals("[NG]getModelObject:Return is not an expected ModelObject.\n", modelObject, config.getModelObject());
}
use of org.onosproject.yang.gen.v1.openconfigplatform.rev20180603.openconfigplatform.platformcomponenttop.components.component.DefaultConfig in project onos by opennetworkinglab.
the class OpenConfigConfigOfChannelHandlerTest method testGetModelObject.
/**
* UnitTest method for getModelObject.
*/
@Test
public void testGetModelObject() {
// test Handler
OpenConfigConfigOfChannelHandler config = new OpenConfigConfigOfChannelHandler(parent);
// expected ModelObject
DefaultConfig modelObject = new DefaultConfig();
assertEquals("[NG]getModelObject:Return is not an expected ModelObject.\n", modelObject, config.getModelObject());
}
use of org.onosproject.yang.gen.v1.openconfigplatform.rev20180603.openconfigplatform.platformcomponenttop.components.component.DefaultConfig in project onos by opennetworkinglab.
the class OpenConfigConfigOfChannelHandlerTest method testAddIndex.
/**
* UnitTest method for addIndex.
*/
@Test
public void testAddIndex() {
// test Handler
OpenConfigConfigOfChannelHandler config = new OpenConfigConfigOfChannelHandler(parent);
// call addIndex
config.addIndex(2);
// expected ModelObject
DefaultConfig modelObject = new DefaultConfig();
modelObject.index(2);
assertEquals("[NG]addIndex:ModelObject(Index added) is not an expected one.\n", modelObject, config.getModelObject());
}
Aggregations