KeyboardStateQualifierTestpublic class KeyboardStateQualifierTest extends TestCase
Fields Summary |
---|
private KeyboardStateQualifier | ksq | private FolderConfiguration | config |
Methods Summary |
---|
protected void | setUp()
super.setUp();
ksq = new KeyboardStateQualifier();
config = new FolderConfiguration();
| protected void | tearDown()
super.tearDown();
ksq = null;
config = null;
| public void | testExposed()
assertEquals(true, ksq.checkAndSet("keysexposed", config)); //$NON-NLS-1$
assertTrue(config.getKeyboardStateQualifier() != null);
assertEquals(KeyboardStateQualifier.KeyboardState.EXPOSED,
config.getKeyboardStateQualifier().getValue());
assertEquals("keysexposed", config.getKeyboardStateQualifier().toString()); //$NON-NLS-1$
| public void | testFailures()
assertEquals(false, ksq.checkAndSet("", config));//$NON-NLS-1$
assertEquals(false, ksq.checkAndSet("KEYSEXPOSED", config));//$NON-NLS-1$
assertEquals(false, ksq.checkAndSet("other", config));//$NON-NLS-1$
| public void | testHidden()
assertEquals(true, ksq.checkAndSet("keyshidden", config)); //$NON-NLS-1$
assertTrue(config.getKeyboardStateQualifier() != null);
assertEquals(KeyboardStateQualifier.KeyboardState.HIDDEN,
config.getKeyboardStateQualifier().getValue());
assertEquals("keyshidden", config.getKeyboardStateQualifier().toString()); //$NON-NLS-1$
|
|