|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.TestSuite
org.apache.felix.ipojo.junit4osgi.OSGiTestSuite
public class OSGiTestSuite
OSGi Test Suite. Allow the injection of the bundle context.
Field Summary | |
---|---|
protected BundleContext |
m_context
The bundle context of the bundle containing the test suite. |
Constructor Summary | |
---|---|
OSGiTestSuite(BundleContext bc)
Creates a OSGiTestSuite. |
|
OSGiTestSuite(Class clazz,
BundleContext bc)
Creates a OSGiTestSuite. |
|
OSGiTestSuite(Class clazz,
String name,
BundleContext bc)
Creates a OSGiTestSuite. |
|
OSGiTestSuite(String name,
BundleContext bc)
Creates a OSGiTestSuite. |
Method Summary | |
---|---|
void |
addTestSuite(Class testClass)
Adds the tests from the given class to the suite. |
void |
runTest(junit.framework.Test test,
junit.framework.TestResult result)
Executes the given Test with the
given TestResult . |
void |
setBundleContext(BundleContext bc)
Set the bundle context. |
Methods inherited from class junit.framework.TestSuite |
---|
addTest, countTestCases, createTest, getName, getTestConstructor, run, setName, testAt, testCount, tests, toString, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BundleContext m_context
Constructor Detail |
---|
public OSGiTestSuite(Class clazz, BundleContext bc)
clazz
- the classbc
- the bundle contextTestSuite.TestSuite(Class)
public OSGiTestSuite(BundleContext bc)
bc
- the bundle contextTestSuite.TestSuite()
public OSGiTestSuite(String name, BundleContext bc)
name
- the namebc
- the bundle contextTestSuite.TestSuite(String)
public OSGiTestSuite(Class clazz, String name, BundleContext bc)
clazz
- the classname
- the namebc
- the bundle contextTestSuite.TestSuite(Class, String)
Method Detail |
---|
public void setBundleContext(BundleContext bc)
bc
- the bundle context to use.public void addTestSuite(Class testClass)
addTestSuite
in class junit.framework.TestSuite
testClass
- the class to addpublic void runTest(junit.framework.Test test, junit.framework.TestResult result)
Test
with the
given TestResult
.
runTest
in class junit.framework.TestSuite
test
- the testresult
- the test result.TestSuite.runTest(junit.framework.Test, junit.framework.TestResult)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |