diff --git a/src/test/java/javax/usb/tck/BulkIOTestwithSynchronizedUsbPipe.java b/src/test/java/javax/usb/tck/BulkIOTestwithSynchronizedUsbPipe.java new file mode 100755 index 0000000..bc0f4b9 --- /dev/null +++ b/src/test/java/javax/usb/tck/BulkIOTestwithSynchronizedUsbPipe.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2004, International Business Machines Corporation. + * All Rights Reserved. + * + * This software is provided and licensed under the terms and conditions + * of the Common Public License: + * http://oss.software.ibm.com/developerworks/opensource/license-cpl.html + */ + +package javax.usb.tck; + +import java.util.*; + +import javax.usb.*; +import javax.usb.util.*; + +import org.junit.runner.RunWith; + +import de.ailis.usb4java.TCKRunner; + +import junit.framework.*; + +/** + * Bulk IO Test -- Synchronous and asynchronous byte[], IRP, and IRP List submissions + * using UsbUtil.synchronizedUsbPipe + *

+ * The goal of the Bulk, Interrupt, and Isochronous IO test is to + * verify that IN and OUT pipes can be opened and closed, and verify + * that bulk, interrupt, and isochronous transfer operations work successfully, proper + * events are generated, and proper exceptions are thrown in the operation. + * + * @author Leslie Blair + */ + + +@SuppressWarnings("all") +@RunWith(TCKRunner.class) +public class BulkIOTestwithSynchronizedUsbPipe extends TestCase +{ + public void setUp() throws Exception + { + endpointType = UsbConst.ENDPOINT_TYPE_BULK; + usbDevice = FindProgrammableDevice.getInstance().getProgrammableDevice(); + Assert.assertNotNull("Device required for test not found",usbDevice); + IOMethods.createListofAllAvailablePipesOfSpecifiedEndpointType(usbDevice, endpointType, usbPipeListNotSynchronized); + for ( int i=0; i