A B C G H I O P S

A

afterInit() - Method in class org.unitils.spring.SpringModule
No after initialization needed for this module
afterTestMethod(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
afterTestTearDown(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
ApplicationContextFactory - Interface in org.unitils.spring.util
Factory for creating Spring ApplicationContexts.
applicationContextFactory - Variable in class org.unitils.spring.util.ApplicationContextManager
Factory for creating ApplicationContexts
ApplicationContextManager - Class in org.unitils.spring.util
A class for managing and creating Spring application contexts.
ApplicationContextManager(ApplicationContextFactory) - Constructor for class org.unitils.spring.util.ApplicationContextManager
Creates a new instance, using the given ApplicationContextFactory.

B

beforeTestMethod(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
beforeTestSetUp(Object, Method) - Method in class org.unitils.spring.SpringModule.SpringTestListener
 
beforeTestSetUp(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 

C

ClassPathXmlApplicationContextFactory - Class in org.unitils.spring.util
An ApplicationContextFactory that creates an instance of the type ClassPathXmlApplicationContext.
ClassPathXmlApplicationContextFactory() - Constructor for class org.unitils.spring.util.ClassPathXmlApplicationContextFactory
 
createApplicationContext(List<String>) - Method in interface org.unitils.spring.util.ApplicationContextFactory
Create an ApplicationContext, in which the complete list of the given resources is loaded.
createApplicationContext(List<String>) - Method in class org.unitils.spring.util.ClassPathXmlApplicationContextFactory
Create an ClassPathXmlApplicationContext for the given locations on which refresh has not yet been called
createInstanceForValues(Object, Class<?>, List<String>) - Method in class org.unitils.spring.util.ApplicationContextManager
Creates a new application context for the given locations.

G

getAnnotationValues(SpringApplicationContext) - Method in class org.unitils.spring.util.ApplicationContextManager
Gets the locations that are specified for the given SpringApplicationContext annotation.
getApplicationContext(Object) - Method in class org.unitils.spring.SpringModule
Gets the application context for this test.
getApplicationContext(Object) - Method in class org.unitils.spring.util.ApplicationContextManager
Gets the application context for the given test as described in the class javadoc.
getDatabaseModule() - Method in class org.unitils.spring.SpringModule
 
getSpringBean(Object, String) - Method in class org.unitils.spring.SpringModule
Gets the spring bean with the given name.
getSpringBeanByType(Object, Class<T>) - Method in class org.unitils.spring.SpringModule
Gets the spring bean with the given type.
getTestListener() - Method in class org.unitils.spring.SpringModule
 
getTestListener() - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
getUnitils() - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
Returns the default singleton instance of Unitils

H

hasApplicationContext(Object) - Method in class org.unitils.spring.util.ApplicationContextManager
Checks whether the given test object has an application context linked to it.

I

init(Properties) - Method in class org.unitils.spring.SpringModule
Initializes this module using the given configuration
injectApplicationContext(Object) - Method in class org.unitils.spring.SpringModule
Gets the application context for this class and sets it on the fields and setter methods that are annotated with SpringApplicationContext.
injectSpringBeans(Object) - Method in class org.unitils.spring.SpringModule
Injects spring beans into all fields that are annotated with SpringBean.
injectSpringBeansByName(Object) - Method in class org.unitils.spring.SpringModule
Injects spring beans into all fields that are annotated with SpringBeanByName.
injectSpringBeansByType(Object) - Method in class org.unitils.spring.SpringModule
Injects spring beans into all fields methods that are annotated with SpringBeanByType.
invalidateApplicationContext(Class<?>...) - Method in class org.unitils.spring.SpringModule
Forces the reloading of the application context the next time that it is requested.
invalidateApplicationContext(Class<?>...) - Static method in class org.unitils.spring.SpringUnitils
Forces the reloading of the application context the next time that it is requested.
invalidateApplicationContext(Class<?>...) - Method in class org.unitils.spring.util.ApplicationContextManager
Forces the reloading of the application context the next time that it is requested.
isApplicationContextConfiguredFor(Object) - Method in class org.unitils.spring.SpringModule
 
isDatabaseModuleEnabled() - Method in class org.unitils.spring.SpringModule
 

O

org.unitils.spring - package org.unitils.spring
 
org.unitils.spring.annotation - package org.unitils.spring.annotation
 
org.unitils.spring.util - package org.unitils.spring.util
 

P

prepareTestInstance(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
PROPKEY_APPLICATION_CONTEXT_FACTORY_CLASS_NAME - Static variable in class org.unitils.spring.SpringModule
 

S

SpringApplicationContext - Annotation Type in org.unitils.spring.annotation
This annotation can be used in three different ways: If its value attribute is specified, the goal is to configure a spring ApplicationContext for this test object.
SpringBean - Annotation Type in org.unitils.spring.annotation
This annotation can be used on fields or single-argument void methods, in order to inject a bean from a spring ApplicationContext.
SpringBeanByName - Annotation Type in org.unitils.spring.annotation
This annotation can be used on fields or setter methods, in order to inject a bean from a spring ApplicationContext.
SpringBeanByType - Annotation Type in org.unitils.spring.annotation
This annotation can be used on fields or setter methods, in order to inject a bean from a spring ApplicationContext.
SpringModule - Class in org.unitils.spring
A module for Spring enabling a test class by offering an easy way to load application contexts and an easy way of retrieving beans from the context and injecting them in the test.
SpringModule() - Constructor for class org.unitils.spring.SpringModule
 
SpringModule.SpringTestListener - Class in org.unitils.spring
The TestListener for this module
SpringModule.SpringTestListener() - Constructor for class org.unitils.spring.SpringModule.SpringTestListener
 
SpringUnitils - Class in org.unitils.spring
Utility facade for handling Spring things such as invalidating a cached application context.
SpringUnitils() - Constructor for class org.unitils.spring.SpringUnitils
 
SpringUnitilsAdaptorTestExecutionListener - Class in org.unitils.spring.util
 
SpringUnitilsAdaptorTestExecutionListener() - Constructor for class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 

A B C G H I O P S

Copyright © 2009. All Rights Reserved.