FileDocCategorySizeDatePackage
DisplayManagerTest.javaAPI DocphoneME MR2 API (J2ME)1756Wed May 02 18:00:22 BST 2007javax.microedition.lcdui

DisplayManagerTest

public class DisplayManagerTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidrunTests()

        declare("testCreateDisplay");
	testCreateDisplay();
    
static voidsleep(int time)

	try {
	    Thread.sleep(time);
	} catch (Exception e) {}
    
voidtestCreateDisplay()

	Display display = DisplayTestUtils.createDisplay();
	assertTrue(display.hasForeground);
	assertSame(display.accessor, Display.displayManagerImpl.foreground);
        Display.displayManagerImpl.uRequestForegroundNone();
	sleep(2000);
	assertSame(Display.displayManagerImpl.noForeground, 
                             Display.displayManagerImpl.foreground);