/**
   * This method allows to easily run this unit test independent of the other unit tests, and
   * without dealing with Ant or unrelated test suites.
   */
  public static void main(String[] sa) {
    if (sa.length > 0 && sa[0].startsWith("-g")) {
      junit.swingui.TestRunner.run(OdbcPacketOutputStreamTest.class);
    } else {
      junit.textui.TestRunner runner = new junit.textui.TestRunner();
      junit.framework.TestResult result =
          runner.run(runner.getTest(OdbcPacketOutputStreamTest.class.getName()));

      System.exit(result.wasSuccessful() ? 0 : 1);
    }
  }
  /**
   * Method main
   *
   * @param args
   */
  public static void main(String[] args) {

    XMLUtils.spitOutVersions(log);

    boolean useTextUI = true;

    if (useTextUI) {
      junit.textui.TestRunner.run(suite());
    } else {
      String[] testCaseName = {"-noloading", ModuleTest.class.getName()};

      try {
        String lookAndFeelClass = "com.incors.plaf.kunststoff.KunststoffLookAndFeel";
        javax.swing.LookAndFeel lnf =
            (javax.swing.LookAndFeel) Class.forName(lookAndFeelClass).newInstance();

        javax.swing.UIManager.setLookAndFeel(lnf);
      } catch (Exception ex) {
      }

      junit.swingui.TestRunner.main(testCaseName);
    }
  }
Exemplo n.º 3
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {BlockManagerTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
 public static void main(String[] args) {
   // Now run JUnit.
   junit.swingui.TestRunner.main(args);
 }
Exemplo n.º 5
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {SprogMessageTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {SerialTrafficControllerTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
 public static void main(String[] args) {
   TestRunner.run(CacheMap_UnitTest.class);
 }
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(ClientTransactionTest.class);
 }
Exemplo n.º 9
0
 // Main method: Invokes GUI
 public static void main(String args[]) {
   String[] testCaseName = {URLTest.class.getName()};
   // junit.textui.TestRunner.main(testCaseName);
   junit.swingui.TestRunner.main(testCaseName);
   // junit.awtui.TestRunner.main(testCaseName);
 }
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(MirrorsOnNativesTest.class);
 }
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {ResettingOffsetHighCvProgrammerFacadeTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
 /**
  * Runs the test using the gui runner.
  *
  * @param args No arguments
  */
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(EpcgAntReadPointTableRowTest.class);
 }
Exemplo n.º 13
0
 /**
  * Runs the test using the gui runner.
  *
  * @param args No arguments
  */
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(OperationalStatusTest.class);
 }
Exemplo n.º 14
0
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(CRFDAOTest.class);
 }
 /**
  * Runs the test using the gui runner.
  *
  * @param args No arguments
  */
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(EpcgRdPntSrcTableRowStatusListenerTest.class);
 }
Exemplo n.º 16
0
 /**
  * Roda os testes
  *
  * @param args
  */
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(MissingCharWordTest.class);
 }
Exemplo n.º 17
0
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(ATParserTest.class);
 }
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {"-noloading", z21XNetStreamPortControllerTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
 /* Executes the test case */
 public static void main(String[] argv) {
   String[] testCaseList = {ProjectTestSuite.class.getName()};
   junit.swingui.TestRunner.main(testCaseList);
 }
Exemplo n.º 20
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {SimplePowerServerTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
Exemplo n.º 21
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {AbstractIdentifyTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
 public static void main(String[] args) {
   junit.swingui.TestRunner.main(args);
 }
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(StructureSearchManagerTest.class);
 }
Exemplo n.º 24
0
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(NodePredTVSTest.class);
 }
Exemplo n.º 25
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {"-noloading", XNetMonPaneTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
Exemplo n.º 26
0
 /**
  * Runs the test suite using the gui runner.
  *
  * @param args No arguments
  */
 public static void main(String[] args) {
   junit.swingui.TestRunner.run(SnmpTestSuite.class);
 }
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {"-noloading", SerialSensorManagerTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
Exemplo n.º 28
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {SensorGroupTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }
Exemplo n.º 29
0
 /**
  * Executes the test case
  *
  * @param argv array of Strings containing command line arguments
  */
 public static void main(String[] argv) {
   String[] testCaseList = {TestPoll.class.getName()};
   junit.swingui.TestRunner.main(testCaseList);
 }
Exemplo n.º 30
0
 // Main entry point
 public static void main(String[] args) {
   String[] testCaseName = {"-noloading", ConfigToolActionTest.class.getName()};
   junit.swingui.TestRunner.main(testCaseName);
 }