org.apache.jetspeed.components.test
Class AbstractSpringTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jetspeed.components.test.AbstractSpringTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractSpringTestCase
extends junit.framework.TestCase

AbstractSpringTestCase

Version:
$Id: AbstractSpringTestCase.java 598474 2007-11-27 00:37:16Z ate $
Author:
Scott T. Weaver

Field Summary
protected  org.springframework.context.support.ClassPathXmlApplicationContext ctx
          Provides access to the Spring ApplicationContext.
 
Constructor Summary
AbstractSpringTestCase()
           
 
Method Summary
protected  String[] getBootConfigurations()
          optional specification of boot spring configurations
protected abstract  String[] getConfigurations()
          required specification of spring configurations
protected  Properties getPostProcessProperties()
           
protected  void setUp()
          setup Spring context as part of test setup
protected  void tearDown()
          close Spring context as part of test teardown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ctx

protected org.springframework.context.support.ClassPathXmlApplicationContext ctx
Provides access to the Spring ApplicationContext.

Constructor Detail

AbstractSpringTestCase

public AbstractSpringTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
setup Spring context as part of test setup

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
close Spring context as part of test teardown

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

getConfigurations

protected abstract String[] getConfigurations()
required specification of spring configurations


getBootConfigurations

protected String[] getBootConfigurations()
optional specification of boot spring configurations


getPostProcessProperties

protected Properties getPostProcessProperties()


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