public class DeviceTest extends junit.framework.TestCase implements DeviceAdapter, FingerAdapter, ImageAdapter
Constructor and Description |
---|
DeviceTest(java.lang.String name)
Create the test case
|
Modifier and Type | Method and Description |
---|---|
void |
onCapture(java.lang.String device,
Image image)
The method will be executed when a image is captured.
|
void |
onFingerDown(java.lang.String device)
This method will be executed when a finger is placed on a device.
|
void |
onFingerUp(java.lang.String device)
This method will be executed when a finger is removed out of a device.
|
void |
onPlug(java.lang.String device)
This method will be executed when a device is plugged.
|
void |
onUnplug(java.lang.String device)
This method will be executed when a device is unplugged.
|
static junit.framework.Test |
suite()
The suite of tests
|
void |
testDevice() |
countTestCases, getName, run, run, runBare, setName, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
public DeviceTest(java.lang.String name)
name
- public static junit.framework.Test suite()
public void testDevice() throws java.io.IOException
java.io.IOException
public void onFingerDown(java.lang.String device)
FingerAdapter
This method will be executed when a finger is placed on a device.
onFingerDown
in interface FingerAdapter
public void onFingerUp(java.lang.String device)
FingerAdapter
This method will be executed when a finger is removed out of a device.
onFingerUp
in interface FingerAdapter
public void onPlug(java.lang.String device)
DeviceAdapter
This method will be executed when a device is plugged.
onPlug
in interface DeviceAdapter
public void onUnplug(java.lang.String device)
DeviceAdapter
This method will be executed when a device is unplugged.
onUnplug
in interface DeviceAdapter
public void onCapture(java.lang.String device, Image image)
ImageAdapter
The method will be executed when a image is captured.
onCapture
in interface ImageAdapter