Example usage for junit.framework TestSuite run

List of usage examples for junit.framework TestSuite run

Introduction

In this page you can find the example usage for junit.framework TestSuite run.

Prototype

public void run(TestResult result) 

Source Link

Document

Stub only

Usage

From source file:Main.java

public static void main(String[] a) {
    // add the test's in the suite
    TestSuite suite = new TestSuite(TestJunit1.class, TestJunit2.class, TestJunit3.class);
    TestResult result = new TestResult();
    suite.run(result);
    System.out.println("Number of test cases = " + result.runCount());
}