tom | de8d968 | 2014-08-27 01:11:43 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net; |
| 2 | |
| 3 | import com.google.common.testing.EqualsTester; |
| 4 | import org.junit.Test; |
| 5 | |
tom | ca20e0c | 2014-09-03 23:22:24 -0700 | [diff] [blame] | 6 | import static org.onlab.onos.net.DeviceId.deviceId; |
| 7 | |
tom | de8d968 | 2014-08-27 01:11:43 -0700 | [diff] [blame] | 8 | /** |
tom | ca20e0c | 2014-09-03 23:22:24 -0700 | [diff] [blame] | 9 | * Test of the device identifier. |
tom | de8d968 | 2014-08-27 01:11:43 -0700 | [diff] [blame] | 10 | */ |
| 11 | public class DeviceIdTest extends ElementIdTest { |
| 12 | |
| 13 | @Test |
| 14 | public void basics() { |
| 15 | new EqualsTester() |
tom | ca20e0c | 2014-09-03 23:22:24 -0700 | [diff] [blame] | 16 | .addEqualityGroup(deviceId("of:foo"), |
| 17 | deviceId("of:foo")) |
| 18 | .addEqualityGroup(deviceId("of:bar")) |
tom | de8d968 | 2014-08-27 01:11:43 -0700 | [diff] [blame] | 19 | .testEquals(); |
| 20 | } |
| 21 | |
| 22 | } |