use of org.onosproject.net.config.BaseConfig in project onos by opennetworkinglab.
the class ProtectionConfigTest method setUpClass.
@BeforeClass
public static void setUpClass() throws TestUtilsException {
directory = new TestServiceDirectory();
CodecManager codecService = new CodecManager();
codecService.activate();
directory.add(CodecService.class, codecService);
// replace service directory used by BaseConfig
original = TestUtils.getField(BaseConfig.class, "services");
TestUtils.setField(BaseConfig.class, "services", directory);
}
use of org.onosproject.net.config.BaseConfig in project onos by opennetworkinglab.
the class BaseConfigTestHelper method setUpBaseConfigClass.
@BeforeClass
public static void setUpBaseConfigClass() throws TestUtilsException {
directory = new TestServiceDirectory();
CodecManager codecService = new CodecManager();
codecService.activate();
directory.add(CodecService.class, codecService);
// replace service directory used by BaseConfig
original = TestUtils.getField(BaseConfig.class, "services");
TestUtils.setField(BaseConfig.class, "services", directory);
}
use of org.onosproject.net.config.BaseConfig in project onos by opennetworkinglab.
the class DeviceAnnotationConfigTest method setUpClass.
// TODO consolidate code-clone in ProtectionConfigTest, and define constants for field name
@BeforeClass
public static void setUpClass() throws TestUtilsException {
directory = new TestServiceDirectory();
CodecManager codecService = new CodecManager();
codecService.activate();
directory.add(CodecService.class, codecService);
// replace service directory used by BaseConfig
original = TestUtils.getField(BaseConfig.class, "services");
TestUtils.setField(BaseConfig.class, "services", directory);
}
use of org.onosproject.net.config.BaseConfig in project onos by opennetworkinglab.
the class PortAnnotationConfigTest method setUpClass.
// TODO consolidate code-clone in ProtectionConfigTest, and define constants for field name
@BeforeClass
public static void setUpClass() throws TestUtilsException {
directory = new TestServiceDirectory();
CodecManager codecService = new CodecManager();
codecService.activate();
directory.add(CodecService.class, codecService);
// replace service directory used by BaseConfig
original = TestUtils.getField(BaseConfig.class, "services");
TestUtils.setField(BaseConfig.class, "services", directory);
}
use of org.onosproject.net.config.BaseConfig in project onos by opennetworkinglab.
the class ProtectionEndpointIntentInstallerTest method setUpClass.
@BeforeClass
public static void setUpClass() throws TestUtils.TestUtilsException {
directory = new TestServiceDirectory();
CodecManager codecService = new CodecManager();
codecService.activate();
directory.add(CodecService.class, codecService);
// replace service directory used by BaseConfig
original = TestUtils.getField(BaseConfig.class, "services");
TestUtils.setField(BaseConfig.class, "services", directory);
}
Aggregations