Example usage for junit.framework TestResult runCount

List of usage examples for junit.framework TestResult runCount

Introduction

In this page you can find the example usage for junit.framework TestResult runCount.

Prototype

public synchronized int runCount() 

Source Link

Document

Gets the number of run tests.

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);/*from ww  w . j  a  v a  2 s  .co m*/
    System.out.println("Number of test cases = " + result.runCount());
}