From 03efe3683a062c63cd04c13edd6f6c95ea2ddf22 Mon Sep 17 00:00:00 2001 From: Klaus Reimer Date: Sun, 23 Feb 2014 16:08:14 +0100 Subject: [PATCH] Fix equals test --- src/test/java/org/usb4java/DeviceListTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/usb4java/DeviceListTest.java b/src/test/java/org/usb4java/DeviceListTest.java index 9a1ca51..090abdc 100644 --- a/src/test/java/org/usb4java/DeviceListTest.java +++ b/src/test/java/org/usb4java/DeviceListTest.java @@ -49,9 +49,7 @@ public class DeviceListTest } /** - * Tests the {@link DeviceList#equals(Object)} method. This equals test - * is not complete because we can't generate two different device lists - * without user interaction. + * Tests the {@link DeviceList#equals(Object)} method. */ @Test public void testEquals() @@ -59,10 +57,13 @@ public class DeviceListTest assumeUsbTestsEnabled(); DeviceList a = new DeviceList(); DeviceList b = new DeviceList(); + DeviceList c = new DeviceList(); + DeviceList d = new DeviceList(); LibUsb.getDeviceList(null, a); LibUsb.getDeviceList(null, b); try { + assertTrue(c.equals(d)); assertTrue(a.equals(a)); assertTrue(b.equals(b)); assertFalse(a.equals(b));