org.apache.jetspeed.testhelpers
Class AbstractTestHelper

java.lang.Object
  extended by org.apache.jetspeed.testhelpers.AbstractTestHelper
All Implemented Interfaces:
TestHelper
Direct Known Subclasses:
BuildPropertiesHelper, DatasourceHelper

public abstract class AbstractTestHelper
extends Object
implements TestHelper


Field Summary
static String APP_CONTEXT
           
private  Map context
           
private static org.apache.commons.configuration.CompositeConfiguration USER_PROPERTIES
           
 
Constructor Summary
AbstractTestHelper()
           
AbstractTestHelper(Map context)
           
 
Method Summary
protected  void addBeanFactory(org.springframework.beans.factory.config.ConfigurableBeanFactory bf)
           
 Map getContext()
           
 String getUserProperty(String key)
           
private static org.apache.commons.configuration.Configuration loadConfiguration(File propsFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.testhelpers.TestHelper
setUp, tearDown
 

Field Detail

APP_CONTEXT

public static final String APP_CONTEXT
See Also:
Constant Field Values

context

private final Map context

USER_PROPERTIES

private static final org.apache.commons.configuration.CompositeConfiguration USER_PROPERTIES
Constructor Detail

AbstractTestHelper

public AbstractTestHelper(Map context)

AbstractTestHelper

public AbstractTestHelper()
Method Detail

loadConfiguration

private static org.apache.commons.configuration.Configuration loadConfiguration(File propsFile)
                                                                         throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

getContext

public Map getContext()
Specified by:
getContext in interface TestHelper

getUserProperty

public final String getUserProperty(String key)

addBeanFactory

protected final void addBeanFactory(org.springframework.beans.factory.config.ConfigurableBeanFactory bf)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.