Adding port, port number, port description implementations and related tests.
diff --git a/net/api/src/test/java/org/onlab/onos/net/DefaultDeviceTest.java b/net/api/src/test/java/org/onlab/onos/net/DefaultDeviceTest.java
index 1d174ca..c37a15c 100644
--- a/net/api/src/test/java/org/onlab/onos/net/DefaultDeviceTest.java
+++ b/net/api/src/test/java/org/onlab/onos/net/DefaultDeviceTest.java
@@ -4,10 +4,9 @@
import org.junit.Test;
import org.onlab.onos.net.provider.ProviderId;
-import java.net.URI;
-
import static org.junit.Assert.assertEquals;
import static org.onlab.onos.net.Device.Type.SWITCH;
+import static org.onlab.onos.net.DeviceId.deviceId;
/**
* Test of the default device model entity.
@@ -15,8 +14,8 @@
public class DefaultDeviceTest {
private static final ProviderId PID = new ProviderId("foo");
- private static final DeviceId DID1 = new DeviceId(URI.create("of:foo"));
- private static final DeviceId DID2 = new DeviceId(URI.create("of:bar"));
+ private static final DeviceId DID1 = deviceId("of:foo");
+ private static final DeviceId DID2 = deviceId("of:bar");
private static final String MFR = "whitebox";
private static final String HW = "1.1.x";
private static final String SW = "3.9.1";