FileDocCategorySizeDatePackage
TestDummy.javaAPI DocphoneME MR2 API (J2ME)1814Wed May 02 18:00:10 BST 2007com.sun.midp.suspend

TestDummy

public class TestDummy extends com.sun.midp.i3test.TestCase

Fields Summary
Constructors Summary
public TestDummy()

        TestUtil.setNoVMSuspendMode();
    
Methods Summary
public voidrunTests()

        suspendResumeTest();
    
private voidsuspendResumeTest()

        declare("Dummy suspend/resume test");

        TestUtil.suspendMidp();
        TestUtil.sleep();
        assertTrue("SUSPENDED state not achieved",
            TestUtil.getSuspendSystem().getState() == Subsystem.SUSPENDED);

        TestUtil.resumeMidp();
        TestUtil.sleep();
        assertTrue("ACTIVE state not achieved",
            TestUtil.getSuspendSystem().getState() == Subsystem.ACTIVE);