Methods Summary |
---|
public void | setUp()
super.setUp();
config = new FolderConfiguration();
nmq = new NavigationMethodQualifier();
|
protected void | tearDown()
super.tearDown();
config = null;
nmq = null;
|
public void | testDPad()
assertEquals(true, nmq.checkAndSet("dpad", config)); //$NON-NLS-1$
assertTrue(config.getNavigationMethodQualifier() != null);
assertEquals(NavigationMethodQualifier.NavigationMethod.DPAD,
config.getNavigationMethodQualifier().getValue());
assertEquals("dpad", config.getNavigationMethodQualifier().toString()); //$NON-NLS-1$
|
public void | testFailures()
assertEquals(false, nmq.checkAndSet("", config));//$NON-NLS-1$
assertEquals(false, nmq.checkAndSet("WHEEL", config));//$NON-NLS-1$
assertEquals(false, nmq.checkAndSet("other", config));//$NON-NLS-1$
|
public void | testTrackball()
assertEquals(true, nmq.checkAndSet("trackball", config)); //$NON-NLS-1$
assertTrue(config.getNavigationMethodQualifier() != null);
assertEquals(NavigationMethodQualifier.NavigationMethod.TRACKBALL,
config.getNavigationMethodQualifier().getValue());
assertEquals("trackball", config.getNavigationMethodQualifier().toString()); //$NON-NLS-1$
|
public void | testWheel()
assertEquals(true, nmq.checkAndSet("wheel", config)); //$NON-NLS-1$
assertTrue(config.getNavigationMethodQualifier() != null);
assertEquals(NavigationMethodQualifier.NavigationMethod.WHEEL,
config.getNavigationMethodQualifier().getValue());
assertEquals("wheel", config.getNavigationMethodQualifier().toString()); //$NON-NLS-1$
|