Example usage for junit.framework TestResult startTest

List of usage examples for junit.framework TestResult startTest

Introduction

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

Prototype

public void startTest(Test test) 

Source Link

Document

Informs the result that a test will be started.

Usage

From source file:org.eclipse.gemini.blueprint.test.AbstractOsgiTests.java

/**
 * {@inheritDoc}/*from w ww  .  j  a v  a 2s . c  o m*/
 * 
 * <p/> Replacement run method. Gets a hold of the TestRunner used for running this test so it can populate it with
 * the results retrieved from OSGi.
 */
public final void run(TestResult result) {

    // get a hold of the test result
    originalResult = result;

    result.startTest(osgiJUnitTest);
    result.runProtected(osgiJUnitTest, new Protectable() {

        public void protect() throws Throwable {
            AbstractOsgiTests.this.runBare();
        }
    });
    result.endTest(osgiJUnitTest);

    // super.run(result);
}