public void setUp() throws Exception {
   originalUsbDevice = FindProgrammableDevice.getInstance().getProgrammableDevice();
   usbDevice = new UsbUtil.SynchronizedUsbDevice(originalUsbDevice);
   assertNotNull("Device required for test not found", usbDevice);
   DCPIRPTestErrorConditions = new DefaultControlPipeTestErrorConditions(usbDevice);
   super.setUp();
 }
コード例 #2
0
 public void setUp() {
   usbDevice = FindProgrammableDevice.getInstance().getTopologyTestDevice();
   assertNotNull("Device required for test not found", usbDevice);
   usbDevice.addUsbDeviceListener(deviceListener);
 }