runtests.java

来自「数据仓库工具」· Java 代码 · 共 50 行

JAVA
50
字号
/*
* RunTest.java   Sept 01, 2002
*
* Sample JUnit test using Loader for creating test database and
* inserting data into it.
*
 */

package test.org.webdocwf.util.loader;

import junit.framework.*;
import java.io.*;
import java.sql.*;

/**
 * RunTest is the main class for starting tests of the Octopus application
 * @author Radoslav Dutina
 * @version 1.0
 */
public class RunTests
{

  /**
   * This method starts test
   * @return TestSuite object
   */
  public static Test suite()
  {
    TestSuite suite= new TestSuite();
    suite.addTestSuite(LoaderTest.class);
    suite.addTestSuite(LoaderTest2.class);
    suite.addTestSuite(LoaderTest3.class);
    return suite;
  }

  /**
   * This is the main method of the RunTest class
   * @param args is the input parameters
   */
  public static void main(String[] args)
  {
    // set the file location as a property so that it is easy to pass around
    System.setProperty(LoaderTest.DATABASE_LOCATION_PROPERTY,args[0]);


    // kick off the tests. Note call main() instead of run() so that error codes
    // are returned so that they can be trapped by ant
    junit.textui.TestRunner.main(new String[]{"test.org.webdocwf.util.loader.RunTests"});
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?