org.jvnet.hk2.junit
Class Hk2Runner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.jvnet.hk2.junit.Hk2Runner

public class Hk2Runner
extends org.junit.runner.Runner

JUnit runner for hk2 enabled tests. Life-cycle of the test will be managed by this runner which will allow for dependency injection

Author:
Jerome Dochez

Constructor Summary
Hk2Runner(Class<?> testClass)
           
 
Method Summary
static Habitat createHabitat()
           
 org.junit.runner.Description getDescription()
           
static Habitat getHabitat()
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hk2Runner

public Hk2Runner(Class<?> testClass)
Method Detail

getDescription

public org.junit.runner.Description getDescription()
Specified by:
getDescription in class org.junit.runner.Runner

run

public void run(org.junit.runner.notification.RunNotifier notifier)
Specified by:
run in class org.junit.runner.Runner

getHabitat

public static Habitat getHabitat()

createHabitat

public static Habitat createHabitat()


Copyright © 2011 Oracle Corporation. All Rights Reserved.