FileDocCategorySizeDatePackage
NamsFramework.javaAPI DocphoneME MR2 API (J2ME)2242Wed May 02 18:00:00 BST 2007com.sun.midp.i3test

NamsFramework

public class NamsFramework extends Framework
The Integrated Internal Interface (i3) test framework.

Fields Summary
static String[]
testNames
list of test case to run - is filled manually
Constructors Summary
Methods Summary
public voidrun()
Redefined method from base class that executes test cases. The only difference is that the list of test cases to execute is taken from a different source.

        // Add NAMS test cases here manually ...
        testNames = new String[1];
        testNames[0] = "com.sun.midp.main.TestNamsStartMidlet";
    
        if (listmode) {
            for (int i = 0; i < testNames.length; i++) {
                System.out.println(testNames[i]);
            }
        } else if (selftest) {
            SelfTest.run();
        } else if (testClass != null) {
            TestCase.runTestCase(testClass);
            TestCase.report();
        } else {
             runTestCases(testNames);
            TestCase.report();
        }

        notifyDestroyed();