spring-test
A B C D E F G H I J L M N O P R S T U V W

A

AbstractAnnotationAwareTransactionalTests - Class in org.springframework.test.annotation
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractTransactionalJUnit4SpringContextTests)
AbstractAnnotationAwareTransactionalTests() - Constructor for class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Default constructor for AbstractAnnotationAwareTransactionalTests, which delegates to AbstractAnnotationAwareTransactionalTests.AbstractAnnotationAwareTransactionalTests(String).
AbstractAnnotationAwareTransactionalTests(String) - Constructor for class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Constructs a new AbstractAnnotationAwareTransactionalTests instance with the specified JUnit name and retrieves the configured (or default) ProfileValueSource.
AbstractAspectjJpaTests - Class in org.springframework.test.jpa
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests)
AbstractAspectjJpaTests() - Constructor for class org.springframework.test.jpa.AbstractAspectjJpaTests
Deprecated.  
AbstractContextLoader - Class in org.springframework.test.context.support
Abstract application context loader that provides a basis for all concrete implementations of the ContextLoader SPI.
AbstractContextLoader() - Constructor for class org.springframework.test.context.support.AbstractContextLoader
 
AbstractDependencyInjectionSpringContextTests - Class in org.springframework.test
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit4SpringContextTests)
AbstractDependencyInjectionSpringContextTests() - Constructor for class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Default constructor for AbstractDependencyInjectionSpringContextTests.
AbstractDependencyInjectionSpringContextTests(String) - Constructor for class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Constructor for AbstractDependencyInjectionSpringContextTests with a JUnit name.
AbstractGenericContextLoader - Class in org.springframework.test.context.support
Abstract, generic extension of AbstractContextLoader that loads a GenericApplicationContext.
AbstractGenericContextLoader() - Constructor for class org.springframework.test.context.support.AbstractGenericContextLoader
 
AbstractJpaTests - Class in org.springframework.test.jpa
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests)
AbstractJpaTests() - Constructor for class org.springframework.test.jpa.AbstractJpaTests
Deprecated.  
AbstractJUnit38SpringContextTests - Class in org.springframework.test.context.junit38
Deprecated. as of Spring 3.1, in favor of using AbstractJUnit4SpringContextTests
AbstractJUnit38SpringContextTests() - Constructor for class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Constructs a new AbstractJUnit38SpringContextTests instance; initializes the internal TestContextManager for the current test; and retrieves the configured (or default) ProfileValueSource.
AbstractJUnit38SpringContextTests(String) - Constructor for class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Constructs a new AbstractJUnit38SpringContextTests instance with the supplied name; initializes the internal TestContextManager for the current test; and retrieves the configured (or default) ProfileValueSource.
AbstractJUnit4SpringContextTests - Class in org.springframework.test.context.junit4
Abstract base test class which integrates the Spring TestContext Framework with explicit ApplicationContext testing support in a JUnit 4.5+ environment.
AbstractJUnit4SpringContextTests() - Constructor for class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
 
AbstractModelAndViewTests - Class in org.springframework.test.web
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) or ModelAndViewAssert with JUnit 4 and TestNG.
AbstractModelAndViewTests() - Constructor for class org.springframework.test.web.AbstractModelAndViewTests
Deprecated.  
AbstractSingleSpringContextTests - Class in org.springframework.test
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit4SpringContextTests)
AbstractSingleSpringContextTests() - Constructor for class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Default constructor for AbstractSingleSpringContextTests.
AbstractSingleSpringContextTests(String) - Constructor for class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Constructor for AbstractSingleSpringContextTests with a JUnit name.
AbstractSpringContextTests - Class in org.springframework.test
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit4SpringContextTests)
AbstractSpringContextTests() - Constructor for class org.springframework.test.AbstractSpringContextTests
Deprecated. Default constructor for AbstractSpringContextTests.
AbstractSpringContextTests(String) - Constructor for class org.springframework.test.AbstractSpringContextTests
Deprecated. Constructor for AbstractSpringContextTests with a JUnit name.
AbstractTestExecutionListener - Class in org.springframework.test.context.support
Abstract implementation of the TestExecutionListener interface which provides empty method stubs.
AbstractTestExecutionListener() - Constructor for class org.springframework.test.context.support.AbstractTestExecutionListener
 
AbstractTestNGSpringContextTests - Class in org.springframework.test.context.testng
Abstract base test class which integrates the Spring TestContext Framework with explicit ApplicationContext testing support in a TestNG environment.
AbstractTestNGSpringContextTests() - Constructor for class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Construct a new AbstractTestNGSpringContextTests instance and initialize the internal TestContextManager for the current test.
AbstractTransactionalDataSourceSpringContextTests - Class in org.springframework.test
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractTransactionalJUnit4SpringContextTests)
AbstractTransactionalDataSourceSpringContextTests() - Constructor for class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Default constructor for AbstractTransactionalDataSourceSpringContextTests.
AbstractTransactionalDataSourceSpringContextTests(String) - Constructor for class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Constructor for AbstractTransactionalDataSourceSpringContextTests with a JUnit name.
AbstractTransactionalJUnit38SpringContextTests - Class in org.springframework.test.context.junit38
Deprecated. as of Spring 3.1, in favor of using AbstractTransactionalJUnit4SpringContextTests
AbstractTransactionalJUnit38SpringContextTests() - Constructor for class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Constructs a new AbstractTransactionalJUnit38SpringContextTests instance.
AbstractTransactionalJUnit38SpringContextTests(String) - Constructor for class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Constructs a new AbstractTransactionalJUnit38SpringContextTests instance with the supplied name.
AbstractTransactionalJUnit4SpringContextTests - Class in org.springframework.test.context.junit4
Abstract transactional extension of AbstractJUnit4SpringContextTests which adds convenience functionality for JDBC access.
AbstractTransactionalJUnit4SpringContextTests() - Constructor for class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
 
AbstractTransactionalSpringContextTests - Class in org.springframework.test
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractTransactionalJUnit4SpringContextTests)
AbstractTransactionalSpringContextTests() - Constructor for class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Default constructor for AbstractTransactionalSpringContextTests.
AbstractTransactionalSpringContextTests(String) - Constructor for class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Constructor for AbstractTransactionalSpringContextTests with a JUnit name.
AbstractTransactionalTestNGSpringContextTests - Class in org.springframework.test.context.testng
Abstract transactional extension of AbstractTestNGSpringContextTests which adds convenience functionality for JDBC access.
AbstractTransactionalTestNGSpringContextTests() - Constructor for class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
 
access() - Method in class org.springframework.mock.web.MockHttpSession
 
access() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
activate() - Method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
Register the context builder by registering it with the JNDI NamingManager.
ActiveProfiles - Annotation Type in org.springframework.test.context
ActiveProfiles is a class-level annotation that is used to declare which active bean definition profiles should be used when loading an ApplicationContext for test classes.
addContainerRuntimeOption(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addContainerRuntimeOption(String, String[]) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addContainerRuntimeOption(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
addContext(Object, ConfigurableApplicationContext) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Explicitly add an ApplicationContext instance under a given key.
addCookie(Cookie) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
addDateHeader(String, long) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
addFile(MultipartFile) - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
Add a file to this request.
addFile(MultipartFile) - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
Add a file to this request.
addHeader(String, Object) - Method in class org.springframework.mock.web.MockHttpServletRequest
Add a header entry for the given name.
addHeader(String, String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
addIncludedUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
addInitParameter(String, String) - Method in class org.springframework.mock.web.MockFilterConfig
 
addInitParameter(String, String) - Method in class org.springframework.mock.web.MockServletConfig
 
addInitParameter(String, String) - Method in class org.springframework.mock.web.MockServletContext
 
addInitParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addInitParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
addIntHeader(String, int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
addLocale(Locale) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addObject(String, Object) - Method in class org.springframework.mock.jndi.ExpectedLookupTemplate
Add the given object to the list of JNDI objects that this template will expose.
addParameter(String, String) - Method in class org.springframework.mock.web.MockHttpServletRequest
Add a single value for the specified HTTP parameter.
addParameter(String, String[]) - Method in class org.springframework.mock.web.MockHttpServletRequest
Add an array of values for the specified HTTP parameter.
addParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addParameters(Map) - Method in class org.springframework.mock.web.MockHttpServletRequest
Adds all provided parameters without replacing any existing values.
addPreferredLocale(Locale) - Method in class org.springframework.mock.web.MockHttpServletRequest
Add a new preferred locale, before any existing locales.
addPreferredLocale(Locale) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addPreferredResponseContentType(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addPrivateRenderParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
addPrivateRenderParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
addProcessingEventQName(QName) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
addProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
Add a single value for the specified property.
addProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
addProperty(Cookie) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
addProperty(String, Element) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
addPublicRenderParameterName(String) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addPublishingEventQName(QName) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addResponseContentType(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addSupportedLocale(Locale) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
addToEnvironment(String, Object) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
addUserRole(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
addUserRole(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
afterTestClass(TestContext) - Method in class org.springframework.test.context.support.AbstractTestExecutionListener
The default implementation is empty.
afterTestClass(TestContext) - Method in class org.springframework.test.context.support.DirtiesContextTestExecutionListener
If the test class of the supplied test context is annotated with @DirtiesContext, the application context of the test context will be marked as dirty , and the REINJECT_DEPENDENCIES_ATTRIBUTE in the test context will be set to true.
afterTestClass() - Method in class org.springframework.test.context.TestContextManager
Hook for post-processing a test class after execution of all tests within the class.
afterTestClass(TestContext) - Method in interface org.springframework.test.context.TestExecutionListener
Post-processes a test class after execution of all tests within the class.
afterTestMethod(TestContext) - Method in class org.springframework.test.context.support.AbstractTestExecutionListener
The default implementation is empty.
afterTestMethod(TestContext) - Method in class org.springframework.test.context.support.DirtiesContextTestExecutionListener
If the current test method of the supplied test context is annotated with @DirtiesContext, or if the test class is annotated with @DirtiesContext and the class mode is set to AFTER_EACH_TEST_METHOD, the application context of the test context will be marked as dirty and the REINJECT_DEPENDENCIES_ATTRIBUTE in the test context will be set to true.
afterTestMethod(Object, Method, Throwable) - Method in class org.springframework.test.context.TestContextManager
Hook for post-processing a test after execution of the supplied test method, for example for tearing down test fixtures, ending a transaction, etc.
afterTestMethod(TestContext) - Method in interface org.springframework.test.context.TestExecutionListener
Post-processes a test after execution of the test method in the supplied test context, for example by tearing down test fixtures.
afterTestMethod(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
If a transaction is currently active for the test method of the supplied test context, this method will end the transaction and run @AfterTransaction methods.
AfterTransaction - Annotation Type in org.springframework.test.context.transaction
Test annotation to indicate that the annotated public void method should be executed after a transaction is ended for test methods configured to run within a transaction via the @Transactional annotation.
AnnotationConfigContextLoader - Class in org.springframework.test.context.support
Concrete implementation of AbstractGenericContextLoader that loads bean definitions from annotated classes.
AnnotationConfigContextLoader() - Constructor for class org.springframework.test.context.support.AnnotationConfigContextLoader
 
applicationContext - Variable in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Application context this test will run against
applicationContext - Variable in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. The ApplicationContext that was injected into this test instance via AbstractJUnit38SpringContextTests.setApplicationContext(ApplicationContext).
applicationContext - Variable in class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
The ApplicationContext that was injected into this test instance via AbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext).
applicationContext - Variable in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
The ApplicationContext that was injected into this test instance via AbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext).
assertAndReturnModelAttributeOfType(ModelAndView, String, Class<T>) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Checks whether the model value under the given modelName exists and checks it type, based on the expectedType.
assertAndReturnModelAttributeOfType(ModelAndView, String, Class<T>) - Static method in class org.springframework.test.web.ModelAndViewAssert
Checks whether the model value under the given modelName exists and checks it type, based on the expectedType.
assertCompareListModelAttribute(ModelAndView, String, List) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Compare each individual entry in a list, without first sorting the lists.
assertCompareListModelAttribute(ModelAndView, String, List) - Static method in class org.springframework.test.web.ModelAndViewAssert
Compare each individual entry in a list, without first sorting the lists.
assertModelAttributeAvailable(ModelAndView, String) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Assert whether or not a model attribute is available.
assertModelAttributeAvailable(ModelAndView, String) - Static method in class org.springframework.test.web.ModelAndViewAssert
Assert whether or not a model attribute is available.
assertModelAttributeValue(ModelAndView, String, Object) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Compare a given expectedValue to the value from the model bound under the given modelName.
assertModelAttributeValue(ModelAndView, String, Object) - Static method in class org.springframework.test.web.ModelAndViewAssert
Compare a given expectedValue to the value from the model bound under the given modelName.
assertModelAttributeValues(ModelAndView, Map<String, Object>) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Inspect the expectedModel to see if all elements in the model appear and are equal.
assertModelAttributeValues(ModelAndView, Map<String, Object>) - Static method in class org.springframework.test.web.ModelAndViewAssert
Inspect the expectedModel to see if all elements in the model appear and are equal.
assertSortAndCompareListModelAttribute(ModelAndView, String, List, Comparator) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Compare each individual entry in a list after having sorted both lists (optionally using a comparator).
assertSortAndCompareListModelAttribute(ModelAndView, String, List, Comparator) - Static method in class org.springframework.test.web.ModelAndViewAssert
Compare each individual entry in a list after having sorted both lists (optionally using a comparator).
AssertThrows - Class in org.springframework.test
Deprecated. favor use of JUnit 4's @Test(expected=...) support
AssertThrows(Class) - Constructor for class org.springframework.test.AssertThrows
Deprecated. Create a new instance of the AssertThrows class.
AssertThrows(Class, String) - Constructor for class org.springframework.test.AssertThrows
Deprecated. Create a new instance of the AssertThrows class.
assertViewName(ModelAndView, String) - Method in class org.springframework.test.web.AbstractModelAndViewTests
Deprecated. Check to see if the view name in the ModelAndView matches the given expectedName.
assertViewName(ModelAndView, String) - Static method in class org.springframework.test.web.ModelAndViewAssert
Check to see if the view name in the ModelAndView matches the given expectedName.
attributeSource - Variable in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
 
authenticate(HttpServletResponse) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
AUTOWIRE_BY_NAME - Static variable in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Constant that indicates autowiring bean properties by name.
AUTOWIRE_BY_TYPE - Static variable in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Constant that indicates autowiring bean properties by type.
AUTOWIRE_NO - Static variable in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Constant that indicates no autowiring at all.

B

beforeTestClass(TestContext) - Method in class org.springframework.test.context.support.AbstractTestExecutionListener
The default implementation is empty.
beforeTestClass() - Method in class org.springframework.test.context.TestContextManager
Hook for pre-processing a test class before execution of any tests within the class.
beforeTestClass(TestContext) - Method in interface org.springframework.test.context.TestExecutionListener
Pre-processes a test class before execution of all tests within the class.
beforeTestMethod(TestContext) - Method in class org.springframework.test.context.support.AbstractTestExecutionListener
The default implementation is empty.
beforeTestMethod(TestContext) - Method in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
If the DependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTE in the supplied test context has a value of Boolean.TRUE, this method will have the same effect as prepareTestInstance(); otherwise, this method will have no effect.
beforeTestMethod(Object, Method) - Method in class org.springframework.test.context.TestContextManager
Hook for pre-processing a test before execution of the supplied test method, for example for setting up test fixtures, starting a transaction, etc.
beforeTestMethod(TestContext) - Method in interface org.springframework.test.context.TestExecutionListener
Pre-processes a test before execution of the test method in the supplied test context, for example by setting up test fixtures.
beforeTestMethod(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
If the test method of the supplied test context is configured to run within a transaction, this method will run @BeforeTransaction methods and start a new transaction.
BeforeTransaction - Annotation Type in org.springframework.test.context.transaction
Test annotation to indicate that the annotated public void method should be executed before a transaction is started for test methods configured to run within a transaction via the @Transactional annotation.
bind(String, Object) - Method in class org.springframework.mock.jndi.SimpleNamingContext
Bind the given object to the given name.
bind(Name, Object) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
bind(String, Object) - Method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
Bind the given object under the given name, for all naming contexts that this context builder will generate.

C

cacheKeys() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated.  
checkActive() - Method in class org.springframework.mock.web.MockHttpServletRequest
Check whether this request is still active (that is, not completed yet), throwing an IllegalStateException if not active anymore.
checkActive() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
Check whether this request is still active (that is, not completed yet), throwing an IllegalStateException if not active anymore.
checkExceptionExpectations(Exception) - Method in class org.springframework.test.AssertThrows
Deprecated. Does the donkey work of checking (verifying) that the Exception that was thrown in the body of a test is an instance of the AssertThrows.getExpectedException() class (or an instance of a subclass).
clear() - Method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
Clear all bindings in this context builder, while keeping it active.
clear() - Method in class org.springframework.mock.web.MockBodyContent
 
clear() - Method in class org.springframework.mock.web.MockJspWriter
 
clearAttributes() - Method in class org.springframework.mock.web.MockHttpServletRequest
Clear all of this request's attributes.
clearAttributes() - Method in class org.springframework.mock.web.MockHttpSession
Clear all of this session's attributes.
clearAttributes() - Method in class org.springframework.mock.web.portlet.MockPortletSession
Clear all of this session's attributes.
clearBuffer() - Method in class org.springframework.mock.web.MockBodyContent
 
clearBuffer() - Method in class org.springframework.mock.web.MockJspWriter
 
close() - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
close() - Method in class org.springframework.mock.web.DelegatingServletInputStream
 
close() - Method in class org.springframework.mock.web.DelegatingServletOutputStream
 
close() - Method in class org.springframework.mock.web.MockBodyContent
 
close() - Method in class org.springframework.mock.web.MockHttpServletRequest
Mark this request as completed, keeping its state.
close() - Method in class org.springframework.mock.web.MockJspWriter
 
close() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
Mark this request as completed.
composeName(String, String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
composeName(Name, Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
ConditionalTestCase - Class in org.springframework.test
Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit4SpringContextTests)
ConditionalTestCase() - Constructor for class org.springframework.test.ConditionalTestCase
Deprecated. Default constructor for ConditionalTestCase.
ConditionalTestCase(String) - Constructor for class org.springframework.test.ConditionalTestCase
Deprecated. Constructor for ConditionalTestCase with a JUnit name.
containsHeader(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
containsSqlScriptDelimiters(String, char) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Does the provided SQL script contain the specified delimiter?
ContextConfiguration - Annotation Type in org.springframework.test.context
ContextConfiguration defines class-level metadata that is used to determine how to load and configure an ApplicationContext for test classes.
ContextConfigurationAttributes - Class in org.springframework.test.context
ContextConfigurationAttributes encapsulates the context configuration attributes declared on a test class via @ContextConfiguration.
ContextConfigurationAttributes(Class<?>, ContextConfiguration) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
Construct a new ContextConfigurationAttributes instance for the supplied @ContextConfiguration annotation and the test class that declared it.
ContextConfigurationAttributes(Class<?>, String[], Class<?>[], boolean, Class<? extends ContextLoader>) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
Construct a new ContextConfigurationAttributes instance for the test class that declared the @ContextConfiguration annotation and its corresponding attributes.
contextKey() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Return a key for this context.
contextKeyString(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Subclasses can override this to return a String representation of their context key for use in caching and logging.
ContextLoader - Interface in org.springframework.test.context
Strategy interface for loading an application context for an integration test managed by the Spring TestContext Framework.
countRowsInTable(String) - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Count the rows in the given table
countRowsInTable(String) - Method in class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Count the rows in the given table.
countRowsInTable(String) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Count the rows in the given table.
countRowsInTable(String) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Count the rows in the given table.
countRowsInTable(SimpleJdbcTemplate, String) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Count the rows in the given table.
createActionURL() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
createApplicationContext(String[]) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Create a Spring ConfigurableApplicationContext for use by this test.
createBeanDefinitionReader(GenericApplicationContext) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Factory method for creating new BeanDefinitionReaders for loading bean definitions into the supplied context.
createBeanDefinitionReader(GenericApplicationContext) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Factory method for creating a new BeanDefinitionReader for loading bean definitions into the supplied context.
createBeanDefinitionReader(GenericApplicationContext) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
AnnotationConfigContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.
createBeanDefinitionReader(GenericApplicationContext) - Method in class org.springframework.test.context.support.GenericPropertiesContextLoader
Creates a new PropertiesBeanDefinitionReader.
createBeanDefinitionReader(GenericApplicationContext) - Method in class org.springframework.test.context.support.GenericXmlContextLoader
Create a new XmlBeanDefinitionReader.
createContainerManagedEntityManager() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated. Create an EntityManager that will always automatically enlist itself in current transactions, in contrast to an EntityManager returned by EntityManagerFactory.createEntityManager() (which requires an explicit joinTransaction() call).
createElement(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
createInitialContextFactory(Hashtable<?, ?>) - Method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
Simple InitialContextFactoryBuilder implementation, creating a new SimpleNamingContext instance.
createMessageForNoExceptionThrown() - Method in class org.springframework.test.AssertThrows
Deprecated. Creates the failure message used if the test fails (i.e.
createMessageForWrongThrownExceptionType(Exception) - Method in class org.springframework.test.AssertThrows
Deprecated. Creates the failure message used if the wrong type of Exception is thrown in the body of the test.
createRenderURL() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
createResourceURL() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
createShadowingClassLoader(ClassLoader) - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated. NB: This method must not have a return type of ShadowingClassLoader as that would cause that class to be loaded eagerly when this test case loads, creating verify errors at runtime.
createSubcontext(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
createSubcontext(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
createTest() - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Delegates to the parent implementation for creating the test instance and then allows the TestContextManager to prepare the test instance before returning it.
createTestContextManager(Class<?>) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Creates a new TestContextManager for the supplied test class and the configured default ContextLoader class name.
customizeBeanFactory(DefaultListableBeanFactory) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Customize the internal bean factory of the ApplicationContext used by this test.
customizeBeanFactory(DefaultListableBeanFactory) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Customize the internal bean factory of the ApplicationContext created by this ContextLoader.
customizeContext(GenericApplicationContext) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Customize the GenericApplicationContext created by this ContextLoader after bean definitions have been loaded into the context but before the context is refreshed.
customizeResourceOverridingShadowingClassLoader(ClassLoader) - Method in class org.springframework.test.jpa.AbstractAspectjJpaTests
Deprecated.  
customizeResourceOverridingShadowingClassLoader(ClassLoader) - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated. Customize the shadowing class loader.

D

deactivate() - Method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
Temporarily deactivate this context builder.
declareRoles(String...) - Method in class org.springframework.mock.web.MockServletContext
 
DEFAULT_AOP_XML_LOCATION - Static variable in class org.springframework.test.jpa.AbstractAspectjJpaTests
Deprecated. Default location of the aop.xml file in the class path: "META-INF/aop.xml"
DEFAULT_PROTOCOL - Static variable in class org.springframework.mock.web.MockHttpServletRequest
The default protocol: 'http'.
DEFAULT_REMOTE_ADDR - Static variable in class org.springframework.mock.web.MockHttpServletRequest
The default remote address: '127.0.0.1'.
DEFAULT_REMOTE_HOST - Static variable in class org.springframework.mock.web.MockHttpServletRequest
The default remote host: 'localhost'.
DEFAULT_SERVER_ADDR - Static variable in class org.springframework.mock.web.MockHttpServletRequest
The default server address: '127.0.0.1'.
DEFAULT_SERVER_NAME - Static variable in class org.springframework.mock.web.MockHttpServletRequest
The default server name: 'localhost'.
DEFAULT_SERVER_PORT - Static variable in class org.springframework.mock.web.MockHttpServletRequest
The default server port: '80'.
DelegatingServletInputStream - Class in org.springframework.mock.web
Delegating implementation of ServletInputStream.
DelegatingServletInputStream(InputStream) - Constructor for class org.springframework.mock.web.DelegatingServletInputStream
Create a DelegatingServletInputStream for the given source stream.
DelegatingServletOutputStream - Class in org.springframework.mock.web
Delegating implementation of ServletOutputStream.
DelegatingServletOutputStream(OutputStream) - Constructor for class org.springframework.mock.web.DelegatingServletOutputStream
Create a DelegatingServletOutputStream for the given target stream.
DelegatingSmartContextLoader - Class in org.springframework.test.context.support
DelegatingSmartContextLoader is an implementation of the SmartContextLoader SPI that delegates to a set of candidate SmartContextLoaders (i.e., GenericXmlContextLoader and AnnotationConfigContextLoader) to determine which context loader is appropriate for a given test class's configuration.
DelegatingSmartContextLoader() - Constructor for class org.springframework.test.context.support.DelegatingSmartContextLoader
 
deleteFromTables(String[]) - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Convenient method to delete all rows from these tables.
deleteFromTables(String...) - Method in class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Convenience method for deleting all rows from the specified tables.
deleteFromTables(String...) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Convenience method for deleting all rows from the specified tables.
deleteFromTables(String...) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Convenience method for deleting all rows from the specified tables.
deleteFromTables(SimpleJdbcTemplate, String...) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Delete all rows from the specified tables.
DependencyInjectionTestExecutionListener - Class in org.springframework.test.context.support
TestExecutionListener which provides support for dependency injection and initialization of test instances.
DependencyInjectionTestExecutionListener() - Constructor for class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
 
deserializeState(Serializable) - Method in class org.springframework.mock.web.MockHttpSession
Deserialize the attributes of this session from a state object created by MockHttpSession.serializeState().
destroySubcontext(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
destroySubcontext(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
detectDefaultConfigurationClasses(Class<?>) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
Detect the default configuration classes for the supplied test class.
DirtiesContext - Annotation Type in org.springframework.test.annotation
Test annotation which indicates that the ApplicationContext associated with a test is dirty and should be closed: after the current test, when declared at the method level after each test method in the current test class, when declared at the class level with class mode set to AFTER_EACH_TEST_METHOD after the current test class, when declared at the class level with class mode set to AFTER_CLASS
DirtiesContext.ClassMode - Enum in org.springframework.test.annotation
Defines modes which determine how @DirtiesContext is interpreted when used to annotate a test class.
DirtiesContextTestExecutionListener - Class in org.springframework.test.context.support
TestExecutionListener which provides support for marking the ApplicationContext associated with a test as dirty for both test classes and test methods configured with the @DirtiesContext annotation.
DirtiesContextTestExecutionListener() - Constructor for class org.springframework.test.context.support.DirtiesContextTestExecutionListener
 
dirtyContext(TestContext) - Method in class org.springframework.test.context.support.DirtiesContextTestExecutionListener
Marks the application context of the supplied test context as dirty, and sets the REINJECT_DEPENDENCIES_ATTRIBUTE in the test context to true.
doClearAttributes(Map<String, Object>) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
doEvaluate(String, Class, FunctionMapper) - Method in class org.springframework.mock.web.MockExpressionEvaluator
 
doFail() - Method in class org.springframework.test.AssertThrows
Deprecated. Template method called when the test fails; i.e.
doFilter(ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.MockFilterChain
Records the request and response.
doFilter(ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.PassThroughFilterChain
Pass the call on to the Filter/Servlet.

E

emptyActivatedContextBuilder() - Static method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
If no SimpleNamingContextBuilder is already configuring JNDI, create and activate one.
encodeParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
encodeParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
encodeRedirectURL(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
The default implementation delegates to MockHttpServletResponse.encodeURL(java.lang.String), returning the given URL String as-is.
encodeRedirectUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
encodeURL(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
The default implementation returns the given URL String as-is.
encodeUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
encodeURL(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
endTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Immediately force a commit or rollback of the transaction, according to the complete and rollback flags.
entityManagerFactory - Variable in class org.springframework.test.jpa.AbstractJpaTests
Deprecated.  
equals(Object) - Method in class org.springframework.test.context.MergedContextConfiguration
Determine if the supplied object is equal to this MergedContextConfiguration instance by comparing both object's locations, annotated classes, active profiles, and the fully qualified names of their ContextLoaders.
evaluate(String, Class, VariableResolver, FunctionMapper) - Method in class org.springframework.mock.web.MockExpressionEvaluator
 
evaluate() - Method in class org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks
Invokes the next Statement in the execution chain (typically an instance of RunAfters), catching any exceptions thrown, and then calls TestContextManager.afterTestClass().
evaluate() - Method in class org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks
Invokes the next Statement in the execution chain (typically an instance of RunAfters), catching any exceptions thrown, and then calls TestContextManager.afterTestMethod(Object, Method, Throwable) with the first caught exception (if any).
evaluate() - Method in class org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
Calls TestContextManager.beforeTestClass() and then invokes the next Statement in the execution chain (typically an instance of RunBefores).
evaluate() - Method in class org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks
Calls TestContextManager.beforeTestMethod(Object, Method) and then invokes the next Statement in the execution chain (typically an instance of RunBefores).
evaluate() - Method in class org.springframework.test.context.junit4.statements.SpringFailOnTimeout
Invokes the next statement in the execution chain (typically an instance of InvokeMethod or ExpectException) and throws an exception if the next statement takes more than the specified timeout .
evaluate() - Method in class org.springframework.test.context.junit4.statements.SpringRepeat
Invokes the next statement in the execution chain for the specified repeat count.
executeSqlScript(String, boolean) - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Execute the given SQL script.
executeSqlScript(String, boolean) - Method in class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Execute the given SQL script.
executeSqlScript(String, boolean) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Execute the given SQL script.
executeSqlScript(String, boolean) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Execute the given SQL script.
executeSqlScript(SimpleJdbcTemplate, ResourceLoader, String, boolean) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Execute the given SQL script.
executeSqlScript(SimpleJdbcTemplate, Resource, boolean) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Execute the given SQL script.
executeSqlScript(SimpleJdbcTemplate, EncodedResource, boolean) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Execute the given SQL script.
ExpectedException - Annotation Type in org.springframework.test.annotation
Deprecated. as of Spring 3.1 in favor of using built-in support for declaring expected exceptions in the underlying testing framework (e.g., JUnit, TestNG, etc.)
ExpectedLookupTemplate - Class in org.springframework.mock.jndi
Simple extension of the JndiTemplate class that always returns a given object.
ExpectedLookupTemplate() - Constructor for class org.springframework.mock.jndi.ExpectedLookupTemplate
Construct a new JndiTemplate that will always return given objects for given names.
ExpectedLookupTemplate(String, Object) - Constructor for class org.springframework.mock.jndi.ExpectedLookupTemplate
Construct a new JndiTemplate that will always return the given object, but honour only requests for the given name.

F

findAttribute(String) - Method in class org.springframework.mock.web.MockPageContext
 
findUniqueProfileValueSourceFromContext(ApplicationContext) - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Use @ProfileValueSourceConfiguration instead.
flush() - Method in class org.springframework.mock.web.DelegatingServletOutputStream
 
flush() - Method in class org.springframework.mock.web.MockJspWriter
 
flushBuffer() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
flushBuffer() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
forward(String) - Method in class org.springframework.mock.web.MockPageContext
 
forward(ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.MockRequestDispatcher
 
forward(PortletRequest, PortletResponse) - Method in class org.springframework.mock.web.portlet.MockPortletRequestDispatcher
 

G

generateDefaultLocations(Class<?>) - Method in class org.springframework.test.context.support.AbstractContextLoader
Generate the default classpath resource locations array based on the supplied class.
generateDefaultLocations(Class<?>) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
AnnotationConfigContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.
GenericPropertiesContextLoader - Class in org.springframework.test.context.support
Concrete implementation of AbstractGenericContextLoader that reads bean definitions from Java Properties resources.
GenericPropertiesContextLoader() - Constructor for class org.springframework.test.context.support.GenericPropertiesContextLoader
 
GenericXmlContextLoader - Class in org.springframework.test.context.support
Concrete implementation of AbstractGenericContextLoader that reads bean definitions from XML resources.
GenericXmlContextLoader() - Constructor for class org.springframework.test.context.support.GenericXmlContextLoader
 
get(String) - Method in interface org.springframework.test.annotation.ProfileValueSource
Get the profile value indicated by the specified key.
get(String) - Method in class org.springframework.test.annotation.SystemProfileValueSource
Get the profile value indicated by the specified key from the system properties.
getActiveProfiles() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the merged active bean definition profiles for the test class.
getActualAopXmlLocation() - Method in class org.springframework.test.jpa.AbstractAspectjJpaTests
Deprecated. Return the actual location of the aop.xml file in the class path.
getActualException() - Method in class org.springframework.test.AssertThrows
Deprecated. Expose the actual exception thrown from AssertThrows.test(), if any.
getActualOrmXmlLocation() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated. Subclasses can override this to return the real location path for orm.xml or null if they do not wish to find any orm.xml
getApplicationContext() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Return the ApplicationContext that this base class manages; may be null.
getApplicationContext() - Method in class org.springframework.test.context.TestContext
Get the application context for this test context, possibly cached.
getAttribute(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getAttribute(String) - Method in class org.springframework.mock.web.MockHttpSession
 
getAttribute(String) - Method in class org.springframework.mock.web.MockPageContext
 
getAttribute(String, int) - Method in class org.springframework.mock.web.MockPageContext
 
getAttribute(String) - Method in class org.springframework.mock.web.MockServletContext
 
getAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getAttribute(String, int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getAttribute(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getAttributeMap() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getAttributeMap(int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getAttributeNames() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getAttributeNames() - Method in class org.springframework.mock.web.MockHttpSession
 
getAttributeNames() - Method in class org.springframework.mock.web.MockPageContext
 
getAttributeNames() - Method in class org.springframework.mock.web.MockServletContext
 
getAttributeNames() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getAttributeNames() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getAttributeNames() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getAttributeNames(int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getAttributeNames() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getAttributeNamesInScope(int) - Method in class org.springframework.mock.web.MockPageContext
 
getAttributesScope(String) - Method in class org.springframework.mock.web.MockPageContext
 
getAuthType() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getAuthType() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getAutowireMode() - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Return the autowire mode for test properties set by Dependency Injection.
getBufferSize() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getBufferSize() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getBytes() - Method in class org.springframework.mock.web.MockMultipartFile
 
getCacheability() - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
getCacheability() - Method in class org.springframework.mock.web.portlet.MockResourceURL
 
getCacheControl() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getCharacterEncoding() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getCharacterEncoding() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getCharacterEncoding() - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
getCharacterEncoding() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getClasses() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the annotated classes that were declared via @ContextConfiguration.
getClasses() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the merged annotated classes for the test class.
getClassLoader() - Method in class org.springframework.mock.web.MockServletContext
 
getConfigLocations() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Subclasses can override this method to return the locations of their config files, unless they override AbstractSingleSpringContextTests.contextKey() and AbstractSingleSpringContextTests.loadContext(Object) instead.
getConfigPath() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Subclasses can override this method to return a single path to a config file, relative to the concrete test class.
getConfigPaths() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Subclasses can override this method to return paths to their config files, relative to the concrete test class.
getContainerRuntimeOptions() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getContainerRuntimeOptions() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getContainerRuntimeOptions() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getContentAsByteArray() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getContentAsByteArray() - Method in class org.springframework.mock.web.MockPageContext
 
getContentAsByteArray() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getContentAsString() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getContentAsString() - Method in class org.springframework.mock.web.MockPageContext
 
getContentAsString() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getContentLength() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getContentLength() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getContentLength() - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
getContentLength() - Method in class org.springframework.mock.web.portlet.MockResourceResponse
 
getContentType() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getContentType() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getContentType() - Method in class org.springframework.mock.web.MockMultipartFile
 
getContentType() - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
getContentType() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getContext(String) - Method in class org.springframework.mock.web.MockServletContext
 
getContext(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Obtain an ApplicationContext for the given key, potentially cached.
getContextLoader() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the resolved ContextLoader for the test class.
getContextLoaderClass() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the ContextLoader class that was declared via @ContextConfiguration.
getContextPath() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getContextPath() - Method in class org.springframework.mock.web.MockServletContext
 
getContextPath() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getCookie(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getCookie(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getCookies() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getCookies() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getCookies() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getCookies() - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getCreationTime() - Method in class org.springframework.mock.web.MockHttpSession
 
getCreationTime() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getCurrentContextBuilder() - Static method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
Checks if a SimpleNamingContextBuilder is active.
getDateHeader(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getDeclaredRoles() - Method in class org.springframework.mock.web.MockServletContext
 
getDeclaringClass() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the class that declared the @ContextConfiguration annotation.
getDefaultContextLoaderClassName(Class<?>) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Get the name of the default ContextLoader class to use for the supplied test class.
getDefaultNamespace() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getDefaultTestExecutionListenerClasses() - Method in class org.springframework.test.context.TestContextManager
Determine the default TestExecutionListener classes.
getDescription() - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Returns a description suitable for an ignored test class if the test is disabled via @IfProfileValue at the class-level, and otherwise delegates to the parent implementation.
getDisabledTestCount() - Static method in class org.springframework.test.ConditionalTestCase
Deprecated. Return the number of tests disabled in this environment.
getDisabledTestCount() - Static method in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Return the number of tests disabled in this environment.
getEffectiveMajorVersion() - Method in class org.springframework.mock.web.MockServletContext
 
getEffectiveMinorVersion() - Method in class org.springframework.mock.web.MockServletContext
 
getELContext() - Method in class org.springframework.mock.web.MockPageContext
 
getEnvironment() - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
getErrorMessage() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getETag() - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
getETag() - Method in class org.springframework.mock.web.portlet.MockRenderRequest
 
getETag() - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
getEvent() - Method in class org.springframework.mock.web.portlet.MockEventRequest
 
getEvent(QName) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getEvent(String) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getEventNames() - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getException() - Method in class org.springframework.mock.web.MockPageContext
 
getExpectedException() - Method in class org.springframework.test.AssertThrows
Deprecated. Return the Exception expected to be thrown during the execution of the surrounding test.
getExpectedException(FrameworkMethod) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Get the exception that the supplied test method is expected to throw.
getExpirationTime() - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
getExpressionEvaluator() - Method in class org.springframework.mock.web.MockPageContext
 
getFailureMessage() - Method in class org.springframework.test.AssertThrows
Deprecated. Return the extra, contextual failure message that will be included in the failure text if the text fails.
getField(Object, String) - Static method in class org.springframework.test.util.ReflectionTestUtils
Get the field with the given name from the provided target object.
getFile(String) - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getFile(String) - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
getFileMap() - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getFileMap() - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
getFileNames() - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getFileNames() - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
getFiles(String) - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getFiles(String) - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
getFilterName() - Method in class org.springframework.mock.web.MockFilterConfig
 
getForwardedUrl() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getForwardedUrl() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getHeader(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getHeader(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
Return the primary value for the given header as a String, if any.
getHeaderNames() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getHeaderNames() - Method in class org.springframework.mock.web.MockHttpServletResponse
Return the names of all specified headers as a Set of Strings.
getHeaders(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getHeaders(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
Return all values for the given header as a List of Strings.
getHeaderValue(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
Return the primary value for the given header, if any.
getHeaderValues(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
Return all values for the given header as a List of value objects.
getId() - Method in class org.springframework.mock.web.MockHttpSession
 
getId() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getIncludedUrl() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getIncludedUrl() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getIncludedUrls() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getInitParameter(String) - Method in class org.springframework.mock.web.MockFilterConfig
 
getInitParameter(String) - Method in class org.springframework.mock.web.MockServletConfig
 
getInitParameter(String) - Method in class org.springframework.mock.web.MockServletContext
 
getInitParameter(String) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getInitParameter(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getInitParameter(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getInitParameterNames() - Method in class org.springframework.mock.web.MockFilterConfig
 
getInitParameterNames() - Method in class org.springframework.mock.web.MockServletConfig
 
getInitParameterNames() - Method in class org.springframework.mock.web.MockServletContext
 
getInitParameterNames() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getInitParameterNames() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getInitParameterNames() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getInputStream() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getInputStream() - Method in class org.springframework.mock.web.MockMultipartFile
 
getInstance() - Static method in class org.springframework.test.annotation.SystemProfileValueSource
Obtain the canonical instance of this ProfileValueSource.
getIntHeader(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getJdbcTemplate() - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Return the JdbcTemplate that this base class manages.
getJUnitTimeout(FrameworkMethod) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Retrieves the configured JUnit timeout from the @Test annotation on the supplied test method.
getLastAccessedTime() - Method in class org.springframework.mock.web.MockHttpSession
 
getLastAccessedTime() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getLifecyclePhase() - Method in class org.springframework.mock.web.portlet.MockActionRequest
 
getLifecyclePhase() - Method in class org.springframework.mock.web.portlet.MockEventRequest
 
getLifecyclePhase() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
Return the Portlet 2.0 lifecycle id for the current phase.
getLifecyclePhase() - Method in class org.springframework.mock.web.portlet.MockRenderRequest
 
getLifecyclePhase() - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
getLoadCount() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Return the current number of context load attempts.
getLocalAddr() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getLocale() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getLocale() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getLocale() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getLocale() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getLocales() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getLocales() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getLocalName() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getLocalPort() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getLocations() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the resource locations that were declared via @ContextConfiguration.
getLocations() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the merged resource locations for the test class.
getMajorVersion() - Method in class org.springframework.mock.web.MockServletContext
 
getMajorVersion() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getMajorVersion() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getMap() - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
getMaxInactiveInterval() - Method in class org.springframework.mock.web.MockHttpSession
 
getMaxInactiveInterval() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getMethod() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getMethod() - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
getMethod() - Method in class org.springframework.mock.web.portlet.MockEventRequest
 
getMimeType(String) - Method in class org.springframework.mock.web.MockServletContext
 
getMimeType(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getMimeType(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getMinorVersion() - Method in class org.springframework.mock.web.MockServletContext
 
getMinorVersion() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getMinorVersion() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getMockHttpServletResponse(ServletResponse) - Method in class org.springframework.mock.web.MockRequestDispatcher
Obtain the underlying MockHttpServletResponse, unwrapping HttpServletResponseWrapper decorators if necessary.
getMultiFileMap() - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getMultiFileMap() - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
getMultipartContentType(String) - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getMultipartContentType(String) - Method in class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
getMultipartHeaders(String) - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getName() - Method in class org.springframework.mock.web.MockMultipartFile
 
getName() - Method in class org.springframework.mock.web.portlet.MockEvent
 
getNamedDispatcher(String) - Method in class org.springframework.mock.web.MockServletContext
 
getNamedDispatcher(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getNamedDispatcher(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getNameInNamespace() - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
getNameParser(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
getNameParser(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
getNames() - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
getNamespace() - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getNextPossiblePortletModes() - Method in class org.springframework.mock.web.portlet.MockRenderResponse
 
getOriginalFilename() - Method in class org.springframework.mock.web.MockMultipartFile
 
getOut() - Method in class org.springframework.mock.web.MockPageContext
 
getOutputStream() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getPage() - Method in class org.springframework.mock.web.MockPageContext
 
getParameter(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getParameter(String) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
getParameter(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getParameterMap() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getParameterMap() - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
getParameterMap() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getParameterNames() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getParameterNames() - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
getParameterNames() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getParameterValues(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getParameterValues(String) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
getParameterValues(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPathInfo() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getPathTranslated() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getPortalContext() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPortalContext() - Method in class org.springframework.mock.web.portlet.MockPortletResponse
Return the PortalContext that this MockPortletResponse runs in, defining the supported PortletModes and WindowStates.
getPortalInfo() - Method in class org.springframework.mock.web.portlet.MockPortalContext
 
getPortletContext() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getPortletContext() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
getPortletContextName() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getPortletContextName() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getPortletInputStream() - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
getPortletMode() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPortletMode() - Method in class org.springframework.mock.web.portlet.MockPortletURL
 
getPortletMode() - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getPortletName() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getPortletOutputStream() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getPortletSession() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPortletSession(boolean) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPreferences() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPrivateParameterMap() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPrivateRenderParameterMap() - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
getProcessingEventQNames() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getProperties() - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
getProperties(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getProperties(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getProperty(String) - Method in class org.springframework.mock.web.portlet.MockPortalContext
 
getProperty(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getProperty(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getPropertyNames() - Method in class org.springframework.mock.web.portlet.MockPortalContext
 
getPropertyNames() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPropertyNames() - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getProtocol() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getPublicParameterMap() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getPublicRenderParameterNames() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getPublishingEventQNames() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getQName() - Method in class org.springframework.mock.web.portlet.MockEvent
 
getQueryString() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getReader() - Method in class org.springframework.mock.web.MockBodyContent
 
getReader() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getReader() - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
getRealPath(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRealPath(String) - Method in class org.springframework.mock.web.MockServletContext
 
getRealPath(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getRealPath(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getRedirectedUrl() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getRedirectedUrl() - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
getRemaining() - Method in class org.springframework.mock.web.MockBodyContent
 
getRemaining() - Method in class org.springframework.mock.web.MockJspWriter
 
getRemoteAddr() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRemoteHost() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRemotePort() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRemoteUser() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRemoteUser() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getRenderParameter(String) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getRenderParameterMap() - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getRenderParameterNames() - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getRenderParameterValues(String) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getRequest() - Method in class org.springframework.mock.web.MockFilterChain
Return the request that MockFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) has been called with.
getRequest() - Method in class org.springframework.mock.web.MockPageContext
 
getRequestDispatcher(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRequestDispatcher(String) - Method in class org.springframework.mock.web.MockServletContext
 
getRequestDispatcher(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getRequestDispatcher(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getRequestedSessionId() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRequestedSessionId() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getRequestHeaders() - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getRequestMethod() - Method in class org.springframework.mock.web.MockMultipartHttpServletRequest
 
getRequestURI() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getRequestURL() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getResource(String) - Method in class org.springframework.mock.web.MockServletContext
 
getResource(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getResource(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getResourceAsStream(String) - Method in class org.springframework.mock.web.MockServletContext
 
getResourceAsStream(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getResourceAsStream(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getResourceBundle(Locale) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getResourceID() - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
getResourceID() - Method in class org.springframework.mock.web.portlet.MockResourceURL
 
getResourceLocation(String) - Method in class org.springframework.mock.web.MockServletContext
Build a full resource location for the given path, prepending the resource base path of this MockServletContext.
getResourceLocation(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
Build a full resource location for the given path, prepending the resource base path of this MockPortletContext.
getResourcePaths(String) - Method in class org.springframework.mock.web.MockServletContext
 
getResourcePaths(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getResourcePaths(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getResourceSuffix() - Method in class org.springframework.test.context.support.AbstractContextLoader
Get the suffix to append to ApplicationContext resource locations when generating default locations.
getResourceSuffix() - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
AnnotationConfigContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.
getResourceSuffix() - Method in class org.springframework.test.context.support.GenericPropertiesContextLoader
Returns "-context.properties".
getResourceSuffix() - Method in class org.springframework.test.context.support.GenericXmlContextLoader
Returns "-context.xml".
getResponse() - Method in class org.springframework.mock.web.MockFilterChain
Return the response that MockFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) has been called with.
getResponse() - Method in class org.springframework.mock.web.MockPageContext
 
getResponseContentType() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getResponseContentTypes() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getScheme() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getScheme() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getServerInfo() - Method in class org.springframework.mock.web.MockServletContext
 
getServerInfo() - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
getServerInfo() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
getServerName() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getServerName() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getServerPort() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getServerPort() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getServlet(String) - Method in class org.springframework.mock.web.MockServletContext
 
getServletConfig() - Method in class org.springframework.mock.web.MockPageContext
 
getServletContext() - Method in class org.springframework.mock.web.MockFilterConfig
 
getServletContext() - Method in class org.springframework.mock.web.MockHttpServletRequest
Return the ServletContext that this request is associated with.
getServletContext() - Method in class org.springframework.mock.web.MockHttpSession
 
getServletContext() - Method in class org.springframework.mock.web.MockPageContext
 
getServletContext() - Method in class org.springframework.mock.web.MockServletConfig
 
getServletContext() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
Return the underlying ServletContext that this PortletContext wraps.
getServletContextName() - Method in class org.springframework.mock.web.MockServletContext
 
getServletName() - Method in class org.springframework.mock.web.MockServletConfig
 
getServletNames() - Method in class org.springframework.mock.web.MockServletContext
 
getServletPath() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getServlets() - Method in class org.springframework.mock.web.MockServletContext
 
getSession(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getSession() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getSession() - Method in class org.springframework.mock.web.MockPageContext
 
getSessionContext() - Method in class org.springframework.mock.web.MockHttpSession
 
getSize() - Method in class org.springframework.mock.web.MockMultipartFile
 
getSourceStream() - Method in class org.springframework.mock.web.DelegatingServletInputStream
Return the underlying source stream (never null).
getSpringTimeout(FrameworkMethod) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Retrieves the configured Spring-specific timeout from the @Timed annotation on the supplied test method.
getStatus() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getString() - Method in class org.springframework.mock.web.MockBodyContent
 
getSupportedLocales() - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
getSupportedPortletModes() - Method in class org.springframework.mock.web.portlet.MockPortalContext
 
getSupportedWindowStates() - Method in class org.springframework.mock.web.portlet.MockPortalContext
 
getTargetStream() - Method in class org.springframework.mock.web.DelegatingServletOutputStream
Return the underlying target stream (never null).
getTargetWriter() - Method in class org.springframework.mock.web.MockJspWriter
Lazily initialize the target Writer.
getTestClass() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the test class associated with this MergedContextConfiguration.
getTestClass() - Method in class org.springframework.test.context.TestContext
Get the test class for this test context.
getTestContext() - Method in class org.springframework.test.context.TestContextManager
Returns the TestContext managed by this TestContextManager.
getTestContextManager() - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Get the TestContextManager associated with this runner.
getTestException() - Method in class org.springframework.test.context.TestContext
Get the exception that was thrown during execution of the test method.
getTestExecutionListeners() - Method in class org.springframework.test.context.TestContextManager
Get the current TestExecutionListeners registered for this TestContextManager.
getTestInstance() - Method in class org.springframework.test.context.TestContext
Get the current test instance for this test context.
getTestMethod() - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Get the current test method.
getTestMethod() - Method in class org.springframework.test.context.TestContext
Get the current test method for this test context.
getTitle() - Method in class org.springframework.mock.web.portlet.MockRenderResponse
 
getTransactionManager(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
Get the transaction manager to use for the supplied test context.
getTransactionManagerName() - Method in class org.springframework.test.context.transaction.TransactionConfigurationAttributes
Get the bean name of the PlatformTransactionManager that is to be used to drive transactions.
getUserPrincipal() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
getUserPrincipal() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getValue(String) - Method in class org.springframework.mock.web.MockHttpSession
 
getValue() - Method in class org.springframework.mock.web.portlet.MockEvent
 
getValue(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
getValueNames() - Method in class org.springframework.mock.web.MockHttpSession
 
getValues(String, String[]) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
getVariableResolver() - Method in class org.springframework.mock.web.MockPageContext
 
getWindowID() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getWindowState() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getWindowState() - Method in class org.springframework.mock.web.portlet.MockPortletURL
 
getWindowState() - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
getWriter() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getWriter() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getXmlProperties(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getXmlProperty(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
getXmlPropertyNames() - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 

H

handlePageException(Exception) - Method in class org.springframework.mock.web.MockPageContext
 
handlePageException(Throwable) - Method in class org.springframework.mock.web.MockPageContext
 
hasCachedContext(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Return whether there is a cached context for the given key.
hasClasses() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Determine if this ContextConfigurationAttributes instance has class-based resources.
hashCode() - Method in class org.springframework.test.context.MergedContextConfiguration
Generate a unique hash code for all properties of this MergedContextConfiguration excluding the test class.
hasLocations() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Determine if this ContextConfigurationAttributes instance has path-based resource locations.
hasResources() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Determine if this ContextConfigurationAttributes instance has either path-based resource locations or class-based resources.

I

IfProfileValue - Annotation Type in org.springframework.test.annotation
Test annotation to indicate that a test is enabled for a specific testing profile or environment.
include(String) - Method in class org.springframework.mock.web.MockPageContext
 
include(String, boolean) - Method in class org.springframework.mock.web.MockPageContext
 
include(ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.MockRequestDispatcher
 
include(RenderRequest, RenderResponse) - Method in class org.springframework.mock.web.portlet.MockPortletRequestDispatcher
 
include(PortletRequest, PortletResponse) - Method in class org.springframework.mock.web.portlet.MockPortletRequestDispatcher
 
initialize(Servlet, ServletRequest, ServletResponse, String, boolean, int, boolean) - Method in class org.springframework.mock.web.MockPageContext
 
injectDependencies() - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Inject dependencies into 'this' instance (that is, this test instance).
injectDependencies(TestContext) - Method in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
Performs dependency injection and bean initialization for the supplied TestContext as described in prepareTestInstance().
invalidate() - Method in class org.springframework.mock.web.MockHttpServletRequest
Invalidate this request, clearing its state.
invalidate() - Method in class org.springframework.mock.web.MockHttpSession
 
invalidate() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
invokeGetterMethod(Object, String) - Static method in class org.springframework.test.util.ReflectionTestUtils
Invoke the getter method with the given name on the supplied target object with the supplied value.
invokeMethod(Object, String, Object...) - Static method in class org.springframework.test.util.ReflectionTestUtils
Invoke the method with the given name on the supplied target object with the supplied arguments.
invokeSetterMethod(Object, String, Object) - Static method in class org.springframework.test.util.ReflectionTestUtils
Invoke the setter method with the given name on the supplied target object with the supplied value.
invokeSetterMethod(Object, String, Object, Class<?>) - Static method in class org.springframework.test.util.ReflectionTestUtils
Invoke the setter method with the given name on the supplied target object with the supplied value.
isActive() - Method in class org.springframework.mock.web.MockHttpServletRequest
Return whether this request is still active (that is, not completed yet).
isActive() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
Return whether this request is still active (that is, not completed yet).
isCommitted() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
isCommitted() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
isContextKeyEmpty(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Determine if the supplied context key is empty.
isDefaultRollback() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Get the default rollback flag for this test.
isDefaultRollback(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
Determine whether or not to rollback transactions by default for the supplied test context.
isDefaultRollback() - Method in class org.springframework.test.context.transaction.TransactionConfigurationAttributes
Whether or not transactions should be rolled back by default.
isDependencyCheck() - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Return whether or not dependency checking should be performed for test properties set by Dependency Injection.
isDisabledInThisEnvironment(Method) - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Determine if the test for the supplied testMethod should run in the current environment.
isDisabledInThisEnvironment(String) - Method in class org.springframework.test.ConditionalTestCase
Deprecated. Should this test run?
isEmpty() - Method in class org.springframework.mock.web.MockMultipartFile
 
isGenerateDefaultLocations() - Method in class org.springframework.test.context.support.AbstractContextLoader
Determine whether or not default resource locations should be generated if the locations provided to AbstractContextLoader.processLocations(Class, String...) are null or empty.
isInheritLocations() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the inheritLocations flag that was declared via @ContextConfiguration.
isInvalid() - Method in class org.springframework.mock.web.MockHttpSession
 
isInvalid() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
isNew() - Method in class org.springframework.mock.web.MockHttpSession
 
isNew() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
isOutputStreamAccessAllowed() - Method in class org.springframework.mock.web.MockHttpServletResponse
Return whether MockHttpServletResponse.getOutputStream() access is allowed.
isPopulateProtectedVariables() - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Return whether to populate protected variables of this test case.
isPortletModeAllowed(PortletMode) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
isPublicScope() - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
isReadOnly(String) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
isRequestedSessionIdFromCookie() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isRequestedSessionIdFromURL() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isRequestedSessionIdFromUrl() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isRequestedSessionIdValid() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isRequestedSessionIdValid() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
isRollback() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Determines whether or not to rollback transactions for the current test.
isRollback() - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Determine whether or not to rollback transactions for the current test by taking into consideration the default rollback flag and a possible method-level override via the @Rollback annotation.
isRollback(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
Determine whether or not to rollback transactions for the supplied test context by taking into consideration the default rollback flag and a possible method-level override via the Rollback annotation.
isSecure() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isSecure() - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
isSecure() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
isTestEnabledInThisEnvironment(Class<?>) - Static method in class org.springframework.test.annotation.ProfileValueUtils
Determine if the supplied testClass is enabled in the current environment, as specified by the @IfProfileValue annotation at the class level.
isTestEnabledInThisEnvironment(Method, Class<?>) - Static method in class org.springframework.test.annotation.ProfileValueUtils
Determine if the supplied testMethod is enabled in the current environment, as specified by the @IfProfileValue annotation, which may be declared on the test method itself or at the class level.
isTestEnabledInThisEnvironment(ProfileValueSource, Method, Class<?>) - Static method in class org.springframework.test.annotation.ProfileValueUtils
Determine if the supplied testMethod is enabled in the current environment, as specified by the @IfProfileValue annotation, which may be declared on the test method itself or at the class level.
isTestMethodIgnored(FrameworkMethod) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Returns true if @Ignore is present for the supplied test method or if the test method is disabled via @IfProfileValue.
isUserInRole(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isUserInRole(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
isWindowStateAllowed(WindowState) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
isWriterAccessAllowed() - Method in class org.springframework.mock.web.MockHttpServletResponse
Return whether MockHttpServletResponse.getOutputStream() access is allowed.

J

jdbcTemplate - Variable in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated.  
JdbcTestUtils - Class in org.springframework.test.jdbc
JdbcTestUtils is a collection of JDBC related utility methods for use in unit and integration testing scenarios.
JdbcTestUtils() - Constructor for class org.springframework.test.jdbc.JdbcTestUtils
 

L

list(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
list(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
listBindings(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
listBindings(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
loadBeanDefinitions(GenericApplicationContext, MergedContextConfiguration) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Load bean definitions into the supplied context from the locations or classes in the supplied MergedContextConfiguration.
loadBeanDefinitions(GenericApplicationContext, MergedContextConfiguration) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
Register classes in the supplied context from the classes in the supplied MergedContextConfiguration.
loadContext(Object) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. This implementation assumes a key of type String array and loads a context from the given locations.
loadContext(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Load a new ApplicationContext for the given key.
loadContext(String...) - Method in interface org.springframework.test.context.ContextLoader
Loads a new context based on the supplied locations, configures the context, and finally returns the context in fully refreshed state.
loadContext(MergedContextConfiguration) - Method in interface org.springframework.test.context.SmartContextLoader
Loads a new context based on the supplied merged context configuration, configures the context, and finally returns the context in a fully refreshed state.
loadContext(MergedContextConfiguration) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Load a Spring ApplicationContext from the supplied MergedContextConfiguration.
loadContext(String...) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Load a Spring ApplicationContext from the supplied locations.
loadContext(MergedContextConfiguration) - Method in class org.springframework.test.context.support.DelegatingSmartContextLoader
Delegates to an appropriate candidate SmartContextLoader to load an ApplicationContext.
loadContext(String...) - Method in class org.springframework.test.context.support.DelegatingSmartContextLoader
DelegatingSmartContextLoader does not support the ContextLoader.loadContext(String...) method.
loadContextLocations(String[]) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Load a Spring ApplicationContext from the given config locations.
log(String) - Method in class org.springframework.mock.web.MockServletContext
 
log(Exception, String) - Method in class org.springframework.mock.web.MockServletContext
 
log(String, Throwable) - Method in class org.springframework.mock.web.MockServletContext
 
log(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
log(String, Throwable) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
log(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
log(String, Throwable) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
logger - Variable in class org.springframework.test.ConditionalTestCase
Deprecated. Logger available to subclasses
logger - Variable in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Logger available to subclasses.
logger - Variable in class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
Logger available to subclasses.
logger - Static variable in class org.springframework.test.context.junit4.statements.SpringRepeat
 
logger - Static variable in class org.springframework.test.context.support.AbstractGenericContextLoader
 
logger - Variable in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Logger available to subclasses
login(String, String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
logout() - Method in class org.springframework.mock.web.MockHttpServletRequest
 
lookup(String) - Method in class org.springframework.mock.jndi.ExpectedLookupTemplate
If the name is the expected name specified in the constructor, return the object provided in the constructor.
lookup(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
Look up the object with the given name.
lookup(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
lookupLink(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
lookupLink(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 

M

markApplicationContextDirty() - Method in class org.springframework.test.context.TestContext
Call this method to signal that the application context associated with this test context is dirty and should be reloaded.
MergedContextConfiguration - Class in org.springframework.test.context
MergedContextConfiguration encapsulates the merged context configuration declared on a test class and all of its superclasses via @ContextConfiguration and @ActiveProfiles.
MergedContextConfiguration(Class<?>, String[], Class<?>[], String[], ContextLoader) - Constructor for class org.springframework.test.context.MergedContextConfiguration
Create a new MergedContextConfiguration instance for the supplied test class, resource locations, annotated classes, active profiles, and ContextLoader.
methodBlock(FrameworkMethod) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Augments the default JUnit behavior with potential repeats of the entire execution chain.
MOCK_PROPERTIES_PROPERTY_SOURCE_NAME - Static variable in class org.springframework.mock.env.MockPropertySource
"mockProperties" is the default name for MockPropertySource instances not otherwise given an explicit name.
MockActionRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the ActionRequest interface.
MockActionRequest() - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
Create a new MockActionRequest with a default MockPortalContext and a default MockPortletContext.
MockActionRequest(String) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
Create a new MockActionRequest with a default MockPortalContext and a default MockPortletContext.
MockActionRequest(PortletMode) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
Create a new MockActionRequest with a default MockPortalContext and a default MockPortletContext.
MockActionRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
Create a new MockActionRequest with a default MockPortalContext.
MockActionRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
Create a new MockActionRequest.
MockActionResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the ActionResponse interface.
MockActionResponse() - Constructor for class org.springframework.mock.web.portlet.MockActionResponse
Create a new MockActionResponse with a default MockPortalContext.
MockActionResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockActionResponse
Create a new MockActionResponse.
MockBaseURL - Class in org.springframework.mock.web.portlet
Mock implementation of the BaseURL interface.
MockBaseURL() - Constructor for class org.springframework.mock.web.portlet.MockBaseURL
 
MockBodyContent - Class in org.springframework.mock.web
Mock implementation of the BodyContent class.
MockBodyContent(String, HttpServletResponse) - Constructor for class org.springframework.mock.web.MockBodyContent
Create a MockBodyContent for the given response.
MockBodyContent(String, Writer) - Constructor for class org.springframework.mock.web.MockBodyContent
Create a MockBodyContent for the given response.
MockBodyContent(String, HttpServletResponse, Writer) - Constructor for class org.springframework.mock.web.MockBodyContent
Create a MockBodyContent for the given response.
MockCacheControl - Class in org.springframework.mock.web.portlet
Mock implementation of the CacheControl interface.
MockCacheControl() - Constructor for class org.springframework.mock.web.portlet.MockCacheControl
 
MockClientDataRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the ClientDataRequest interface.
MockClientDataRequest() - Constructor for class org.springframework.mock.web.portlet.MockClientDataRequest
Create a new MockClientDataRequest with a default MockPortalContext and a default MockPortletContext.
MockClientDataRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockClientDataRequest
Create a new MockClientDataRequest with a default MockPortalContext.
MockClientDataRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockClientDataRequest
Create a new MockClientDataRequest.
MockEvent - Class in org.springframework.mock.web.portlet
Mock implementation of the Event interface.
MockEvent(QName) - Constructor for class org.springframework.mock.web.portlet.MockEvent
Create a new MockEvent with the given name.
MockEvent(QName, Serializable) - Constructor for class org.springframework.mock.web.portlet.MockEvent
Create a new MockEvent with the given name and value.
MockEvent(String) - Constructor for class org.springframework.mock.web.portlet.MockEvent
Create a new MockEvent with the given name.
MockEvent(String, Serializable) - Constructor for class org.springframework.mock.web.portlet.MockEvent
Create a new MockEvent with the given name and value.
MockEventRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the EventRequest interface.
MockEventRequest(Event) - Constructor for class org.springframework.mock.web.portlet.MockEventRequest
Create a new MockEventRequest with a default MockPortalContext and a default MockPortletContext.
MockEventRequest(Event, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockEventRequest
Create a new MockEventRequest with a default MockPortalContext.
MockEventRequest(Event, PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockEventRequest
Create a new MockEventRequest.
MockEventResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the EventResponse interface.
MockEventResponse() - Constructor for class org.springframework.mock.web.portlet.MockEventResponse
 
MockExpressionEvaluator - Class in org.springframework.mock.web
Mock implementation of the JSP 2.0 ExpressionEvaluator interface, delegating to the Jakarta JSTL ExpressionEvaluatorManager.
MockExpressionEvaluator(PageContext) - Constructor for class org.springframework.mock.web.MockExpressionEvaluator
Create a new MockExpressionEvaluator for the given PageContext.
MockFilterChain - Class in org.springframework.mock.web
Mock implementation of the FilterConfig interface.
MockFilterChain() - Constructor for class org.springframework.mock.web.MockFilterChain
 
MockFilterConfig - Class in org.springframework.mock.web
Mock implementation of the FilterConfig interface.
MockFilterConfig() - Constructor for class org.springframework.mock.web.MockFilterConfig
Create a new MockFilterConfig with a default MockServletContext.
MockFilterConfig(String) - Constructor for class org.springframework.mock.web.MockFilterConfig
Create a new MockFilterConfig with a default MockServletContext.
MockFilterConfig(ServletContext) - Constructor for class org.springframework.mock.web.MockFilterConfig
Create a new MockFilterConfig.
MockFilterConfig(ServletContext, String) - Constructor for class org.springframework.mock.web.MockFilterConfig
Create a new MockFilterConfig.
MockHttpServletRequest - Class in org.springframework.mock.web
Mock implementation of the HttpServletRequest interface.
MockHttpServletRequest() - Constructor for class org.springframework.mock.web.MockHttpServletRequest
Create a new MockHttpServletRequest with a default MockServletContext.
MockHttpServletRequest(String, String) - Constructor for class org.springframework.mock.web.MockHttpServletRequest
Create a new MockHttpServletRequest with a default MockServletContext.
MockHttpServletRequest(ServletContext) - Constructor for class org.springframework.mock.web.MockHttpServletRequest
Create a new MockHttpServletRequest.
MockHttpServletRequest(ServletContext, String, String) - Constructor for class org.springframework.mock.web.MockHttpServletRequest
Create a new MockHttpServletRequest.
MockHttpServletResponse - Class in org.springframework.mock.web
Mock implementation of the HttpServletResponse interface.
MockHttpServletResponse() - Constructor for class org.springframework.mock.web.MockHttpServletResponse
 
MockHttpSession - Class in org.springframework.mock.web
Mock implementation of the HttpSession interface.
MockHttpSession() - Constructor for class org.springframework.mock.web.MockHttpSession
Create a new MockHttpSession with a default MockServletContext.
MockHttpSession(ServletContext) - Constructor for class org.springframework.mock.web.MockHttpSession
Create a new MockHttpSession.
MockHttpSession(ServletContext, String) - Constructor for class org.springframework.mock.web.MockHttpSession
Create a new MockHttpSession.
MockJspWriter - Class in org.springframework.mock.web
Mock implementation of the JspWriter class.
MockJspWriter(HttpServletResponse) - Constructor for class org.springframework.mock.web.MockJspWriter
Create a MockJspWriter for the given response, using the response's default Writer.
MockJspWriter(Writer) - Constructor for class org.springframework.mock.web.MockJspWriter
Create a MockJspWriter for the given plain Writer.
MockJspWriter(HttpServletResponse, Writer) - Constructor for class org.springframework.mock.web.MockJspWriter
Create a MockJspWriter for the given response.
MockMimeResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the MimeResponse interface.
MockMimeResponse() - Constructor for class org.springframework.mock.web.portlet.MockMimeResponse
Create a new MockMimeResponse with a default MockPortalContext.
MockMimeResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockMimeResponse
Create a new MockMimeResponse.
MockMimeResponse(PortalContext, PortletRequest) - Constructor for class org.springframework.mock.web.portlet.MockMimeResponse
Create a new MockMimeResponse.
MockMultipartActionRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the MultipartActionRequest interface.
MockMultipartActionRequest() - Constructor for class org.springframework.mock.web.portlet.MockMultipartActionRequest
 
MockMultipartFile - Class in org.springframework.mock.web
Mock implementation of the MultipartFile interface.
MockMultipartFile(String, byte[]) - Constructor for class org.springframework.mock.web.MockMultipartFile
Create a new MockMultipartFile with the given content.
MockMultipartFile(String, InputStream) - Constructor for class org.springframework.mock.web.MockMultipartFile
Create a new MockMultipartFile with the given content.
MockMultipartFile(String, String, String, byte[]) - Constructor for class org.springframework.mock.web.MockMultipartFile
Create a new MockMultipartFile with the given content.
MockMultipartFile(String, String, String, InputStream) - Constructor for class org.springframework.mock.web.MockMultipartFile
Create a new MockMultipartFile with the given content.
MockMultipartHttpServletRequest - Class in org.springframework.mock.web
Mock implementation of the MultipartHttpServletRequest interface.
MockMultipartHttpServletRequest() - Constructor for class org.springframework.mock.web.MockMultipartHttpServletRequest
 
MockPageContext - Class in org.springframework.mock.web
Mock implementation of the PageContext interface.
MockPageContext() - Constructor for class org.springframework.mock.web.MockPageContext
Create new MockPageContext with a default MockServletContext, MockHttpServletRequest, MockHttpServletResponse, MockServletConfig.
MockPageContext(ServletContext) - Constructor for class org.springframework.mock.web.MockPageContext
Create new MockPageContext with a default MockHttpServletRequest, MockHttpServletResponse, MockServletConfig.
MockPageContext(ServletContext, HttpServletRequest) - Constructor for class org.springframework.mock.web.MockPageContext
Create new MockPageContext with a MockHttpServletResponse, MockServletConfig.
MockPageContext(ServletContext, HttpServletRequest, HttpServletResponse) - Constructor for class org.springframework.mock.web.MockPageContext
Create new MockPageContext with a MockServletConfig.
MockPageContext(ServletContext, HttpServletRequest, HttpServletResponse, ServletConfig) - Constructor for class org.springframework.mock.web.MockPageContext
Create new MockServletConfig.
MockPortalContext - Class in org.springframework.mock.web.portlet
Mock implementation of the PortalContext interface.
MockPortalContext() - Constructor for class org.springframework.mock.web.portlet.MockPortalContext
Create a new MockPortalContext with default PortletModes (VIEW, EDIT, HELP) and default WindowStates (NORMAL, MAXIMIZED, MINIMIZED).
MockPortalContext(List<PortletMode>, List<WindowState>) - Constructor for class org.springframework.mock.web.portlet.MockPortalContext
Create a new MockPortalContext with the given PortletModes and WindowStates.
MockPortletConfig - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletConfig interface.
MockPortletConfig() - Constructor for class org.springframework.mock.web.portlet.MockPortletConfig
Create a new MockPortletConfig with a default MockPortletContext.
MockPortletConfig(String) - Constructor for class org.springframework.mock.web.portlet.MockPortletConfig
Create a new MockPortletConfig with a default MockPortletContext.
MockPortletConfig(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletConfig
Create a new MockPortletConfig.
MockPortletConfig(PortletContext, String) - Constructor for class org.springframework.mock.web.portlet.MockPortletConfig
Create a new MockPortletConfig.
MockPortletContext - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletContext interface.
MockPortletContext() - Constructor for class org.springframework.mock.web.portlet.MockPortletContext
Create a new MockPortletContext with no base path and a DefaultResourceLoader (i.e.
MockPortletContext(String) - Constructor for class org.springframework.mock.web.portlet.MockPortletContext
Create a new MockPortletContext using a DefaultResourceLoader.
MockPortletContext(ResourceLoader) - Constructor for class org.springframework.mock.web.portlet.MockPortletContext
Create a new MockPortletContext, using the specified ResourceLoader and no base path.
MockPortletContext(String, ResourceLoader) - Constructor for class org.springframework.mock.web.portlet.MockPortletContext
Create a new MockPortletContext.
MockPortletPreferences - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletPreferences interface.
MockPortletPreferences() - Constructor for class org.springframework.mock.web.portlet.MockPortletPreferences
 
MockPortletRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletRequest interface.
MockPortletRequest() - Constructor for class org.springframework.mock.web.portlet.MockPortletRequest
Create a new MockPortletRequest with a default MockPortalContext and a default MockPortletContext.
MockPortletRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletRequest
Create a new MockPortletRequest with a default MockPortalContext.
MockPortletRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletRequest
Create a new MockPortletRequest.
MockPortletRequestDispatcher - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletRequestDispatcher interface.
MockPortletRequestDispatcher(String) - Constructor for class org.springframework.mock.web.portlet.MockPortletRequestDispatcher
Create a new MockPortletRequestDispatcher for the given URL.
MockPortletResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletResponse interface.
MockPortletResponse() - Constructor for class org.springframework.mock.web.portlet.MockPortletResponse
Create a new MockPortletResponse with a default MockPortalContext.
MockPortletResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletResponse
Create a new MockPortletResponse.
MockPortletSession - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletSession interface.
MockPortletSession() - Constructor for class org.springframework.mock.web.portlet.MockPortletSession
Create a new MockPortletSession with a default MockPortletContext.
MockPortletSession(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletSession
Create a new MockPortletSession.
MockPortletURL - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletURL interface.
MockPortletURL(PortalContext, String) - Constructor for class org.springframework.mock.web.portlet.MockPortletURL
Create a new MockPortletURL for the given URL type.
MockPropertySource - Class in org.springframework.mock.env
Simple PropertySource implementation for use in testing.
MockPropertySource() - Constructor for class org.springframework.mock.env.MockPropertySource
Create a new MockPropertySource named "mockProperties" that will maintain its own internal Properties instance.
MockPropertySource(String) - Constructor for class org.springframework.mock.env.MockPropertySource
Create a new MockPropertySource with the given name that will maintain its own internal Properties instance.
MockPropertySource(Properties) - Constructor for class org.springframework.mock.env.MockPropertySource
Create a new MockPropertySource named "mockProperties" and backed by the given Properties object.
MockPropertySource(String, Properties) - Constructor for class org.springframework.mock.env.MockPropertySource
Create a new MockPropertySource with with the given name and backed by the given Properties object
MockRenderRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the RenderRequest interface.
MockRenderRequest() - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
Create a new MockRenderRequest with a default MockPortalContext and a default MockPortletContext.
MockRenderRequest(PortletMode) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
Create a new MockRenderRequest with a default MockPortalContext and a default MockPortletContext.
MockRenderRequest(PortletMode, WindowState) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
Create a new MockRenderRequest with a default MockPortalContext and a default MockPortletContext.
MockRenderRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
Create a new MockRenderRequest with a default MockPortalContext.
MockRenderRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
Create a new MockRenderRequest.
MockRenderResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the RenderResponse interface.
MockRenderResponse() - Constructor for class org.springframework.mock.web.portlet.MockRenderResponse
Create a new MockRenderResponse with a default MockPortalContext.
MockRenderResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockRenderResponse
Create a new MockRenderResponse.
MockRenderResponse(PortalContext, RenderRequest) - Constructor for class org.springframework.mock.web.portlet.MockRenderResponse
Create a new MockRenderResponse.
MockRequestDispatcher - Class in org.springframework.mock.web
Mock implementation of the RequestDispatcher interface.
MockRequestDispatcher(String) - Constructor for class org.springframework.mock.web.MockRequestDispatcher
Create a new MockRequestDispatcher for the given URL.
MockResourceRequest - Class in org.springframework.mock.web.portlet
Mock implementation of the ResourceRequest interface.
MockResourceRequest() - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
Create a new MockResourceRequest with a default MockPortalContext and a default MockPortletContext.
MockResourceRequest(String) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
Create a new MockResourceRequest with a default MockPortalContext and a default MockPortletContext.
MockResourceRequest(MockResourceURL) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
Create a new MockResourceRequest with a default MockPortalContext and a default MockPortletContext.
MockResourceRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
Create a new MockResourceRequest with a default MockPortalContext.
MockResourceRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
Create a new MockResourceRequest.
MockResourceResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the ResourceResponse interface.
MockResourceResponse() - Constructor for class org.springframework.mock.web.portlet.MockResourceResponse
 
MockResourceURL - Class in org.springframework.mock.web.portlet
Mock implementation of the ResourceURL interface.
MockResourceURL() - Constructor for class org.springframework.mock.web.portlet.MockResourceURL
 
MockServletConfig - Class in org.springframework.mock.web
Mock implementation of the ServletConfig interface.
MockServletConfig() - Constructor for class org.springframework.mock.web.MockServletConfig
Create a new MockServletConfig with a default MockServletContext.
MockServletConfig(String) - Constructor for class org.springframework.mock.web.MockServletConfig
Create a new MockServletConfig with a default MockServletContext.
MockServletConfig(ServletContext) - Constructor for class org.springframework.mock.web.MockServletConfig
Create a new MockServletConfig.
MockServletConfig(ServletContext, String) - Constructor for class org.springframework.mock.web.MockServletConfig
Create a new MockServletConfig.
MockServletContext - Class in org.springframework.mock.web
Mock implementation of the ServletContext interface.
MockServletContext() - Constructor for class org.springframework.mock.web.MockServletContext
Create a new MockServletContext, using no base path and a DefaultResourceLoader (i.e.
MockServletContext(String) - Constructor for class org.springframework.mock.web.MockServletContext
Create a new MockServletContext, using a DefaultResourceLoader.
MockServletContext(ResourceLoader) - Constructor for class org.springframework.mock.web.MockServletContext
Create a new MockServletContext, using the specified ResourceLoader and no base path.
MockServletContext(String, ResourceLoader) - Constructor for class org.springframework.mock.web.MockServletContext
Create a new MockServletContext.
MockStateAwareResponse - Class in org.springframework.mock.web.portlet
Mock implementation of the StateAwareResponse interface.
MockStateAwareResponse() - Constructor for class org.springframework.mock.web.portlet.MockStateAwareResponse
Create a new MockActionResponse with a default MockPortalContext.
MockStateAwareResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockStateAwareResponse
Create a new MockActionResponse.
ModelAndViewAssert - Class in org.springframework.test.web
A collection of assertions intended to simplify testing scenarios dealing with Spring Web MVC ModelAndView objects.
ModelAndViewAssert() - Constructor for class org.springframework.test.web.ModelAndViewAssert
 
modifyLocations(Class<?>, String...) - Method in class org.springframework.test.context.support.AbstractContextLoader
Generate a modified version of the supplied locations array and return it.
modifyLocations(Class<?>, String...) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
AnnotationConfigContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.

N

newLine() - Method in class org.springframework.mock.web.MockBodyContent
 
newLine() - Method in class org.springframework.mock.web.MockJspWriter
 
NotTransactional - Annotation Type in org.springframework.test.annotation
Deprecated. as of Spring 3.0, in favor of moving the non-transactional test method to a separate (non-transactional) test class or to a @BeforeTransaction or @AfterTransaction method.

O

onSetUp() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Subclasses can override this method in place of the setUp() method, which is final in this class.
onSetUp() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. This implementation creates a transaction before test execution.
onSetUpBeforeTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Subclasses can override this method to perform any setup operations, such as populating a database table, before the transaction created by this class.
onSetUpInTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Subclasses can override this method to perform any setup operations, such as populating a database table, within the transaction created by this class.
onTearDown() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Subclasses can override this to add custom behavior on teardown.
onTearDown() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. This implementation ends the transaction after test execution.
onTearDownAfterTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Subclasses can override this method to perform cleanup after a transaction here.
onTearDownInTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Subclasses can override this method to run invariant tests here.
org.springframework.mock.env - package org.springframework.mock.env
 
org.springframework.mock.jndi - package org.springframework.mock.jndi
The simplest implementation of the JNDI SPI that could possibly work.
org.springframework.mock.web - package org.springframework.mock.web
A comprehensive set of Servlet API 2.5 mock objects, targeted at usage with Spring's web MVC framework.
org.springframework.mock.web.portlet - package org.springframework.mock.web.portlet
A comprehensive set of Portlet API 2.0 mock objects, targeted at usage with Spring's web MVC framework.
org.springframework.test - package org.springframework.test
This package contains the legacy JUnit 3.8 class hierarchy, which as of Spring 3.0 has been deprecated in favor of using the listener-based Spring TestContext Framework.
org.springframework.test.annotation - package org.springframework.test.annotation
Support classes for annotation-driven tests.
org.springframework.test.context - package org.springframework.test.context
This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.
org.springframework.test.context.junit38 - package org.springframework.test.context.junit38
Support classes for ApplicationContext-based and transactional tests run with JUnit 3.8 and the Spring TestContext Framework.
org.springframework.test.context.junit4 - package org.springframework.test.context.junit4
Support classes for ApplicationContext-based and transactional tests run with JUnit 4.5+ and the Spring TestContext Framework.
org.springframework.test.context.junit4.statements - package org.springframework.test.context.junit4.statements
JUnit 4.5 based statements used in the Spring TestContext Framework.
org.springframework.test.context.support - package org.springframework.test.context.support
Support classes for the Spring TestContext Framework.
org.springframework.test.context.testng - package org.springframework.test.context.testng
Support classes for ApplicationContext-based and transactional tests run with TestNG and the Spring TestContext Framework.
org.springframework.test.context.transaction - package org.springframework.test.context.transaction
Transactional support classes for the Spring TestContext Framework.
org.springframework.test.jdbc - package org.springframework.test.jdbc
Support classes for tests based on JDBC.
org.springframework.test.jpa - package org.springframework.test.jpa
As of Spring 3.0, this package has been deprecated in favor of using the listener-based Spring TestContext Framework.
org.springframework.test.util - package org.springframework.test.util
Helper classes for unit tests with reflective needs.
org.springframework.test.web - package org.springframework.test.web
Helper classes for unit tests based on Spring's web support.

P

parameters - Variable in class org.springframework.mock.web.portlet.MockBaseURL
 
parseExpression(String, Class, FunctionMapper) - Method in class org.springframework.mock.web.MockExpressionEvaluator
 
PassThroughFilterChain - Class in org.springframework.mock.web
Implementation of the FilterConfig interface which simply passes the call through to a given Filter/FilterChain combination (indicating the next Filter in the chain along with the FilterChain that it is supposed to work on) or to a given Servlet (indicating the end of the chain).
PassThroughFilterChain(Filter, FilterChain) - Constructor for class org.springframework.mock.web.PassThroughFilterChain
Create a new PassThroughFilterChain that delegates to the given Filter, calling it with the given FilterChain.
PassThroughFilterChain(Servlet) - Constructor for class org.springframework.mock.web.PassThroughFilterChain
Create a new PassThroughFilterChain that delegates to the given Servlet.
possiblyExpectingExceptions(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Performs the same logic as BlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod, Object, Statement) except that the expected exception is retrieved using SpringJUnit4ClassRunner.getExpectedException(FrameworkMethod).
prepareApplicationContext(GenericApplicationContext) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Prepare the GenericApplicationContext used by this test.
prepareContext(GenericApplicationContext) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
Prepare the GenericApplicationContext created by this ContextLoader.
prepareTestInstance() - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Prepare this test instance, injecting dependencies into its protected fields and its bean properties.
prepareTestInstance() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Prepare this test instance, for example populating its fields.
prepareTestInstance(TestContext) - Method in class org.springframework.test.context.support.AbstractTestExecutionListener
The default implementation is empty.
prepareTestInstance(TestContext) - Method in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
Performs dependency injection on the test instance of the supplied test context by autowiring and initializing the test instance via its own application context (without checking dependencies).
prepareTestInstance(Object) - Method in class org.springframework.test.context.TestContextManager
Hook for preparing a test instance prior to execution of any individual test methods, for example for injecting dependencies, etc.
prepareTestInstance(TestContext) - Method in interface org.springframework.test.context.TestExecutionListener
Prepares the test instance of the supplied test context, for example by injecting dependencies.
preventTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Call this method in an overridden ConditionalTestCase.runBare() method to prevent transactional execution.
print(boolean) - Method in class org.springframework.mock.web.MockBodyContent
 
print(char) - Method in class org.springframework.mock.web.MockBodyContent
 
print(char[]) - Method in class org.springframework.mock.web.MockBodyContent
 
print(double) - Method in class org.springframework.mock.web.MockBodyContent
 
print(float) - Method in class org.springframework.mock.web.MockBodyContent
 
print(int) - Method in class org.springframework.mock.web.MockBodyContent
 
print(long) - Method in class org.springframework.mock.web.MockBodyContent
 
print(Object) - Method in class org.springframework.mock.web.MockBodyContent
 
print(String) - Method in class org.springframework.mock.web.MockBodyContent
 
print(boolean) - Method in class org.springframework.mock.web.MockJspWriter
 
print(char) - Method in class org.springframework.mock.web.MockJspWriter
 
print(char[]) - Method in class org.springframework.mock.web.MockJspWriter
 
print(double) - Method in class org.springframework.mock.web.MockJspWriter
 
print(float) - Method in class org.springframework.mock.web.MockJspWriter
 
print(int) - Method in class org.springframework.mock.web.MockJspWriter
 
print(long) - Method in class org.springframework.mock.web.MockJspWriter
 
print(Object) - Method in class org.springframework.mock.web.MockJspWriter
 
print(String) - Method in class org.springframework.mock.web.MockJspWriter
 
println() - Method in class org.springframework.mock.web.MockBodyContent
 
println(boolean) - Method in class org.springframework.mock.web.MockBodyContent
 
println(char) - Method in class org.springframework.mock.web.MockBodyContent
 
println(char[]) - Method in class org.springframework.mock.web.MockBodyContent
 
println(double) - Method in class org.springframework.mock.web.MockBodyContent
 
println(float) - Method in class org.springframework.mock.web.MockBodyContent
 
println(int) - Method in class org.springframework.mock.web.MockBodyContent
 
println(long) - Method in class org.springframework.mock.web.MockBodyContent
 
println(Object) - Method in class org.springframework.mock.web.MockBodyContent
 
println(String) - Method in class org.springframework.mock.web.MockBodyContent
 
println() - Method in class org.springframework.mock.web.MockJspWriter
 
println(boolean) - Method in class org.springframework.mock.web.MockJspWriter
 
println(char) - Method in class org.springframework.mock.web.MockJspWriter
 
println(char[]) - Method in class org.springframework.mock.web.MockJspWriter
 
println(double) - Method in class org.springframework.mock.web.MockJspWriter
 
println(float) - Method in class org.springframework.mock.web.MockJspWriter
 
println(int) - Method in class org.springframework.mock.web.MockJspWriter
 
println(long) - Method in class org.springframework.mock.web.MockJspWriter
 
println(Object) - Method in class org.springframework.mock.web.MockJspWriter
 
println(String) - Method in class org.springframework.mock.web.MockJspWriter
 
processContextConfiguration(ContextConfigurationAttributes) - Method in interface org.springframework.test.context.SmartContextLoader
Processes the ContextConfigurationAttributes for a given test class.
processContextConfiguration(ContextConfigurationAttributes) - Method in class org.springframework.test.context.support.AbstractContextLoader
For backwards compatibility with the ContextLoader SPI, the default implementation simply delegates to AbstractContextLoader.processLocations(Class, String...), passing it the declaring class and resource locations retrieved from the supplied configuration attributes.
processContextConfiguration(ContextConfigurationAttributes) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
Process annotated classes in the supplied ContextConfigurationAttributes.
processContextConfiguration(ContextConfigurationAttributes) - Method in class org.springframework.test.context.support.DelegatingSmartContextLoader
Delegates to candidate SmartContextLoaders to process the supplied ContextConfigurationAttributes.
processLocations(Class<?>, String...) - Method in interface org.springframework.test.context.ContextLoader
Processes application context resource locations for a specified class.
processLocations(Class<?>, String...) - Method in class org.springframework.test.context.support.AbstractContextLoader
If the supplied locations are null or empty and AbstractContextLoader.isGenerateDefaultLocations() returns true, default locations will be generated for the specified class and the configured resource suffix; otherwise, the supplied locations will be modified if necessary and returned.
processLocations(Class<?>, String...) - Method in class org.springframework.test.context.support.DelegatingSmartContextLoader
DelegatingSmartContextLoader does not support the ContextLoader.processLocations(Class, String...) method.
profileValueSource - Variable in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. ProfileValueSource available to subclasses but primarily intended for use in AbstractAnnotationAwareTransactionalTests.isDisabledInThisEnvironment(Method).
ProfileValueSource - Interface in org.springframework.test.annotation
Strategy interface for retrieving profile values for a given testing environment.
profileValueSource - Variable in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. ProfileValueSource available to subclasses but primarily intended for internal use to provide support for @IfProfileValue.
ProfileValueSourceConfiguration - Annotation Type in org.springframework.test.annotation
ProfileValueSourceConfiguration is a class-level annotation which is used to specify what type of ProfileValueSource to use when retrieving profile values configured via the @IfProfileValue annotation.
ProfileValueUtils - Class in org.springframework.test.annotation
General utility methods for working with profile values.
ProfileValueUtils() - Constructor for class org.springframework.test.annotation.ProfileValueUtils
 
putValue(String, Object) - Method in class org.springframework.mock.web.MockHttpSession
 

R

read() - Method in class org.springframework.mock.web.DelegatingServletInputStream
 
readScript(LineNumberReader) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Read a script from the LineNumberReader and build a String containing the lines.
rebind(String, Object) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
rebind(Name, Object) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
recordDisabled() - Method in class org.springframework.test.ConditionalTestCase
Deprecated. Record a disabled test.
recordDisabled(Method) - Method in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Records the supplied test method as disabled in the current environment by incrementing the total number of disabled tests and logging a debug message.
ReflectionTestUtils - Class in org.springframework.test.util
ReflectionTestUtils is a collection of reflection-based utility methods for use in unit and integration testing scenarios.
ReflectionTestUtils() - Constructor for class org.springframework.test.util.ReflectionTestUtils
 
registerContext(String, ServletContext) - Method in class org.springframework.mock.web.MockServletContext
 
registerPublicParameter(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
registerTestExecutionListeners(TestExecutionListener...) - Method in class org.springframework.test.context.TestContextManager
Register the supplied TestExecutionListeners by appending them to the set of listeners used by this TestContextManager.
REINJECT_DEPENDENCIES_ATTRIBUTE - Static variable in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
Attribute name for a TestContext attribute which indicates whether or not the dependencies of a test instance should be reinjected in beforeTestMethod().
release() - Method in class org.springframework.mock.web.MockPageContext
 
removeAllParameters() - Method in class org.springframework.mock.web.MockHttpServletRequest
Removes all existing parameters.
removeAttribute(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
removeAttribute(String) - Method in class org.springframework.mock.web.MockHttpSession
 
removeAttribute(String) - Method in class org.springframework.mock.web.MockPageContext
 
removeAttribute(String, int) - Method in class org.springframework.mock.web.MockPageContext
 
removeAttribute(String) - Method in class org.springframework.mock.web.MockServletContext
 
removeAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
removeAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
removeAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
removeAttribute(String, int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
removeAttribute(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
removeFromEnvironment(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
removeParameter(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
Remove already registered values for the specified HTTP parameter, if any.
removePublicRenderParameter(String) - Method in class org.springframework.mock.web.portlet.MockPortletURL
 
removePublicRenderParameter(String) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
removeValue(String) - Method in class org.springframework.mock.web.MockHttpSession
 
rename(String, String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
rename(Name, Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
Repeat - Annotation Type in org.springframework.test.annotation
Test annotation to indicate that a test method should be invoked repeatedly.
reset() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
reset() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
reset(String) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
resetBuffer() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
resetBuffer() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
retrieveProfileValueSource(Class<?>) - Static method in class org.springframework.test.annotation.ProfileValueUtils
Retrieves the ProfileValueSource type for the specified test class as configured via the @ProfileValueSourceConfiguration annotation and instantiates a new instance of that type.
Rollback - Annotation Type in org.springframework.test.annotation
Test annotation to indicate whether or not the transaction for the annotated test method should be rolled back after the test method has completed.
run(RunNotifier) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Check whether the test is enabled in the first place.
run(IHookCallBack, ITestResult) - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Delegates to the test method in the supplied callback to execute the actual test and then tracks the exception thrown during test execution, if any.
RunAfterTestClassCallbacks - Class in org.springframework.test.context.junit4.statements
RunAfterTestClassCallbacks is a custom JUnit 4.5+ Statement which allows the Spring TestContext Framework to be plugged into the JUnit execution chain by calling afterTestClass() on the supplied TestContextManager.
RunAfterTestClassCallbacks(Statement, TestContextManager) - Constructor for class org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks
Constructs a new RunAfterTestClassCallbacks statement.
RunAfterTestMethodCallbacks - Class in org.springframework.test.context.junit4.statements
RunAfterTestMethodCallbacks is a custom JUnit 4.5+ Statement which allows the Spring TestContext Framework to be plugged into the JUnit execution chain by calling afterTestMethod() on the supplied TestContextManager.
RunAfterTestMethodCallbacks(Statement, Object, Method, TestContextManager) - Constructor for class org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks
Constructs a new RunAfterTestMethodCallbacks statement.
runAfterTransactionMethods(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
Run all @AfterTransaction methods for the specified test context.
runBare() - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated. Overridden to populate transaction definition from annotations.
runBare() - Method in class org.springframework.test.ConditionalTestCase
Deprecated.  
runBare() - Method in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Runs the Spring TestContext Framework test sequence.
runBare() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated.  
RunBeforeTestClassCallbacks - Class in org.springframework.test.context.junit4.statements
RunBeforeTestClassCallbacks is a custom JUnit 4.5+ Statement which allows the Spring TestContext Framework to be plugged into the JUnit execution chain by calling beforeTestClass() on the supplied TestContextManager.
RunBeforeTestClassCallbacks(Statement, TestContextManager) - Constructor for class org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
Constructs a new RunBeforeTestClassCallbacks statement.
RunBeforeTestMethodCallbacks - Class in org.springframework.test.context.junit4.statements
RunBeforeTestMethodCallbacks is a custom JUnit 4.5+ Statement which allows the Spring TestContext Framework to be plugged into the JUnit execution chain by calling beforeTestMethod() on the supplied TestContextManager.
RunBeforeTestMethodCallbacks(Statement, Object, Method, TestContextManager) - Constructor for class org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks
Constructs a new RunBeforeTestMethodCallbacks statement.
runBeforeTransactionMethods(TestContext) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
Run all @BeforeTransaction methods for the specified test context.
runChild(FrameworkMethod, RunNotifier) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Performs the same logic as BlockJUnit4ClassRunner.runChild(FrameworkMethod, RunNotifier), except that tests are determined to be ignored by SpringJUnit4ClassRunner.isTestMethodIgnored(FrameworkMethod).
runTest() - Method in class org.springframework.test.AssertThrows
Deprecated. The main template method that drives the running of the test logic and the checking of the resulting (expected) Exception.

S

sendError(int, String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
sendError(int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
sendRedirect(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
sendRedirect(String) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
sendRedirect(String, String) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
serializeState() - Method in class org.springframework.mock.web.MockHttpSession
Serialize the attributes of this session into an object that can be turned into a byte array with standard Java serialization.
ServletWrappingPortletContext - Class in org.springframework.mock.web.portlet
Mock implementation of the PortletContext interface, wrapping an underlying ServletContext.
ServletWrappingPortletContext(ServletContext) - Constructor for class org.springframework.mock.web.portlet.ServletWrappingPortletContext
Create a new PortletContext wrapping the given ServletContext.
setApplicationContext(ApplicationContext) - Method in class org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests
Deprecated. Sets the ApplicationContext to be used by this test instance, provided via ApplicationContextAware semantics.
setApplicationContext(ApplicationContext) - Method in class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
Set the ApplicationContext to be used by this test instance, provided via ApplicationContextAware semantics.
setApplicationContext(ApplicationContext) - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Set the ApplicationContext to be used by this test instance, provided via ApplicationContextAware semantics.
setAttribute(String, Object) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.MockHttpSession
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.MockPageContext
 
setAttribute(String, Object, int) - Method in class org.springframework.mock.web.MockPageContext
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.MockServletContext
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
setAttribute(String, Object, int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
setAttribute(String, Object) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
 
setAuthType(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setAuthType(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setAutowireMode(int) - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Set the autowire mode for test properties set by Dependency Injection.
setBufferSize(int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setBufferSize(int) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setCacheability(String) - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
setCacheability(String) - Method in class org.springframework.mock.web.portlet.MockResourceURL
 
setCharacterEncoding(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setCharacterEncoding(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setCharacterEncoding(String) - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
setCharacterEncoding(String) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setClasses(Class<?>[]) - Method in class org.springframework.test.context.ContextConfigurationAttributes
Set the processed annotated classes, effectively overriding the original value declared via @ContextConfiguration.
setCommitted(boolean) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setCommitted(boolean) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setComplete() - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Overridden to prevent the transaction committing if a number of tables have been cleared, as a defensive measure against accidental permanent wiping of a database.
setComplete() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Cause the transaction to commit for this test method, even if the test method is configured to rollback.
setContent(byte[]) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setContent(byte[]) - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
setContentLength(int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setContentLength(int) - Method in class org.springframework.mock.web.portlet.MockResourceResponse
 
setContentType(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setContentType(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setContentType(String) - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
setContentType(String) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setContextPath(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setContextPath(String) - Method in class org.springframework.mock.web.MockServletContext
 
setContextPath(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setCookies(Cookie...) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setCookies(Cookie...) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setDataSource(DataSource) - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Setter: DataSource is provided by Dependency Injection.
setDataSource(DataSource) - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated.  
setDataSource(DataSource) - Method in class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Set the DataSource, typically provided via Dependency Injection.
setDataSource(DataSource) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Set the DataSource, typically provided via Dependency Injection.
setDataSource(DataSource) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Set the DataSource, typically provided via Dependency Injection.
setDateHeader(String, long) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setDefaultNamespace(String) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
setDefaultRollback(boolean) - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Subclasses can set this value in their constructor to change the default, which is always to roll the transaction back.
setDependencyCheck(boolean) - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Set whether or not dependency checking should be performed for test properties set by Dependency Injection.
setDirty() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. Called to say that the "applicationContext" instance variable is dirty and should be reloaded.
setDirty(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated. Mark the context with the given key as dirty.
setDirty() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated.  
setEffectiveMajorVersion(int) - Method in class org.springframework.mock.web.MockServletContext
 
setEffectiveMinorVersion(int) - Method in class org.springframework.mock.web.MockServletContext
 
setEntityManagerFactory(EntityManagerFactory) - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated.  
setETag(String) - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
setEvent(QName, Serializable) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setEvent(String, Serializable) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setExpirationTime(int) - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
setFailureMessage(String) - Method in class org.springframework.test.AssertThrows
Deprecated. Set the extra, contextual failure message that will be included in the failure text if the text fails.
setField(Object, String, Object) - Static method in class org.springframework.test.util.ReflectionTestUtils
Set the field with the given name on the provided target object to the supplied value.
setField(Object, String, Object, Class<?>) - Static method in class org.springframework.test.util.ReflectionTestUtils
Set the field with the given name on the provided target object to the supplied value.
setForwardedUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setForwardedUrl(String) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setHeader(String, String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setIncludedUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setIncludedUrl(String) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setInitParameter(String, String) - Method in class org.springframework.mock.web.MockServletContext
 
setIntHeader(String, int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setLocalAddr(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setLocale(Locale) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setLocale(Locale) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setLocalName(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setLocalPort(int) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setLocations(String[]) - Method in class org.springframework.test.context.ContextConfigurationAttributes
Set the processed resource locations, effectively overriding the original value declared via @ContextConfiguration.
setMajorVersion(int) - Method in class org.springframework.mock.web.MockServletContext
 
setMaxInactiveInterval(int) - Method in class org.springframework.mock.web.MockHttpSession
 
setMaxInactiveInterval(int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
setMethod(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setMethod(String) - Method in class org.springframework.mock.web.portlet.MockClientDataRequest
 
setMethod(String) - Method in class org.springframework.mock.web.portlet.MockEventRequest
 
setMinorVersion(int) - Method in class org.springframework.mock.web.MockServletContext
 
setNamespace(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
setNew(boolean) - Method in class org.springframework.mock.web.MockHttpSession
 
setNew(boolean) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
setNextPossiblePortletModes(Collection<PortletMode>) - Method in class org.springframework.mock.web.portlet.MockRenderResponse
 
setOutputStreamAccessAllowed(boolean) - Method in class org.springframework.mock.web.MockHttpServletResponse
Set whether MockHttpServletResponse.getOutputStream() access is allowed.
setParameter(String, String) - Method in class org.springframework.mock.web.MockHttpServletRequest
Set a single value for the specified HTTP parameter.
setParameter(String, String[]) - Method in class org.springframework.mock.web.MockHttpServletRequest
Set an array of values for the specified HTTP parameter.
setParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
setParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
setParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setParameters(Map) - Method in class org.springframework.mock.web.MockHttpServletRequest
Sets all provided parameters replacing any existing values for the provided parameter names.
setParameters(Map<String, String[]>) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
setParameters(Map<String, String[]>) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setPathInfo(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setPopulateProtectedVariables(boolean) - Method in class org.springframework.test.AbstractDependencyInjectionSpringContextTests
Deprecated. Set whether to populate protected variables of this test case.
setPortletContextName(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
 
setPortletMode(PortletMode) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
setPortletMode(PortletMode) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setPortletMode(PortletMode) - Method in class org.springframework.mock.web.portlet.MockPortletURL
 
setPortletMode(PortletMode) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setPreferences(PortletPreferences) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setPreferencesValidator(PreferencesValidator) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
setProperty(String, Object) - Method in class org.springframework.mock.env.MockPropertySource
Set the given property on the underlying Properties object.
setProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
setProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockPortalContext
 
setProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
Set a single value for the specified property.
setProperty(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
 
setProtocol(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setPublicScope(boolean) - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
setQueryString(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setReadOnly(String, boolean) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
setRemoteAddr(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRemoteHost(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRemotePort(int) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRemoteUser(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRemoteUser(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setRenderParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
setRenderParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
setRenderParameter(String, String) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setRenderParameter(String, String[]) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setRenderParameters(Map<String, String[]>) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
setRenderParameters(EventRequest) - Method in class org.springframework.mock.web.portlet.MockEventResponse
 
setRenderParameters(Map<String, String[]>) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setRequestedSessionId(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRequestedSessionIdFromCookie(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRequestedSessionIdFromURL(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRequestedSessionIdValid(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setRequestedSessionIdValid(boolean) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setRequestURI(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setResourceBundle(Locale, ResourceBundle) - Method in class org.springframework.mock.web.portlet.MockPortletConfig
 
setResourceID(String) - Method in class org.springframework.mock.web.portlet.MockResourceRequest
 
setResourceID(String) - Method in class org.springframework.mock.web.portlet.MockResourceURL
 
setScheme(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setScheme(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setSecure(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setSecure(boolean) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
setSecure(boolean) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setServerName(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setServerName(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setServerPort(int) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setServerPort(int) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setServletContextName(String) - Method in class org.springframework.mock.web.MockServletContext
 
setServletPath(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setSession(HttpSession) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setSession(PortletSession) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setSqlScriptEncoding(String) - Method in class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
Deprecated. Specify the encoding for SQL scripts, if different from the platform encoding.
setSqlScriptEncoding(String) - Method in class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. Specify the encoding for SQL scripts, if different from the platform encoding.
setSqlScriptEncoding(String) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Specify the encoding for SQL scripts, if different from the platform encoding.
setSqlScriptEncoding(String) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Specify the encoding for SQL scripts, if different from the platform encoding.
setStatus(int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setStatus(int, String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setTitle(String) - Method in class org.springframework.mock.web.portlet.MockRenderResponse
 
setTransactionDefinition(TransactionDefinition) - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Call this method in an overridden ConditionalTestCase.runBare() method to override the transaction attributes that will be used, so that AbstractSingleSpringContextTests.setUp() and AbstractSingleSpringContextTests.tearDown() behavior is modified.
setTransactionManager(PlatformTransactionManager) - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Specify the transaction manager to use.
setUp() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. This implementation is final.
setUseCachedContent(boolean) - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
setUserPrincipal(Principal) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setUserPrincipal(Principal) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setValue(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
setValues(String, String[]) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
setWindowID(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setWindowState(WindowState) - Method in class org.springframework.mock.web.portlet.MockActionResponse
 
setWindowState(WindowState) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setWindowState(WindowState) - Method in class org.springframework.mock.web.portlet.MockPortletURL
 
setWindowState(WindowState) - Method in class org.springframework.mock.web.portlet.MockStateAwareResponse
 
setWriterAccessAllowed(boolean) - Method in class org.springframework.mock.web.MockHttpServletResponse
Set whether MockHttpServletResponse.getWriter() access is allowed.
sharedEntityManager - Variable in class org.springframework.test.jpa.AbstractJpaTests
Deprecated. Subclasses can use this in test cases.
shouldUseShadowLoader() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated. Subclasses should override this method if they wish to disable shadow class loading.
simpleJdbcTemplate - Variable in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated.  
simpleJdbcTemplate - Variable in class org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests
Deprecated. The SimpleJdbcTemplate that this base class manages, available to subclasses.
simpleJdbcTemplate - Variable in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
The SimpleJdbcTemplate that this base class manages, available to subclasses.
simpleJdbcTemplate - Variable in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
The SimpleJdbcTemplate that this base class manages, available to subclasses.
SimpleJdbcTestUtils - Class in org.springframework.test.jdbc
A Java-5-based collection of JDBC related utility functions intended to simplify standard database testing scenarios.
SimpleJdbcTestUtils() - Constructor for class org.springframework.test.jdbc.SimpleJdbcTestUtils
 
SimpleNamingContext - Class in org.springframework.mock.jndi
Simple implementation of a JNDI naming context.
SimpleNamingContext() - Constructor for class org.springframework.mock.jndi.SimpleNamingContext
Create a new naming context.
SimpleNamingContext(String) - Constructor for class org.springframework.mock.jndi.SimpleNamingContext
Create a new naming context with the given naming root.
SimpleNamingContext(String, Hashtable<String, Object>, Hashtable<String, Object>) - Constructor for class org.springframework.mock.jndi.SimpleNamingContext
Create a new naming context with the given naming root, the given name/object map, and the JNDI environment entries.
SimpleNamingContextBuilder - Class in org.springframework.mock.jndi
Simple implementation of a JNDI naming context builder.
SimpleNamingContextBuilder() - Constructor for class org.springframework.mock.jndi.SimpleNamingContextBuilder
 
SmartContextLoader - Interface in org.springframework.test.context
Strategy interface for loading an application context for an integration test managed by the Spring TestContext Framework.
splitSqlScript(String, char, List<String>) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Split an SQL script into separate statements delimited with the provided delimiter character.
SpringFailOnTimeout - Class in org.springframework.test.context.junit4.statements
SpringFailOnTimeout is a custom JUnit 4.5+ Statement which adds support for Spring's @Timed annotation by throwing an exception if the next statement in the execution chain takes more than the specified number of milliseconds.
SpringFailOnTimeout(Statement, long) - Constructor for class org.springframework.test.context.junit4.statements.SpringFailOnTimeout
Constructs a new SpringFailOnTimeout statement.
SpringJUnit4ClassRunner - Class in org.springframework.test.context.junit4
SpringJUnit4ClassRunner is a custom extension of BlockJUnit4ClassRunner which provides functionality of the Spring TestContext Framework to standard JUnit 4.5+ tests by means of the TestContextManager and associated support classes and annotations.
SpringJUnit4ClassRunner(Class<?>) - Constructor for class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Constructs a new SpringJUnit4ClassRunner and initializes a TestContextManager to provide Spring testing functionality to standard JUnit tests.
SpringRepeat - Class in org.springframework.test.context.junit4.statements
SpringRepeat is a custom JUnit 4.5+ Statement which adds support for Spring's @Repeat annotation by repeating the test for the specified number of times.
SpringRepeat(Statement, Method, int) - Constructor for class org.springframework.test.context.junit4.statements.SpringRepeat
Constructs a new SpringRepeat statement.
springTestContextAfterTestClass() - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Delegates to the configured TestContextManager to call 'after test class' callbacks.
springTestContextAfterTestMethod(Method) - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Delegates to the configured TestContextManager to post-process the test method after the actual test has executed.
springTestContextBeforeTestClass() - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Delegates to the configured TestContextManager to call 'before test class' callbacks.
springTestContextBeforeTestMethod(Method) - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Delegates to the configured TestContextManager to pre-process the test method before the actual test is executed.
springTestContextPrepareTestInstance() - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
Delegates to the configured TestContextManager to prepare this test instance prior to execution of any individual tests, for example for injecting dependencies, etc.
startNewTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Start a new transaction.
store() - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
SystemProfileValueSource - Class in org.springframework.test.annotation
Implementation of ProfileValueSource which uses system properties as the underlying source.

T

tearDown() - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated. This implementation is final.
test() - Method in class org.springframework.test.AssertThrows
Deprecated. Subclass must override this abstract method and provide the test logic.
TestContext - Class in org.springframework.test.context
TestContext encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.
TestContextManager - Class in org.springframework.test.context
TestContextManager is the main entry point into the Spring TestContext Framework, which provides support for loading and accessing application contexts, dependency injection of test instances, transactional execution of test methods, etc.
TestContextManager(Class<?>) - Constructor for class org.springframework.test.context.TestContextManager
Delegates to TestContextManager.TestContextManager(Class, String) with a value of null for the default ContextLoader class name.
TestContextManager(Class<?>, String) - Constructor for class org.springframework.test.context.TestContextManager
Constructs a new TestContextManager for the specified test class and automatically registers the TestExecutionListeners configured for the test class via the @TestExecutionListeners annotation.
TestExecutionListener - Interface in org.springframework.test.context
TestExecutionListener defines a listener API for reacting to test execution events published by the TestContextManager with which the listener is registered.
TestExecutionListeners - Annotation Type in org.springframework.test.context
TestExecutionListeners defines class-level metadata for configuring which TestExecutionListeners should be registered with a TestContextManager.
Timed - Annotation Type in org.springframework.test.annotation
Test-specific annotation to indicate that a test method has to finish execution in a specified time period.
toString() - Method in class org.springframework.mock.web.portlet.MockPortletURL
 
toString() - Method in class org.springframework.mock.web.portlet.MockResourceURL
 
toString() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Provide a String representation of the context configuration attributes and declaring class.
toString() - Method in class org.springframework.test.context.MergedContextConfiguration
Provide a String representation of the test class, locations, annotated classes, active profiles, and the name of the ContextLoader.
toString() - Method in class org.springframework.test.context.TestContext
Provide a String representation of this test context's state.
toString() - Method in class org.springframework.test.context.transaction.TransactionConfigurationAttributes
 
TransactionalTestExecutionListener - Class in org.springframework.test.context.transaction
TestExecutionListener that provides support for executing tests within transactions by using the @Transactional and @NotTransactional annotations.
TransactionalTestExecutionListener() - Constructor for class org.springframework.test.context.transaction.TransactionalTestExecutionListener
 
TransactionConfiguration - Annotation Type in org.springframework.test.context.transaction
TransactionConfiguration defines class-level metadata for configuring transactional tests.
TransactionConfigurationAttributes - Class in org.springframework.test.context.transaction
Configuration attributes for configuring transactional tests.
TransactionConfigurationAttributes(String, boolean) - Constructor for class org.springframework.test.context.transaction.TransactionConfigurationAttributes
Construct a new TransactionConfigurationAttributes instance from the supplied arguments.
transactionDefinition - Variable in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. Transaction definition used by this test class: by default, a plain DefaultTransactionDefinition.
transactionManager - Variable in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. The transaction manager to use
transactionStatus - Variable in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated. TransactionStatus for this test.
transferTo(File) - Method in class org.springframework.mock.web.MockMultipartFile
 

U

unbind(String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
unbind(Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
 
URL_TYPE_ACTION - Static variable in class org.springframework.mock.web.portlet.MockBaseURL
 
URL_TYPE_ACTION - Static variable in class org.springframework.mock.web.portlet.MockPortletURL
 
URL_TYPE_RENDER - Static variable in class org.springframework.mock.web.portlet.MockBaseURL
 
URL_TYPE_RENDER - Static variable in class org.springframework.mock.web.portlet.MockPortletURL
 
useCachedContent() - Method in class org.springframework.mock.web.portlet.MockCacheControl
 

V

valueOf(String) - Static method in enum org.springframework.test.annotation.DirtiesContext.ClassMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.springframework.test.annotation.DirtiesContext.ClassMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

withAfterClasses(Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Wraps the Statement returned by the parent implementation with a RunAfterTestClassCallbacks statement, thus preserving the default functionality but adding support for the Spring TestContext Framework.
withAfters(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Wraps the Statement returned by the parent implementation with a RunAfterTestMethodCallbacks statement, thus preserving the default functionality but adding support for the Spring TestContext Framework.
withBeforeClasses(Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Wraps the Statement returned by the parent implementation with a RunBeforeTestClassCallbacks statement, thus preserving the default functionality but adding support for the Spring TestContext Framework.
withBefores(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Wraps the Statement returned by the parent implementation with a RunBeforeTestMethodCallbacks statement, thus preserving the default functionality but adding support for the Spring TestContext Framework.
withPotentialRepeat(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Supports Spring's @Repeat annotation by returning a SpringRepeat statement initialized with the configured repeat count or 1 if no repeat count is configured.
withPotentialTimeout(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Supports both Spring's @Timed and JUnit's @Test(timeout=...) annotations, but not both simultaneously.
withProperty(String, Object) - Method in class org.springframework.mock.env.MockPropertySource
Convenient synonym for setProperty(java.lang.String, java.lang.Object) that returns the current instance.
write(int) - Method in class org.springframework.mock.web.DelegatingServletOutputStream
 
write(char[], int, int) - Method in class org.springframework.mock.web.MockBodyContent
 
write(char[], int, int) - Method in class org.springframework.mock.web.MockJspWriter
 
write(Writer) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
write(Writer, boolean) - Method in class org.springframework.mock.web.portlet.MockBaseURL
 
writeOut(Writer) - Method in class org.springframework.mock.web.MockBodyContent
 

A B C D E F G H I J L M N O P R S T U V W
spring-test