Example usage for junit.framework TestResult endTest

List of usage examples for junit.framework TestResult endTest

Introduction

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

Prototype

public void endTest(Test test) 

Source Link

Document

Informs the result that a test was completed.

Usage

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

/**
 * {@inheritDoc}/*from   www.  ja v  a  2 s .  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);
}