⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runtests.java

📁 数据仓库工具
💻 JAVA
字号:
/*
* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -