test class added which replicates the code from testlibusb.c

new test class for MX500 mouse
allow test with only read operations and interrupt and/or bulk transfers

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@251 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
spandi
2007-08-11 12:42:19 +00:00
parent 391d56910f
commit 7fb6e148ed
5 changed files with 318 additions and 11 deletions

View File

@@ -35,6 +35,8 @@ public abstract class AbstractDeviceInfo {
private TransferMode mode;
private boolean compareData = true;
public static enum TransferMode {
Bulk, Interrupt
}
@@ -149,4 +151,11 @@ public abstract class AbstractDeviceInfo {
this.mode = mode;
}
public boolean doCompareData() {
return compareData;
}
public void setDoCompareData(boolean compareData) {
this.compareData = compareData;
}
}