org.apache.felix.ipojo.junit4osgi
Interface OSGiJunitRunner

All Known Implementing Classes:
JunitExtender

public interface OSGiJunitRunner

OSGi Junit Runner.

Author:
Felix Project Team

Method Summary
 List getTests()
          Get the list of available test suites.
 List getTests(long bundleId)
          Get the tests from the given bundle.
 List run()
          Run the tests.
 List run(long bundleId)
          Run the tests from the given bundle.
 junit.framework.TestResult run(junit.framework.Test test)
          Run the given test.
 void setResultPrinter(PrintStream ps)
          Set the output stream of the runner.
 

Method Detail

setResultPrinter

void setResultPrinter(PrintStream ps)
Set the output stream of the runner.

Parameters:
ps - the print stream.

run

List run()
Run the tests.

Returns:
the list of TestResult.

run

List run(long bundleId)
Run the tests from the given bundle.

Parameters:
bundleId - the bundle id containing the tests.
Returns:
the list of the test results.

getTests

List getTests()
Get the list of available test suites.

Returns:
the list of Test objects.

getTests

List getTests(long bundleId)
Get the tests from the given bundle.

Parameters:
bundleId - the bundle id.
Returns:
the list of Test contained in the given bundle.

run

junit.framework.TestResult run(junit.framework.Test test)
Run the given test.

Parameters:
test - the test to execute.
Returns:
the result.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.