Exemplo n.º 1
0
  /**
   * To create the test suite. You need to add a new aSuite.addTest entry for any new test methods.
   *
   * @return New testsuite.
   */
  public static Test suite() {
    TestSuite suite = new TestSuite();

    java.util.Vector methodNames;
    java.util.Enumeration e;

    // Add widget tests
    methodNames = GaugeTest.methodNames();
    e = methodNames.elements();
    while (e.hasMoreElements()) {
      suite.addTest(new GaugeTest((String) e.nextElement()));
    }

    return suite;
  }
Exemplo n.º 2
0
 public static java.util.Vector methodNames() {
   java.util.Vector methodNames = new java.util.Vector();
   methodNames.addElement("testAccessors");
   methodNames.addElement("gaugeCurrentValuesTest");
   return methodNames;
 }