Search in sources :

Example 16 with DefaultDriver

use of org.onosproject.net.driver.DefaultDriver in project onos by opennetworkinglab.

the class OvsdbControllerConfigTest method setUp.

@Before
public void setUp() {
    controllerConfig = new OvsdbControllerConfig();
    ddc = new DefaultDriver("foo.bar", new ArrayList<>(), "Circus", "lux", "1.2a", ImmutableMap.of(ControllerConfig.class, OvsdbControllerConfig.class), ImmutableMap.of("foo", "bar"));
    data = new DefaultDriverData(ddc, DEVICE_ID);
    handler = new DefaultDriverHandler(data);
// handler.controllerConfig.setHandler(handler);
// TODO setTestService directory on handler
// TODO setup ovsdb fake controller with fake ovsdbclient
// TODO setup fake device service
}
Also used : DefaultDriverHandler(org.onosproject.net.driver.DefaultDriverHandler) DefaultDriver(org.onosproject.net.driver.DefaultDriver) ArrayList(java.util.ArrayList) DefaultDriverData(org.onosproject.net.driver.DefaultDriverData) Before(org.junit.Before)

Aggregations

DefaultDriver (org.onosproject.net.driver.DefaultDriver)16 Before (org.junit.Before)7 HashMap (java.util.HashMap)6 Test (org.junit.Test)6 TestEventDispatcher (org.onosproject.common.event.impl.TestEventDispatcher)6 Behaviour (org.onosproject.net.driver.Behaviour)6 Driver (org.onosproject.net.driver.Driver)5 ChassisId (org.onlab.packet.ChassisId)4 DefaultDevice (org.onosproject.net.DefaultDevice)4 TestBehaviour (org.onosproject.net.driver.TestBehaviour)4 DriverRegistryManager (org.onosproject.net.driver.impl.DriverRegistryManager)4 ArrayList (java.util.ArrayList)3 ComponentConfigAdapter (org.onosproject.cfg.ComponentConfigAdapter)3 DeviceId (org.onosproject.net.DeviceId)3 DefaultDriverData (org.onosproject.net.driver.DefaultDriverData)3 DefaultDriverProvider (org.onosproject.net.driver.DefaultDriverProvider)3 DefaultDriverTest (org.onosproject.net.driver.DefaultDriverTest)3 TestBehaviourImpl (org.onosproject.net.driver.TestBehaviourImpl)3 MepId (org.onosproject.incubator.net.l2monitoring.cfm.identifier.MepId)2 CfmConfigException (org.onosproject.incubator.net.l2monitoring.cfm.service.CfmConfigException)2