|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.internal.runners.TestMethod
org.ops4j.pax.exam.junit.internal.JUnit4TestMethod
public class JUnit4TestMethod
A TestMethod
that upon invokation starts a TestContainer
and executes the test in the test container.
Constructor Summary | |
---|---|
JUnit4TestMethod(java.lang.reflect.Method testMethod,
org.junit.internal.runners.TestClass testClass,
FrameworkOption frameworkOption,
Option... userOptions)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getName()
Getter. |
java.lang.reflect.Method |
getTestMethod()
Getter. |
void |
invoke(java.lang.Object test)
Starts the test container, installs the test bundle and executes the test within the container. |
Methods inherited from class org.junit.internal.runners.TestMethod |
---|
getExpectedException, getTimeout, isIgnored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnit4TestMethod(java.lang.reflect.Method testMethod, org.junit.internal.runners.TestClass testClass, FrameworkOption frameworkOption, Option... userOptions)
testMethod
- test method (cannot be null)testClass
- test class (cannot be null)frameworkOption
- framework option (on which framework the test method should be run) (can be null = default
framework)userOptions
- user options (can be null)Method Detail |
---|
public void invoke(java.lang.Object test) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
invoke
in class org.junit.internal.runners.TestMethod
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.reflect.Method getTestMethod()
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |