org.jboss.osgi.husky.runtime.junit
Class JUnitRunner
java.lang.Object
org.jboss.osgi.husky.runtime.junit.JUnitRunner
- All Implemented Interfaces:
- Runner
- Direct Known Subclasses:
- OSGiJUnitRunner
public class JUnitRunner
- extends Object
- implements Runner
An implementation of a Runner
that uses the
JUnit4 Test Runner.
- Since:
- 16-May-2009
- Author:
- Thomas.Diesler@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitRunner
public JUnitRunner()
runTests
public Response runTests(Context context,
Class<?> testClass)
- Run the tests in the given test class.
- Specified by:
runTests
in interface Runner
injectContext
public void injectContext(Class<?> testClass,
Object target,
Context context)
throws Exception
- Description copied from interface:
Runner
- Inject the
Context
in the test case instance
- Specified by:
injectContext
in interface Runner
- Throws:
Exception
injectMethod
protected void injectMethod(Method method,
Object target,
Context value)
throws IllegalAccessException,
InvocationTargetException
- Throws:
IllegalAccessException
InvocationTargetException
injectField
protected void injectField(Field field,
Object target,
Context value)
throws IllegalAccessException
- Throws:
IllegalAccessException
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.