A B C G H I O P S T V

A

afterInit() - Method in class org.unitils.spring.profile.ProfileModule
 
afterInit() - Method in class org.unitils.spring.SpringModule
No after initialization needed for this module
afterTestClass(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
afterTestMethod(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
afterTestTearDown(Object, Method) - Method in class org.unitils.spring.SpringModule.SpringTestListener
 
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

beforeTestClass(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
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

checkIfEverythingIsInPlace(Class<?>) - Method in class org.unitils.spring.profile.ProfileModule
This method checks if the testclass contains a SpringApplicationContext and a ConfigureProfile.
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
 
closeApplicationContextIfNeeded(Object) - Method in class org.unitils.spring.SpringModule
 
closeContext() - Method in class org.unitils.spring.profile.ProfileModule
The context will be closed.
ConfigureProfile - Annotation Type in org.unitils.spring.annotation
Choose which Spring profile you want to use.
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.
getCtx() - Method in class org.unitils.spring.profile.ProfileModule
 
getDatabaseModule() - Method in class org.unitils.spring.SpringModule
 
getProfile(Class<?>) - Method in class org.unitils.spring.profile.ProfileModule
First it will look if the ConfigureProfile is present.
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.profile.ProfileModule
 
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.profile.ProfileModule
 
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.
injectBeans(Object) - Method in class org.unitils.spring.profile.ProfileModule
The injection of beans doesn't happen automatically anymore when you use SpringBeanByName or SpringBeanByType
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.profile - package org.unitils.spring.profile
 
org.unitils.spring.util - package org.unitils.spring.util
 

P

prepareTestInstance(TestContext) - Method in class org.unitils.spring.util.SpringUnitilsAdaptorTestExecutionListener
 
ProfileModule - Class in org.unitils.spring.profile
ProfileModule - Since Spring 3 their is the ability to use a profile.
ProfileModule() - Constructor for class org.unitils.spring.profile.ProfileModule
 
PROPKEY_APPLICATION_CONTEXT_FACTORY_CLASS_NAME - Static variable in class org.unitils.spring.SpringModule
 

S

setConfigurationAsTypeConfiguration(AnnotationConfigApplicationContext, ConfigureProfile) - Method in class org.unitils.spring.profile.ProfileModule
How to do the configuration when you use Configuration
setConfigurationAsTypeSpringApplicationContext(GenericXmlApplicationContext, ConfigureProfile, String[]) - Method in class org.unitils.spring.profile.ProfileModule
 
setCtx(GenericApplicationContext) - Method in class org.unitils.spring.profile.ProfileModule
 
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
 

T

TypeConfiguration - Enum in org.unitils.spring.profile
How do you want to configure you're beans?

V

valueOf(String) - Static method in enum org.unitils.spring.profile.TypeConfiguration
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.unitils.spring.profile.TypeConfiguration
Returns an array containing the constants of this enum type, in the order they are declared.

A B C G H I O P S T V

Copyright © 2014. All Rights Reserved.