org.jboss.osgi.husky.runtime.osgi
Class OSGiJUnitRunner

java.lang.Object
  extended by org.jboss.osgi.husky.runtime.junit.JUnitRunner
      extended by org.jboss.osgi.husky.runtime.osgi.OSGiJUnitRunner
All Implemented Interfaces:
Runner

public class OSGiJUnitRunner
extends JUnitRunner

An extension to the JUnitRunner that injects the OSGi BundleContext.

Since:
16-May-2009
Author:
Thomas.Diesler@jboss.com

Constructor Summary
OSGiJUnitRunner()
           
 
Method Summary
protected  void injectField(Field field, Object target, Context context)
           
protected  void injectMethod(Method method, Object target, Context context)
           
 
Methods inherited from class org.jboss.osgi.husky.runtime.junit.JUnitRunner
injectContext, runTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiJUnitRunner

public OSGiJUnitRunner()
Method Detail

injectField

protected void injectField(Field field,
                           Object target,
                           Context context)
                    throws IllegalAccessException
Overrides:
injectField in class JUnitRunner
Throws:
IllegalAccessException

injectMethod

protected void injectMethod(Method method,
                            Object target,
                            Context context)
                     throws IllegalAccessException,
                            InvocationTargetException
Overrides:
injectMethod in class JUnitRunner
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.