org.apache.jetspeed.testhelpers
Class DatasourceHelper

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

public class DatasourceHelper
extends AbstractTestHelper

This helper adds a "datasource" based on the maven build.properties/project.properties database settings passed to the test case, (see AbstractTestHelper).

Author:
Scott T. Weaver

Field Summary
protected  org.apache.commons.dbcp.BasicDataSource datasource
           
static java.lang.String DATASOURCE_KEY
           
 
Fields inherited from class org.apache.jetspeed.testhelpers.AbstractTestHelper
APP_CONTEXT
 
Constructor Summary
DatasourceHelper(java.util.Map context)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class org.apache.jetspeed.testhelpers.AbstractTestHelper
addBeanFactory, getContext, getUserProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASOURCE_KEY

public static final java.lang.String DATASOURCE_KEY
See Also:
Constant Field Values

datasource

protected org.apache.commons.dbcp.BasicDataSource datasource
Constructor Detail

DatasourceHelper

public DatasourceHelper(java.util.Map context)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Throws:
java.lang.Exception


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