org.glassfish.tests.utils
Class ConfigApiTest

java.lang.Object
  extended by org.glassfish.tests.utils.ConfigApiTest

public abstract class ConfigApiTest
extends Object

Super class for all config-api related tests, give access to a configured habitat


Field Summary
static Logger logger
           
 
Constructor Summary
ConfigApiTest()
           
 
Method Summary
 void decorate(org.jvnet.hk2.component.Habitat habitat)
           
abstract  org.jvnet.hk2.config.DomDocument getDocument(org.jvnet.hk2.component.Habitat habitat)
           
 String getFileName()
          Returns the file name without the .xml extension to load the test configuration from.
 org.jvnet.hk2.component.Habitat getHabitat()
          Returns a configured Habitat with the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

ConfigApiTest

public ConfigApiTest()
Method Detail

getFileName

public String getFileName()
Returns the file name without the .xml extension to load the test configuration from. By default, it's the name of the TestClass.

Returns:
the configuration file name

getHabitat

public org.jvnet.hk2.component.Habitat getHabitat()
Returns a configured Habitat with the configuration.

Returns:
a configured Habitat

getDocument

public abstract org.jvnet.hk2.config.DomDocument getDocument(org.jvnet.hk2.component.Habitat habitat)

decorate

public void decorate(org.jvnet.hk2.component.Habitat habitat)


Copyright © 2012. All Rights Reserved.