it.openutils.testing.testng
Class SpringTestCase

java.lang.Object
  extended by it.openutils.testing.testng.SpringTestCase
Direct Known Subclasses:
DbUnitTestCase

Deprecated. AbstractTestNGSpringContextTests

@Deprecated
public abstract class SpringTestCase
extends java.lang.Object

Base class for running spring-based tests.

Version:
$Revision $ ($Author $)
Author:
fgiust

Field Summary
protected static org.springframework.context.ApplicationContext ctx
          Deprecated. Spring application context.
static java.lang.String DEFAULT_TEST_CONTEXT_FILE
          Deprecated. Default Spring context initilization file used for tests.
protected  org.slf4j.Logger log
          Deprecated. logger.
 
Constructor Summary
SpringTestCase()
          Deprecated.  
 
Method Summary
protected  void initAppContextBeanDefinitionReader(org.springframework.beans.factory.xml.XmlBeanDefinitionReader beanDefinitionReader)
          Deprecated. You can override this method if you need to pass a custom documentReaderClass to the spring bean definition reader.
protected  void setUpSpring()
          Deprecated. Setup Spring application context, by loading the /spring-tests.xml file from the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEST_CONTEXT_FILE

public static final java.lang.String DEFAULT_TEST_CONTEXT_FILE
Deprecated. 
Default Spring context initilization file used for tests.

See Also:
Constant Field Values

ctx

protected static org.springframework.context.ApplicationContext ctx
Deprecated. 
Spring application context.


log

protected org.slf4j.Logger log
Deprecated. 
logger. Not static so it can be reused in tests

Constructor Detail

SpringTestCase

public SpringTestCase()
Deprecated. 
Method Detail

setUpSpring

protected void setUpSpring()
Deprecated. 
Setup Spring application context, by loading the /spring-tests.xml file from the classpath.

Throws:
java.lang.Exception

initAppContextBeanDefinitionReader

protected void initAppContextBeanDefinitionReader(org.springframework.beans.factory.xml.XmlBeanDefinitionReader beanDefinitionReader)
Deprecated. 
You can override this method if you need to pass a custom documentReaderClass to the spring bean definition reader.

Parameters:
beanDefinitionReader - XmlBeanDefinitionReader instance


Copyright © 2008 Openmind. All Rights Reserved.