org.jboss.osgi.husky.runtime.junit
Class JUnitPackageListener

java.lang.Object
  extended by org.jboss.osgi.husky.internal.AbstractPackageListener
      extended by org.jboss.osgi.husky.runtime.junit.JUnitPackageListener
All Implemented Interfaces:
PackageListener
Direct Known Subclasses:
OSGiJUnitPackageListener

public class JUnitPackageListener
extends org.jboss.osgi.husky.internal.AbstractPackageListener

An implementation of a Runner that uses the JUnit4 Test Runner.

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

Constructor Summary
JUnitPackageListener(List<String> packages)
           
 
Method Summary
 Context getContext()
           
 Runner getRunner()
           
 Class<?> loadTestClass(String className)
           
 
Methods inherited from class org.jboss.osgi.husky.internal.AbstractPackageListener
getPackageNames, match, runTests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JUnitPackageListener

public JUnitPackageListener(List<String> packages)
Method Detail

getContext

public Context getContext()
Specified by:
getContext in class org.jboss.osgi.husky.internal.AbstractPackageListener

getRunner

public Runner getRunner()
Specified by:
getRunner in class org.jboss.osgi.husky.internal.AbstractPackageListener

loadTestClass

public Class<?> loadTestClass(String className)
                       throws ClassNotFoundException
Specified by:
loadTestClass in class org.jboss.osgi.husky.internal.AbstractPackageListener
Throws:
ClassNotFoundException


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