org.jvnet.hk2.junit
Class Hk2TestServices

java.lang.Object
  extended by org.jvnet.hk2.junit.Hk2TestServices

public class Hk2TestServices
extends java.lang.Object

Services available to junit tests running with the Hk2Runner runner.

Caller's can optionally use a caching scheme using the system property -Dhk2testservices.file.caching=true .

Author:
Jerome Dochez

Constructor Summary
  Hk2TestServices()
           
protected Hk2TestServices(java.lang.Class<? extends HabitatFactory> habitatFactoryClass, java.lang.Class<? extends InhabitantsParserFactory> ipFactoryClass, boolean defaultRLSEnabled, boolean rlsConstraintsEnabled, java.lang.Class<? extends java.io.FileFilter> classpathFilter)
           
 
Method Summary
 Habitat createHabitat()
           
 InhabitantsParser createInhabitantsParser(Habitat h)
           
 Habitat createPopulatedHabitat()
           
 Habitat getHabitat()
           
protected  void populateHabitat(Habitat habitat, InhabitantsParser ip)
           
protected  void preInitialized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hk2TestServices

public Hk2TestServices()

Hk2TestServices

protected Hk2TestServices(java.lang.Class<? extends HabitatFactory> habitatFactoryClass,
                          java.lang.Class<? extends InhabitantsParserFactory> ipFactoryClass,
                          boolean defaultRLSEnabled,
                          boolean rlsConstraintsEnabled,
                          java.lang.Class<? extends java.io.FileFilter> classpathFilter)
Method Detail

populateHabitat

protected void populateHabitat(Habitat habitat,
                               InhabitantsParser ip)

preInitialized

protected void preInitialized()

getHabitat

public Habitat getHabitat()

createHabitat

public Habitat createHabitat()
                      throws ComponentException
Throws:
ComponentException

createPopulatedHabitat

public Habitat createPopulatedHabitat()
                               throws ComponentException
Throws:
ComponentException

createInhabitantsParser

public InhabitantsParser createInhabitantsParser(Habitat h)
                                          throws ComponentException
Throws:
ComponentException


Copyright © 2011 Oracle Corporation. All Rights Reserved.