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);
  }
  // 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);
  }
예제 #3
0
 public void installerMain(String[] args) {
   com.nokia.mj.impl.utils.OmjTestRunner.run(suite());
 }
  // Begin j2meunit test framework setup
  public void installerMain(String[] args) {
    TestSuite suite = new TestSuite(this.getClass().getName());

    registerTests(suite);
    com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
  }