// Begin j2meunit test framework setup public void installerMain(String[] args) { TestSuite suite = new TestSuite(this.getClass().getName()); suite.addTest( new TestRenameTo( "testFileRename", new TestMethod() { public void run(TestCase tc) { ((TestRenameTo) tc).testFileRename(); } })); com.nokia.mj.impl.utils.OmjTestRunner.run(suite); }
public Test suite() { TestSuite aSuite = new TestSuite(); for (int i = 1; i <= NUM_TESTS; i++) { final int testID = i; aSuite.addTest( new SelectMultiDataTests( "SelectMultiData Test " + i, new TestMethod() { public void run(TestCase tc) { ((SelectMultiDataTests) tc).testMaster(testID); } })); } return aSuite; }
public void installerMain(String[] args) { TestSuite suite = new TestSuite(this.getClass().getName()); suite.addTest( new TestStorageAttribute( "testNameValueConstructor", new TestMethod() { public void run(TestCase tc) { ((TestStorageAttribute) tc).testNameValueConstructor(); } })); suite.addTest( new TestStorageAttribute( "testNameValueTypeConstructor", new TestMethod() { public void run(TestCase tc) { ((TestStorageAttribute) tc).testNameValueTypeConstructor(); } })); suite.addTest( new TestStorageAttribute( "testAttribute", new TestMethod() { public void run(TestCase tc) { ((TestStorageAttribute) tc).testAttribute(); } })); suite.addTest( new TestStorageAttribute( "testtoString", new TestMethod() { public void run(TestCase tc) { ((TestStorageAttribute) tc).testtoString(); } })); suite.addTest( new TestStorageAttribute( "testEscape", new TestMethod() { public void run(TestCase tc) { ((TestStorageAttribute) tc).testEscape(); } })); suite.addTest( new TestStorageAttribute( "testEscapeToStorage", new TestMethod() { public void run(TestCase tc) { ((TestStorageAttribute) tc).testEscapeToStorage(); } })); com.nokia.mj.impl.utils.OmjTestRunner.run(suite); }
public static void registerTests(TestSuite suite) { suite.addTest( new TestFile_1720( "run_1720", new TestMethod() { public void run(TestCase tc) { ((TestFile_1720) tc).run_1720(); } })); }
public Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new TestRunUnitTestMIDlets().suite()); suite.addTest(new TestConcurrentAccess().suite()); suite.addTest(new TestTransaction().suite()); suite.addTest(new TestPreparedStatement().suite()); suite.addTest(new TestBadBehavior().suite()); suite.addTest(new TestPackageProtectedMethods().suite()); suite.addTest(new TestRecordEnumerationImpl().suite()); return suite; }
public Test suite() { TestSuite suite = new TestSuite(); suite.addTest( new FileSystemTest( "testFormat", new TestMethod() { public void run(TestCase tc) { ((FileSystemTest) tc).testFormat(); } })); suite.addTest( new FileSystemTest( "testOpen", new TestMethod() { public void run(TestCase tc) { ((FileSystemTest) tc).testOpen(); } })); suite.addTest( new FileSystemTest( "testGetFileName", new TestMethod() { public void run(TestCase tc) { ((FileSystemTest) tc).testGetFileName(); } })); suite.addTest( new FileSystemTest( "testCreateAndDeleteFile", new TestMethod() { public void run(TestCase tc) { ((FileSystemTest) tc).testCreateAndDeleteFile(); } })); suite.addTest( new FileSystemTest( "testWriteAndReadFileData", new TestMethod() { public void run(TestCase tc) { ((FileSystemTest) tc).testWriteAndReadFileData(); } })); suite.addTest( new FileSystemTest( "testRename", new TestMethod() { public void run(TestCase tc) { ((FileSystemTest) tc).testRename(); } })); return suite; }
/** @see j2meunit.framework.TestCase#suite() */ public Test suite() { TestSuite suite = new TestSuite(); // Alert suite.addTest( new DisplayableWrapperTest("testAlertWrapper_addCommand") { public void runTest() { testAlertWrapper_addCommand(); } }); suite.addTest( new DisplayableWrapperTest("testAlertWrapper_commandHandling") { public void runTest() { testAlertWrapper_commandHandling(); } }); suite.addTest( new DisplayableWrapperTest("testAlertWrapper_constructors") { public void runTest() { testAlertWrapper_constructors(); } }); suite.addTest( new DisplayableWrapperTest("testAlertWrapper_listenerHandling") { public void runTest() { testAlertWrapper_listenerHandling(); } }); suite.addTest( new DisplayableWrapperTest("testAlertWrapper_toString") { public void runTest() { testAlertWrapper_toString(); } }); // Canvas suite.addTest( new DisplayableWrapperTest("testCanvasWrapper_addCommand") { public void runTest() { testCanvasWrapper_addCommand(); } }); suite.addTest( new DisplayableWrapperTest("testCanvasWrapper_commandHandling") { public void runTest() { testCanvasWrapper_commandHandling(); } }); suite.addTest( new DisplayableWrapperTest("testCanvasWrapper_listenerHandling") { public void runTest() { testCanvasWrapper_listenerHandling(); } }); suite.addTest( new DisplayableWrapperTest("testCanvasWrapper_toString") { public void runTest() { testCanvasWrapper_toString(); } }); // Form suite.addTest( new DisplayableWrapperTest("testFormWrapper_addCommand") { public void runTest() { testFormWrapper_addCommand(); } }); suite.addTest( new DisplayableWrapperTest("testFormWrapper_commandHandling") { public void runTest() { testFormWrapper_commandHandling(); } }); suite.addTest( new DisplayableWrapperTest("testFormWrapper_constructors") { public void runTest() { testFormWrapper_constructors(); } }); suite.addTest( new DisplayableWrapperTest("testFormWrapper_listenerHandling") { public void runTest() { testFormWrapper_listenerHandling(); } }); suite.addTest( new DisplayableWrapperTest("testFormWrapper_toString") { public void runTest() { testFormWrapper_toString(); } }); // GameCanvas suite.addTest( new DisplayableWrapperTest("testGameCanvasWrapper_addCommand") { public void runTest() { testGameCanvasWrapper_addCommand(); } }); suite.addTest( new DisplayableWrapperTest("testGameCanvasWrapper_commandHandling") { public void runTest() { testGameCanvasWrapper_commandHandling(); } }); suite.addTest( new DisplayableWrapperTest("testGameCanvasWrapper_listenerHandling") { public void runTest() { testGameCanvasWrapper_listenerHandling(); } }); suite.addTest( new DisplayableWrapperTest("testGameCanvasWrapper_toString") { public void runTest() { testGameCanvasWrapper_toString(); } }); // List suite.addTest( new DisplayableWrapperTest("testListWrapper_addCommand") { public void runTest() { testListWrapper_addCommand(); } }); suite.addTest( new DisplayableWrapperTest("testListWrapper_commandHandling") { public void runTest() { testListWrapper_commandHandling(); } }); suite.addTest( new DisplayableWrapperTest("testListWrapper_constructors") { public void runTest() { testListWrapper_constructors(); } }); suite.addTest( new DisplayableWrapperTest("testListWrapper_listenerHandling") { public void runTest() { testListWrapper_listenerHandling(); } }); suite.addTest( new DisplayableWrapperTest("testListWrapper_toStringNoSelection") { public void runTest() { testListWrapper_toStringNoSelection(); } }); // TextBox suite.addTest( new DisplayableWrapperTest("testTextBoxWrapper_addCommand") { public void runTest() { testTextBoxWrapper_addCommand(); } }); suite.addTest( new DisplayableWrapperTest("testTextBoxWrapper_commandHandling") { public void runTest() { testTextBoxWrapper_commandHandling(); } }); suite.addTest( new DisplayableWrapperTest("testTextBoxWrapper_constructors") { public void runTest() { testTextBoxWrapper_constructors(); } }); suite.addTest( new DisplayableWrapperTest("testTextBoxWrapper_listenerHandling") { public void runTest() { testTextBoxWrapper_listenerHandling(); } }); suite.addTest( new DisplayableWrapperTest("testTextBoxWrapper_toString") { public void runTest() { testTextBoxWrapper_toString(); } }); return suite; }