*/
@Test
public void testDeviceList()
{
assumeUsbTestsEnabled();
final DeviceList list = new DeviceList();
final int result = LibUsb.getDeviceList(this.context, list);
assertTrue(
"At least one USB device must be present for the simple unit tests",
result > 0);
assertEquals(result, list.getSize());
int i = 0;
for (final Device device : list)
{
assertNotNull(device);
assertEquals(device, list.get(i));
assertEquals(Device.class, device.getClass());
i++;
}
LibUsb.freeDeviceList(list, true);
}