Knopflerfish OSGi 5.2.0

org.knopflerfish.service.junit
Interface JUnitService


public interface JUnitService


Method Summary
 junit.framework.TestSuite getTestSuite(java.lang.String id, java.lang.String subid)
          Get a specified test (which is registered in the Framework).
 void runTest(java.io.PrintWriter out, junit.framework.TestSuite suite)
          Run a specified test and dump the result as XML to the specified writer.
 

Method Detail

runTest

void runTest(java.io.PrintWriter out,
             junit.framework.TestSuite suite)
             throws java.io.IOException
Run a specified test and dump the result as XML to the specified writer.

Parameters:
out - writer to which XML formatted results should be written.
suite - The test suite to run
Throws:
java.io.IOException - if result cannot be written to the writer

getTestSuite

junit.framework.TestSuite getTestSuite(java.lang.String id,
                                       java.lang.String subid)
Get a specified test (which is registered in the Framework).

All test are wrapped into TestSuites, even if they are registered as plain Tests.

Parameters:
id - service.pid which Test (or TestSuite) is registered as
subid - optional subtest name of TestSuites. Can be null

Knopflerfish OSGi 5.2.0