org.sakaiproject.component.junit.spring
Class ApplicationContextBaseTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.sakaiproject.component.junit.spring.ApplicationContextBaseTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AgentGroupManagerTest, AuthzIntegrationTest, SakaiPersonManagerTest, SuperStructureManagerTest, TypeManagerTest

public class ApplicationContextBaseTest
extends junit.framework.TestCase

You should extend this class to get the Spring bean factory (ApplicationContext) initialized. Currently, it loads the components.xml from shared components and a "local" components.xml from the root of the classpath. See maven's project.xml on how to include your local components.xml in the root of the units tests' classpath through the use of .

Version:
$Id: ApplicationContextBaseTest.java 632 2005-07-14 21:22:50Z janderse@umich.edu $
Author:
Lance Speelmon

Constructor Summary
ApplicationContextBaseTest()
           
ApplicationContextBaseTest(String name)
           
 
Method Summary
protected  ApplicationContext getApplicationContext()
           
 String getApplicationContextInfo()
           
static void main(String[] args)
           
protected  void setUp()
           
protected  void 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
 

Constructor Detail

ApplicationContextBaseTest

public ApplicationContextBaseTest()

ApplicationContextBaseTest

public ApplicationContextBaseTest(String name)
Method Detail

getApplicationContextInfo

public String getApplicationContextInfo()

main

public static void main(String[] args)

getApplicationContext

protected ApplicationContext getApplicationContext()
Returns:
Returns the applicationContext.

setUp

protected void setUp()
              throws Exception
Throws:
Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception
See Also:
TestCase.tearDown()