Methods Summary |
---|
protected void | setUp()
super.setUp();
tsq = new TouchScreenQualifier();
config = new FolderConfiguration();
|
protected void | tearDown()
super.tearDown();
tsq = null;
config = null;
|
public void | testFailures()
assertEquals(false, tsq.checkAndSet("", config));//$NON-NLS-1$
assertEquals(false, tsq.checkAndSet("STYLUS", config));//$NON-NLS-1$
assertEquals(false, tsq.checkAndSet("other", config));//$NON-NLS-1$
|
public void | testFinger()
assertEquals(true, tsq.checkAndSet("finger", config)); //$NON-NLS-1$
assertTrue(config.getTouchTypeQualifier() != null);
assertEquals(TouchScreenQualifier.TouchScreenType.FINGER,
config.getTouchTypeQualifier().getValue());
assertEquals("finger", config.getTouchTypeQualifier().toString()); //$NON-NLS-1$
|
public void | testNoTouch()
assertEquals(true, tsq.checkAndSet("notouch", config)); //$NON-NLS-1$
assertTrue(config.getTouchTypeQualifier() != null);
assertEquals(TouchScreenQualifier.TouchScreenType.NOTOUCH,
config.getTouchTypeQualifier().getValue());
assertEquals("notouch", config.getTouchTypeQualifier().toString()); //$NON-NLS-1$
|
public void | testStylus()
assertEquals(true, tsq.checkAndSet("stylus", config)); //$NON-NLS-1$
assertTrue(config.getTouchTypeQualifier() != null);
assertEquals(TouchScreenQualifier.TouchScreenType.STYLUS,
config.getTouchTypeQualifier().getValue());
assertEquals("stylus", config.getTouchTypeQualifier().toString()); //$NON-NLS-1$
|