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

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
 
AbstractDelegatingSmartContextLoader - Class in org.springframework.test.context.support
AbstractDelegatingSmartContextLoader serves as an abstract base class for implementations of the SmartContextLoader SPI that delegate to a set of candidate SmartContextLoaders (i.e., one that supports XML configuration files and one that supports annotated classes) to determine which context loader is appropriate for a given test class's configuration.
AbstractDelegatingSmartContextLoader() - Constructor for class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
 
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
 
AbstractGenericWebContextLoader - Class in org.springframework.test.context.web
Abstract, generic extension of AbstractContextLoader that loads a GenericWebApplicationContext.
AbstractGenericWebContextLoader() - Constructor for class org.springframework.test.context.web.AbstractGenericWebContextLoader
 
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
 
accept(MediaType...) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the 'Accept' header to the given media type(s).
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.
addFilter(Filter, String...) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Add a filter mapped to a specific set of patterns.
addFilters(Filter...) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Add filters mapped to any request (i.e.
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
 
addInterceptors(HandlerInterceptor...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Add interceptors mapped to all incoming requests.
addIntHeader(String, int) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
addLocale(Locale) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
addMappedInterceptors(String[], HandlerInterceptor...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Add interceptors mapped to a set of path patterns.
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 DependencyInjectionTestExecutionListener.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.
afterTestMethod(TestContext) - Method in class org.springframework.test.context.web.ServletTestExecutionListener
If the ServletTestExecutionListener.RESET_REQUEST_CONTEXT_HOLDER_ATTRIBUTE in the supplied TestContext has a value of Boolean.TRUE, this method will (1) clean up thread-local state after each test method by resetting Spring Web's RequestContextHolder and (2) ensure that new mocks are injected into the test instance for subsequent tests by setting the DependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTE in the test context to true.
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.
alwaysDo(ResultHandler) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Define a global action that should always be applied to every response.
alwaysExpect(ResultMatcher) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Define a global expectation that should always be applied to every response.
andDo(ResultHandler) - Method in interface org.springframework.test.web.servlet.ResultActions
Provide a general action.
andExpect(RequestMatcher) - Method in interface org.springframework.test.web.client.ResponseActions
Add a request expectation.
andExpect(ResultMatcher) - Method in interface org.springframework.test.web.servlet.ResultActions
Provide an expectation.
andRespond(ResponseCreator) - Method in interface org.springframework.test.web.client.ResponseActions
Define the response.
andReturn() - Method in interface org.springframework.test.web.servlet.ResultActions
Return the result of the executed request for direct access to the results.
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
 
AnnotationConfigContextLoaderUtils - Class in org.springframework.test.context.support
Utility methods for SmartContextLoaders that deal with annotated classes (e.g., @Configuration classes).
AnnotationConfigContextLoaderUtils() - Constructor for class org.springframework.test.context.support.AnnotationConfigContextLoaderUtils
 
AnnotationConfigWebContextLoader - Class in org.springframework.test.context.web
Concrete implementation of AbstractGenericWebContextLoader that loads bean definitions from annotated classes.
AnnotationConfigWebContextLoader() - Constructor for class org.springframework.test.context.web.AnnotationConfigWebContextLoader
 
anything() - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Match to any request.
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.
assertBoolean(String, boolean) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content as a Boolean.
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.
assertEquals(String, Object, Object) - Static method in class org.springframework.test.util.AssertionErrors
Assert two objects are equal raise an AssertionError if not.
AssertionErrors - Class in org.springframework.test.util
JUnit independent assertion class.
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.
assertNode(String, Matcher<? super Node>) - Method in class org.springframework.test.util.XmlExpectationsHelper
Parse the content as Node and apply a Matcher.
assertNode(String, Matcher<? super Node>) - Method in class org.springframework.test.util.XpathExpectationsHelper
Parse the content, evaluate the XPath expression as a Node, and assert it with the given Matcher<Node>.
assertNodeCount(String, Matcher<Integer>) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content with the given Hamcrest matcher.
assertNodeCount(String, int) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content as an integer.
assertNumber(String, Matcher<? super Double>) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content with the given Hamcrest matcher.
assertNumber(String, Double) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content as a Double.
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).
assertSource(String, Matcher<? super Source>) - Method in class org.springframework.test.util.XmlExpectationsHelper
Parse the content as DOMSource and apply a Matcher.
assertString(String, Matcher<? super String>) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content with the given Hamcrest matcher.
assertString(String, String) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content as a String.
assertThat(T, Matcher<T>) - Static method in class org.springframework.test.util.MatcherAssertionErrors
Asserts that the given matcher matches the actual value.
assertThat(String, T, Matcher<T>) - Static method in class org.springframework.test.util.MatcherAssertionErrors
Asserts that the given matcher matches the actual value.
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.
assertTrue(String, boolean) - Static method in class org.springframework.test.util.AssertionErrors
Assert the given condition is true and raise an AssertionError if it is not.
assertValue(String, Matcher<T>) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
Evaluate the JSONPath and assert the resulting value with the given Matcher.
assertValue(String, Object) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
Apply the JSONPath and assert the resulting value.
assertValueIsArray(String) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
Apply the JSONPath and assert the resulting value is an array.
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.
assertXmlEqual(String, String) - Method in class org.springframework.test.util.XmlExpectationsHelper
Parse the expected and actual content strings as XML and assert that the two are "similar" -- i.e.
asyncDispatch(MvcResult) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a RequestBuilder for an async dispatch from the MvcResult of the request that started async processing.
asyncNotStarted() - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert that asynchronous processing was not start.
asyncResult(Matcher<T>) - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert the result from asynchronous processing with the given matcher.
asyncResult(Object) - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert the result from asynchronous processing.
asyncStarted() - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert a request attribute value with the given Hamcrest Matcher.
attribute(String, Matcher<T>) - Method in class org.springframework.test.web.servlet.result.FlashAttributeResultMatchers
Assert a flash attribute's value with the given Hamcrest Matcher.
attribute(String, Object) - Method in class org.springframework.test.web.servlet.result.FlashAttributeResultMatchers
Assert a flash attribute's value.
attribute(String, Matcher<T>) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert a model attribute value with the given Hamcrest Matcher.
attribute(String, Object) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert a model attribute value.
attribute(String, Matcher<T>) - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert a request attribute value with the given Hamcrest Matcher.
attribute(String, Object) - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert a request attribute value.
attributeCount(int) - Method in class org.springframework.test.web.servlet.result.FlashAttributeResultMatchers
Assert the number of flash attributes.
attributeDoesNotExist(String...) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the given model attributes do not exist
attributeErrorCount(String, int) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the given model attribute(s) have errors.
attributeExists(String...) - Method in class org.springframework.test.web.servlet.result.FlashAttributeResultMatchers
Assert the existence of the given flash attributes.
attributeExists(String...) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the given model attributes exist.
attributeHasErrors(String...) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the given model attribute(s) have errors.
attributeHasFieldErrors(String, String...) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the given model attribute field(s) have errors.
attributeHasNoErrors(String...) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the given model attribute(s) do not have errors.
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.
beforeTestMethod(TestContext) - Method in class org.springframework.test.context.web.ServletTestExecutionListener
Sets up thread-local state before each test method via Spring Web's RequestContextHolder, but only if the test class is annotated with @WebAppConfiguration.
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 &#064;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.
body(String) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
Set the body as a UTF-8 String.
body(byte[]) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
Set the body as a byte array.
body(Resource) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
Set the body as a Resource.
booleanValue(Boolean) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the boolean value found.
booleanValue(Boolean) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert the Boolean value found.
build() - Method in interface org.springframework.test.web.servlet.MockMvcBuilder
Build a MockMvc instance.
build() - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Build a MockMvc instance.
buildRequest(ServletContext) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
buildRequest(ServletContext) - Method in interface org.springframework.test.web.servlet.RequestBuilder
Build the request.
bytes(byte[]) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Compare the body of the request to the given byte array.
bytes(byte[]) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the response body content as a byte array.

C

CacheAwareContextLoaderDelegate - Class in org.springframework.test.context
CacheAwareContextLoaderDelegate loads application contexts from MergedContextConfiguration by delegating to the ContextLoader configured in the MergedContextConfiguration and interacting transparently with the ContextCache behind the scenes.
cacheKeys() - Method in class org.springframework.test.jpa.AbstractJpaTests
Deprecated.
 
characterEncoding(String) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the character encoding of the request.
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.http.client.MockClientHttpResponse
 
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.
comment(String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's comment with a Hamcrest Matcher.
comment(String, String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's comment value.
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.
configureWebResources(GenericWebApplicationContext, WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AbstractGenericWebContextLoader
Configures web resources for the supplied web application context (WAC).
containsHeader(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
containsSqlScriptDelimiters(String, char) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Determine if the provided SQL script contains the specified delimiter.
content() - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Access to request body matchers.
content(byte[]) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the request body.
content(String) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the request body as a UTF-8 String.
content() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response body assertions.
ContentRequestMatchers - Class in org.springframework.test.web.client.match
Factory for request content RequestMatcher's.
ContentRequestMatchers() - Constructor for class org.springframework.test.web.client.match.ContentRequestMatchers
Class constructor, not for direct instantiation.
ContentResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for response content assertions.
ContentResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.ContentResultMatchers
Protected constructor.
contentType(String) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Assert the request content type as a String.
contentType(MediaType) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Assert the request content type as a MediaType.
contentType(MediaType) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
Set the Content-Type header.
contentType(MediaType) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the 'Content-Type' header of the request.
contentType(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the ServletResponse content type.
contentType(MediaType) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the ServletResponse content type after parsing it as a MediaType.
contentTypeCompatibleWith(String) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Assert the request content type is compatible with the given content type as defined by MediaType.isCompatibleWith(MediaType).
contentTypeCompatibleWith(MediaType) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Assert the request content type is compatible with the given content type as defined by MediaType.isCompatibleWith(MediaType).
contentTypeCompatibleWith(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the ServletResponse content type is compatible with the given content type as defined by MediaType.isCompatibleWith(MediaType).
contentTypeCompatibleWith(MediaType) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the ServletResponse content type is compatible with the given content type as defined by MediaType.isCompatibleWith(MediaType).
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 integration tests.
ContextConfigurationAttributes - Class in org.springframework.test.context
ContextConfigurationAttributes encapsulates the context configuration attributes declared 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<?>, AnnotationAttributes) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
Construct a new ContextConfigurationAttributes instance for the supplied AnnotationAttributes (parsed from a @ContextConfiguration annotation) and the test class that declared them.
ContextConfigurationAttributes(Class<?>, String[], Class<?>[], boolean, Class<? extends ContextLoader>) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
ContextConfigurationAttributes(Class<?>, String[], Class<?>[], boolean, Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[], 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.
ContextConfigurationAttributes(Class<?>, String[], Class<?>[], boolean, Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[], boolean, String, 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.
ContextHierarchy - Annotation Type in org.springframework.test.context
@ContextHierarchy is a class-level annotation that is used to define a hierarchy of ApplicationContexts for integration tests.
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.
contextPath(String) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Specify the portion of the requestURI that represents the context path.
cookie(Cookie...) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Add the given cookies to the request.
cookie() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response cookie assertions.
CookieResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for response cookie assertions.
CookieResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.CookieResultMatchers
Protected constructor.
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(JdbcTemplate, String) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Count the rows in the given table.
countRowsInTable(SimpleJdbcTemplate, String) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Deprecated.
Count the rows in the given table.
countRowsInTableWhere(String, String) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Count the rows in the given table, using the provided WHERE clause.
countRowsInTableWhere(String, String) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Count the rows in the given table, using the provided WHERE clause.
countRowsInTableWhere(JdbcTemplate, String, String) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Count the rows in the given table, using the provided WHERE clause.
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.
createMockMvc(Filter[], MockServletConfig, WebApplicationContext, RequestBuilder, List<ResultMatcher>, List<ResultHandler>, Boolean) - Method in class org.springframework.test.web.servlet.MockMvcBuilderSupport
 
createRenderURL() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
createRequest(URI, HttpMethod) - Method in class org.springframework.test.web.client.MockMvcClientHttpRequestFactory
 
createResourceURL() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
createResponse(ClientHttpRequest) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
 
createResponse(ClientHttpRequest) - Method in interface org.springframework.test.web.client.ResponseCreator
Create a response for the given request.
createServer(RestTemplate) - Static method in class org.springframework.test.web.client.MockRestServiceServer
Create a MockRestServiceServer and set up the given RestTemplate with a mock ClientHttpRequestFactory.
createServer(RestGatewaySupport) - Static method in class org.springframework.test.web.client.MockRestServiceServer
Create a MockRestServiceServer and set up the given RestGatewaySupport with a mock ClientHttpRequestFactory.
createServletRequest(ServletContext) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Create a new MockHttpServletRequest based on the given ServletContext.
createServletRequest(ServletContext) - Method in class org.springframework.test.web.servlet.request.MockMultipartHttpServletRequestBuilder
 
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.
customizeBeanFactory(DefaultListableBeanFactory, WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AbstractGenericWebContextLoader
Customize the internal bean factory of the WebApplicationContext created by this context loader.
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.
customizeContext(GenericWebApplicationContext, WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AbstractGenericWebContextLoader
Customize the GenericWebApplicationContext created by this context loader 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'.
DefaultMockMvcBuilder<Self extends DefaultMockMvcBuilder> - Class in org.springframework.test.web.servlet.setup
An concrete implementation of MockMvcBuilder with methods for configuring filters, default request properties, and global expectations and result actions.
DefaultMockMvcBuilder(WebApplicationContext) - Constructor for class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Protected constructor.
defaultRequest(RequestBuilder) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Define default request properties that should be merged into all performed requests.
DefaultResponseCreator - Class in org.springframework.test.web.client.response
A ResponseCreator with builder-style methods for adding response details.
DefaultResponseCreator(HttpStatus) - Constructor for class org.springframework.test.web.client.response.DefaultResponseCreator
Protected constructor.
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 a concrete implementation of AbstractDelegatingSmartContextLoader that delegates to a GenericXmlContextLoader and an AnnotationConfigContextLoader.
DelegatingSmartContextLoader() - Constructor for class org.springframework.test.context.support.DelegatingSmartContextLoader
 
delete(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a DELETE request.
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(JdbcTemplate, String...) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Delete all rows from the specified tables.
deleteFromTables(SimpleJdbcTemplate, String...) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Deprecated.
Delete all rows from the specified tables.
deleteFromTableWhere(JdbcTemplate, String, String, Object...) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Delete rows from the given table, using the provided WHERE clause.
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.
detectDefaultConfigurationClasses(Class<?>) - Static method in class org.springframework.test.context.support.AnnotationConfigContextLoaderUtils
Detect the default configuration classes for the supplied test class.
detectDefaultConfigurationClasses(Class<?>) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
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.
DirtiesContext.HierarchyMode - Enum in org.springframework.test.annotation
Defines modes which determine how the context cache is cleared when @DirtiesContext is used in a test whose context is configured as part of a hierarchy via @ContextHierarchy.
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
Deprecated.
as of Spring 3.2.2, use #dirtyContext(TestContext, HierarchyMode) instead.
dirtyContext(TestContext, DirtiesContext.HierarchyMode) - Method in class org.springframework.test.context.support.DirtiesContextTestExecutionListener
Marks the application context of the supplied test context as dirty and sets DependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTE in the test context to true.
dispatchOptions(boolean) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Should the DispatcherServlet dispatch OPTIONS request to controllers.
doClearAttributes(Map<String, Object>) - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
doesNotExist(String) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
Evaluate the JSON path and assert it doesn't point to any content.
doesNotExist(String) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content does not exist.
doesNotExist() - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
Evaluate the JSON path and assert the resulting content exists.
doesNotExist() - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Assert that content does not exist at the given XPath.
doesNotExist(String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie does not exist.
doesNotExist() - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
Evaluate the JSON path and assert not content was found.
doesNotExist() - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert that content doesn't exist.
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
Invoke registered Filters and/or Servlet also saving the request and response.
doFilter(ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.PassThroughFilterChain
Pass the call on to the Filter/Servlet.
domain(String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's domain with a Hamcrest Matcher.
domain(String, String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's domain value.
dropTables(String...) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
Convenience method for dropping all of the specified tables.
dropTables(String...) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Convenience method for dropping all of the specified tables.
dropTables(JdbcTemplate, String...) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Drop the specified tables.

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
 
encoding(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the character encoding in the ServletResponse.
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.ContextConfigurationAttributes
Determine if the supplied object is equal to this ContextConfigurationAttributes instance by comparing both object's declaring class, locations, annotated classes, inheritLocations flag, context initializer classes, inheritInitializers flag, and the ContextLoader class.
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, context initializer classes, active profiles, parents, and the fully qualified names of their ContextLoaders.
equals(Object) - Method in class org.springframework.test.context.web.WebMergedContextConfiguration
Determine if the supplied object is equal to this WebMergedContextConfiguration instance by comparing both object's locations, annotated classes, context initializer classes, active profiles, resource base path, parents, and the fully qualified names of their ContextLoaders.
errorCount(int) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the total number of errors in the model.
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.
evaluateXpath(Document, QName, Class<T>) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression to given document.
execute() - Method in class org.springframework.mock.http.client.MockClientHttpRequest
Set the executed flag to true and return the configured response.
executeInternal() - Method in class org.springframework.mock.http.client.MockClientHttpRequest
The default implementation returns the configured response.
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(JdbcTemplate, ResourceLoader, String, boolean) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Execute the given SQL script.
executeSqlScript(JdbcTemplate, Resource, boolean) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Execute the given SQL script.
executeSqlScript(JdbcTemplate, EncodedResource, boolean) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Execute the given SQL script.
executeSqlScript(SimpleJdbcTemplate, ResourceLoader, String, boolean) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Deprecated.
Execute the given SQL script.
executeSqlScript(SimpleJdbcTemplate, Resource, boolean) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Deprecated.
Execute the given SQL script.
executeSqlScript(SimpleJdbcTemplate, EncodedResource, boolean) - Static method in class org.springframework.test.jdbc.SimpleJdbcTestUtils
Deprecated.
Execute the given SQL script.
exists(String) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
Evaluate the JSON path and assert the resulting content exists.
exists(String) - Method in class org.springframework.test.util.XpathExpectationsHelper
Apply the XPath expression and assert the resulting content exists.
exists() - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
Apply the JSONPath and assert the resulting value.
exists() - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Assert that content exists at the given XPath.
exists(String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie exists.
exists() - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
Evaluate the JSONPath and assert that content exists.
exists() - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert that content exists.
expect(RequestMatcher) - Method in class org.springframework.test.web.client.MockRestServiceServer
Set up a new HTTP request expectation.
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

fail(String) - Static method in class org.springframework.test.util.AssertionErrors
Fails a test with the given message.
fail(String, Object, Object) - Static method in class org.springframework.test.util.AssertionErrors
Fails a test with the given message passing along expected and actual values to be added to the message.
file(String, byte[]) - Method in class org.springframework.test.web.servlet.request.MockMultipartHttpServletRequestBuilder
Create a new MockMultipartFile with the given content.
file(MockMultipartFile) - Method in class org.springframework.test.web.servlet.request.MockMultipartHttpServletRequestBuilder
Add the given MockMultipartFile.
fileUpload(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a multipart request.
findAttribute(String) - Method in class org.springframework.mock.web.MockPageContext
 
findUniqueProfileValueSourceFromContext(ApplicationContext) - Method in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated.
flash() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to flash attribute assertions.
flashAttr(String, Object) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set an "input" flash attribute.
FlashAttributeResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for "output" flash attribute assertions.
FlashAttributeResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.FlashAttributeResultMatchers
Protected constructor.
flashAttrs(Map<String, Object>) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set flash attributes.
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
 
forwardedUrl(String) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Asserts the request was forwarded to the given URL.

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.
generateDefaultLocations(Class<?>) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
AnnotationConfigWebContextLoader 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
 
GenericXmlWebContextLoader - Class in org.springframework.test.context.web
Concrete implementation of AbstractGenericWebContextLoader that loads bean definitions from XML resources.
GenericXmlWebContextLoader() - Constructor for class org.springframework.test.context.web.GenericXmlWebContextLoader
 
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.
get(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a GET request.
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
getAnnotationConfigLoader() - Method in class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
Get the delegate SmartContextLoader that supports annotated classes.
getAnnotationConfigLoader() - Method in class org.springframework.test.context.support.DelegatingSmartContextLoader
 
getAnnotationConfigLoader() - Method in class org.springframework.test.context.web.WebDelegatingSmartContextLoader
 
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.
getAsyncResult() - Method in interface org.springframework.test.web.servlet.MvcResult
Get the result of async execution.
getAsyncResult(long) - Method in interface org.springframework.test.web.servlet.MvcResult
Get the result of async execution.
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.
getBody() - Method in class org.springframework.mock.http.MockHttpInputMessage
 
getBody() - Method in class org.springframework.mock.http.MockHttpOutputMessage
Return the body content.
getBodyAsBytes() - Method in class org.springframework.mock.http.MockHttpOutputMessage
Return body content as a byte array.
getBodyAsString() - Method in class org.springframework.mock.http.MockHttpOutputMessage
Return the body content interpreted as a UTF-8 string.
getBodyAsString(Charset) - Method in class org.springframework.mock.http.MockHttpOutputMessage
Return the body content as a string.
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.
getContextInitializerClasses() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the merged ApplicationContextInitializer classes for the test class.
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
 
getDefaultServletName() - Method in class org.springframework.mock.web.MockServletContext
Get the name of the default Servlet.
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 &#064;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
 
getFlashMap() - Method in interface org.springframework.test.web.servlet.MvcResult
Return the "output" flash attributes saved during request processing.
getForwardedUrl() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
getForwardedUrl() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
getHandler() - Method in interface org.springframework.test.web.servlet.MvcResult
Return the executed handler.
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() - Method in class org.springframework.mock.http.MockHttpInputMessage
 
getHeaders() - Method in class org.springframework.mock.http.MockHttpOutputMessage
Return the headers.
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
 
getInitializers() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the ApplicationContextInitializer classes that were declared via @ContextConfiguration.
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.
getInterceptors() - Method in interface org.springframework.test.web.servlet.MvcResult
Return interceptors around the handler.
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.http.client.MockClientHttpRequest
 
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
This method uses the Java Activation framework, which returns "application/octet-stream" when the mime type is unknown (i.e.
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.
getModelAndView() - Method in interface org.springframework.test.web.servlet.MvcResult
Return the ModelAndView prepared by the handler.
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
 
getName() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the name of the context hierarchy level that was declared via @ContextConfiguration.
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
 
getParamsMultiValueMap(MockHttpServletRequest) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
 
getParent() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the MergedContextConfiguration for the parent application context in a context hierarchy.
getParentApplicationContext() - Method in class org.springframework.test.context.MergedContextConfiguration
Get the parent ApplicationContext for the context defined by this MergedContextConfiguration from the context cache.
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
 
getPrinter() - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
 
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
 
getRawStatusCode() - Method in class org.springframework.mock.http.client.MockClientHttpResponse
 
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
getRequest() - Method in class org.springframework.mock.web.MockPageContext
 
getRequest() - Method in interface org.springframework.test.web.servlet.MvcResult
Return the performed request.
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
 
getRequestHeaders(MockHttpServletRequest) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
 
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
 
getResolvedException() - Method in interface org.springframework.test.web.servlet.MvcResult
Return any exception raised by a handler and successfully resolved through a HandlerExceptionResolver.
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
 
getResourceBasePath() - Method in class org.springframework.test.context.web.WebMergedContextConfiguration
Get the resource path to the root directory of the web application for the test class, configured via @WebAppConfiguration.
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".
getResourceSuffix() - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
AnnotationConfigWebContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.
getResourceSuffix() - Method in class org.springframework.test.context.web.GenericXmlWebContextLoader
Returns "-context.xml".
getResponse() - Method in class org.springframework.mock.web.MockFilterChain
getResponse() - Method in class org.springframework.mock.web.MockPageContext
 
getResponse() - Method in interface org.springframework.test.web.servlet.MvcResult
Return the resulting response.
getResponseContentType() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getResponseContentTypes() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
getResponseHeaders(MockHttpServletResponse) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
 
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
 
getStatusCode() - Method in class org.springframework.mock.http.client.MockClientHttpResponse
 
getStatusText() - Method in class org.springframework.mock.http.client.MockClientHttpResponse
 
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
Get 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, String) - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
Get the transaction manager to use for the supplied test context and qualifier.
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.
getURI() - Method in class org.springframework.mock.http.client.MockClientHttpRequest
 
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
 
getXmlLoader() - Method in class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
Get the delegate SmartContextLoader that supports XML configuration files.
getXmlLoader() - Method in class org.springframework.test.context.support.DelegatingSmartContextLoader
 
getXmlLoader() - Method in class org.springframework.test.context.web.WebDelegatingSmartContextLoader
 
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
 
getXpathExpression() - Method in class org.springframework.test.util.XpathExpectationsHelper
 

H

handle(MvcResult) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print MvcResult details to the "standard" output stream.
handle(MvcResult) - Method in interface org.springframework.test.web.servlet.ResultHandler
Apply the action on the given result.
handlePageException(Exception) - Method in class org.springframework.mock.web.MockPageContext
 
handlePageException(Throwable) - Method in class org.springframework.mock.web.MockPageContext
 
handler() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to assertions for the handler that handled the request.
HandlerResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for assertions on the selected handler.
HandlerResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.HandlerResultMatchers
Protected constructor.
handlerType(Class<?>) - Method in class org.springframework.test.web.servlet.result.HandlerResultMatchers
Assert the type of the handler that processed the request.
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.
hasErrors() - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the model has errors.
hashCode() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Generate a unique hash code for all properties of this ContextConfigurationAttributes instance excluding the name.
hashCode() - Method in class org.springframework.test.context.MergedContextConfiguration
Generate a unique hash code for all properties of this MergedContextConfiguration excluding the test class.
hashCode() - Method in class org.springframework.test.context.web.WebMergedContextConfiguration
Generate a unique hash code for all properties of this WebMergedContextConfiguration excluding the test class.
hasLocations() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Determine if this ContextConfigurationAttributes instance has path-based resource locations.
hasNoErrors() - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the model has no errors.
hasResources() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Determine if this ContextConfigurationAttributes instance has either path-based resource locations or class-based resources.
header(String, Matcher<? super String>...) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Assert request header values with the given Hamcrest matcher.
header(String, String...) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Assert request header values.
header(String, Object...) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Add a header to the request.
header() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response header assertions.
HeaderResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for response header assertions.
HeaderResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.HeaderResultMatchers
Protected constructor.
headers(HttpHeaders) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
Copy all given headers.
headers(HttpHeaders) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Add all headers to the request.

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
 
initWebAppContext(WebApplicationContext) - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
Invoked from DefaultMockMvcBuilder.build() before the MockMvc instance is created.
initWebAppContext(WebApplicationContext) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
 
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
Invalidates this session then unbinds any objects bound to it.
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.
is(Matcher<Integer>) - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code with the given Hamcrest Matcher.
is(int) - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is equal to an integer value.
isAccepted() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.ACCEPTED (202).
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).
isAlreadyReported() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.ALREADY_REPORTED (208).
isArray() - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
Assert the content at the given JSONPath is an array.
isArray() - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
Evluate the JSON path and assert the content found is an array.
isBadGateway() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.BAD_GATEWAY (502).
isBadRequest() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.BAD_REQUEST (400).
isBandwidthLimitExceeded() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.BANDWIDTH_LIMIT_EXCEEDED (509).
isCheckpoint() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.CHECKPOINT (103).
isCommitted() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
isCommitted() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
isConflict() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.CONFLICT (409).
isContextKeyEmpty(Object) - Method in class org.springframework.test.AbstractSpringContextTests
Deprecated.
Determine if the supplied context key is empty.
isContinue() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.CONTINUE (100).
isCreated() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.CREATED (201).
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.
isDestinationLocked() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Deprecated.
matching the deprecation of HttpStatus.DESTINATION_LOCKED
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
 
isExecuted() - Method in class org.springframework.mock.http.client.MockClientHttpRequest
 
isExpectationFailed() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.EXPECTATION_FAILED (417).
isFailedDependency() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.FAILED_DEPENDENCY (424).
isForbidden() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.FORBIDDEN (403).
isFound() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.FOUND (302).
isGatewayTimeout() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.GATEWAY_TIMEOUT (504).
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.
isGone() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.GONE (410).
isHttpVersionNotSupported() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.HTTP_VERSION_NOT_SUPPORTED (505).
isIAmATeapot() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.I_AM_A_TEAPOT (418).
isImUsed() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.IM_USED (226).
isInheritInitializers() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the inheritInitializers flag that was declared via @ContextConfiguration.
isInheritLocations() - Method in class org.springframework.test.context.ContextConfigurationAttributes
Get the inheritLocations flag that was declared via @ContextConfiguration.
isInsufficientSpaceOnResource() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Deprecated.
matching the deprecation of HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE
isInsufficientStorage() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.INSUFFICIENT_STORAGE (507).
isInternalServerError() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.INTERNAL_SERVER_ERROR (500).
isInvalid() - Method in class org.springframework.mock.web.MockHttpSession
 
isInvalid() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
isLengthRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.LENGTH_REQUIRED (411).
isLocked() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.LOCKED (423).
isLoopDetected() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.LOOP_DETECTED (508).
isMergeEnabled() - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
isMethodFailure() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Deprecated.
matching the deprecation of HttpStatus.METHOD_FAILURE
isMethodNotAllowed() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.METHOD_NOT_ALLOWED (405).
isMovedPermanently() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.MOVED_PERMANENTLY (301).
isMovedTemporarily() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.MOVED_TEMPORARILY (302).
isMultipleChoices() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.MULTIPLE_CHOICES (300).
isMultiStatus() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.MULTI_STATUS (207).
isNetworkAuthenticationRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NETWORK_AUTHENTICATION_REQUIRED (511).
isNew() - Method in class org.springframework.mock.web.MockHttpSession
 
isNew() - Method in class org.springframework.mock.web.portlet.MockPortletSession
 
isNoContent() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NO_CONTENT (204).
isNonAuthoritativeInformation() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NON_AUTHORITATIVE_INFORMATION (203).
isNotAcceptable() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NOT_ACCEPTABLE (406).
isNotExtended() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NOT_EXTENDED (510).
isNotFound() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NOT_FOUND (404).
isNotImplemented() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NOT_IMPLEMENTED (501).
isNotModified() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.NOT_MODIFIED (304).
isOk() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.OK (200).
isOutputStreamAccessAllowed() - Method in class org.springframework.mock.web.MockHttpServletResponse
Return whether MockHttpServletResponse.getOutputStream() access is allowed.
isPartialContent() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.PARTIAL_CONTENT (206).
isPaymentRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.PAYMENT_REQUIRED (402).
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
 
isPreconditionFailed() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.PRECONDITION_FAILED (412).
isPreconditionRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.PRECONDITION_REQUIRED (428).
isProcessing() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.PROCESSING (102).
isProxyAuthenticationRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.PROXY_AUTHENTICATION_REQUIRED (407).
isPublicScope() - Method in class org.springframework.mock.web.portlet.MockCacheControl
 
isReadOnly(String) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
isRequestedRangeNotSatisfiable() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.REQUESTED_RANGE_NOT_SATISFIABLE (416).
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
 
isRequestEntityTooLarge() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.REQUEST_ENTITY_TOO_LARGE (413).
isRequestHeaderFieldsTooLarge() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.REQUEST_HEADER_FIELDS_TOO_LARGE (431).
isRequestTimeout() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.REQUEST_TIMEOUT (408).
isRequestUriTooLong() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.REQUEST_URI_TOO_LONG (414).
isResetContent() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.RESET_CONTENT (205).
isResumeIncomplete() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.RESUME_INCOMPLETE (308).
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
 
isSeeOther() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.SEE_OTHER (303).
isServiceUnavailable() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.SERVICE_UNAVAILABLE (503).
isSwitchingProtocols() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.SWITCHING_PROTOCOLS (101).
isTemporaryRedirect() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.TEMPORARY_REDIRECT (307).
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 &#064;IfProfileValue.
isTooManyRequests() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.TOO_MANY_REQUESTS (429).
isUnauthorized() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.UNAUTHORIZED (401).
isUnprocessableEntity() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.UNPROCESSABLE_ENTITY (422).
isUnsupportedMediaType() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.UNSUPPORTED_MEDIA_TYPE (415).
isUpgradeRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.UPGRADE_REQUIRED (426).
isUseProxy() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.USE_PROXY (305).
isUserInRole(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
isUserInRole(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
isVariantAlsoNegotiates() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the response status code is HttpStatus.VARIANT_ALSO_NEGOTIATES (506).
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.
 
jdbcTemplate - Variable in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
The JdbcTemplate that this base class manages, available to subclasses.
jdbcTemplate - Variable in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
The JdbcTemplate that this base class manages, available to subclasses.
JdbcTestUtils - Class in org.springframework.test.jdbc
JdbcTestUtils is a collection of JDBC related utility functions intended to simplify standard database testing scenarios.
JdbcTestUtils() - Constructor for class org.springframework.test.jdbc.JdbcTestUtils
 
jsonPath(String, Object...) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Access to request body matchers using a JSONPath expression to inspect a specific subset of the body.
jsonPath(String, Matcher<T>) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Access to request body matchers using a JSONPath expression to inspect a specific subset of the body and a Hamcrest match for asserting the value found at the JSON path.
jsonPath(String, Object...) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response body assertions using a JSONPath expression to inspect a specific subset of the body.
jsonPath(String, Matcher<T>) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response body assertions using a JSONPath expression to inspect a specific subset of the body and a Hamcrest match for asserting the value found at the JSON path.
JsonPathExpectationsHelper - Class in org.springframework.test.util
A helper class for applying assertions via JSONPath expressions.
JsonPathExpectationsHelper(String, Object...) - Constructor for class org.springframework.test.util.JsonPathExpectationsHelper
Class constructor.
JsonPathRequestMatchers - Class in org.springframework.test.web.client.match
Factory methods for request content RequestMatcher's using a JSONPath expression.
JsonPathRequestMatchers(String, Object...) - Constructor for class org.springframework.test.web.client.match.JsonPathRequestMatchers
Class constructor, not for direct instantiation.
JsonPathResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for assertions on the response content using JSONPath expressions.
JsonPathResultMatchers(String, Object...) - Constructor for class org.springframework.test.web.servlet.result.JsonPathResultMatchers
Protected constructor.

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.
loadBeanDefinitions(GenericWebApplicationContext, WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AbstractGenericWebContextLoader
Load bean definitions into the supplied context from the locations or classes in the supplied WebMergedContextConfiguration.
loadBeanDefinitions(GenericWebApplicationContext, WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
Register classes in the supplied context from the classes in the supplied WebMergedContextConfiguration.
loadBeanDefinitions(GenericWebApplicationContext, WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.GenericXmlWebContextLoader
Loads bean definitions using an XmlBeanDefinitionReader.
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(MergedContextConfiguration) - Method in class org.springframework.test.context.CacheAwareContextLoaderDelegate
Load the application context for the supplied merged context configuration.
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.AbstractDelegatingSmartContextLoader
Delegates to an appropriate candidate SmartContextLoader to load an ApplicationContext.
loadContext(String...) - Method in class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
AbstractDelegatingSmartContextLoader does not support the ContextLoader.loadContext(String...) method.
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.web.AbstractGenericWebContextLoader
Load a Spring WebApplicationContext from the supplied MergedContextConfiguration.
loadContext(String...) - Method in class org.springframework.test.context.web.AbstractGenericWebContextLoader
AbstractGenericWebContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.
loadContextLocations(String[]) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated.
Load a Spring ApplicationContext from the given config locations.
locale(Locale) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the locale of the request.
location(URI) - Method in class org.springframework.test.web.client.response.DefaultResponseCreator
Set the Location header.
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
 
longValue(String, long) - Method in class org.springframework.test.web.servlet.result.HeaderResultMatchers
Assert the primary value of a response header as a Long.
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
Deprecated.
markApplicationContextDirty(DirtiesContext.HierarchyMode) - 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 discarded.
match(ClientHttpRequest) - Method in interface org.springframework.test.web.client.RequestMatcher
Match the given request against some expectations.
match(MvcResult) - Method in interface org.springframework.test.web.servlet.ResultMatcher
Assert the result of an executed request.
MatcherAssertionErrors - Class in org.springframework.test.util
A replacement of MatcherAssert that removes the need to depend on "hamcrest-all" when using Hamcrest 1.1 and also maintains backward compatibility with Hamcrest 1.1 (also embedded in JUnit 4.4 through 4.8).
maxAge(String, Matcher<? super Integer>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's maxAge with a Hamcrest Matcher.
maxAge(String, int) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's maxAge value.
merge(Object) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Merges the properties of the "parent" RequestBuilder accepting values only if not already set in "this" instance.
merge(Object) - Method in class org.springframework.test.web.servlet.request.MockMultipartHttpServletRequestBuilder
 
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.
MergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], ContextLoader) - Constructor for class org.springframework.test.context.MergedContextConfiguration
Create a new MergedContextConfiguration instance for the supplied test class, resource locations, annotated classes, context initializers, active profiles, and ContextLoader.
MergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration) - Constructor for class org.springframework.test.context.MergedContextConfiguration
Create a new MergedContextConfiguration instance for the supplied test class, resource locations, annotated classes, context initializers, active profiles, ContextLoader, and parent configuration.
method(HttpMethod) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Assert the HttpMethod of the request.
method(Method) - Method in class org.springframework.test.web.servlet.result.HandlerResultMatchers
Assert the controller method that processed the request.
methodBlock(FrameworkMethod) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Augments the default JUnit behavior with potential repeats of the entire execution chain.
methodName(Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.HandlerResultMatchers
Assert the name of the controller method that processed the request with the given Hamcrest Matcher.
methodName(String) - Method in class org.springframework.test.web.servlet.result.HandlerResultMatchers
Assert the name of the controller method that processed the request.
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.
MockClientHttpRequest - Class in org.springframework.mock.http.client
Mock implementation of ClientHttpRequest.
MockClientHttpRequest() - Constructor for class org.springframework.mock.http.client.MockClientHttpRequest
Default constructor.
MockClientHttpRequest(HttpMethod, URI) - Constructor for class org.springframework.mock.http.client.MockClientHttpRequest
Create an instance with the given HttpMethod and URI.
MockClientHttpResponse - Class in org.springframework.mock.http.client
Mock implementation of ClientHttpResponse.
MockClientHttpResponse(byte[], HttpStatus) - Constructor for class org.springframework.mock.http.client.MockClientHttpResponse
Constructor with response body as a byte array.
MockClientHttpResponse(InputStream, HttpStatus) - Constructor for class org.springframework.mock.http.client.MockClientHttpResponse
Constructor with response body as InputStream.
MockEnvironment - Class in org.springframework.mock.env
Simple ConfigurableEnvironment implementation exposing MockEnvironment.setProperty(String, String) and MockEnvironment.withProperty(String, String) methods for testing purposes.
MockEnvironment() - Constructor for class org.springframework.mock.env.MockEnvironment
Create a new MockEnvironment with a single MockPropertySource.
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 FilterChain interface.
MockFilterChain() - Constructor for class org.springframework.mock.web.MockFilterChain
Register a single do-nothing Filter implementation.
MockFilterChain(Servlet) - Constructor for class org.springframework.mock.web.MockFilterChain
Create a FilterChain with a Servlet.
MockFilterChain(Servlet, Filter...) - Constructor for class org.springframework.mock.web.MockFilterChain
Create a FilterChain with Filter's and a Servlet.
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.
MockHttpInputMessage - Class in org.springframework.mock.http
Mock implementation of HttpInputMessage.
MockHttpInputMessage(byte[]) - Constructor for class org.springframework.mock.http.MockHttpInputMessage
 
MockHttpInputMessage(InputStream) - Constructor for class org.springframework.mock.http.MockHttpInputMessage
 
MockHttpOutputMessage - Class in org.springframework.mock.http
Mock implementation of HttpOutputMessage.
MockHttpOutputMessage() - Constructor for class org.springframework.mock.http.MockHttpOutputMessage
 
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 with the supplied ServletContext.
MockHttpServletRequest(ServletContext, String, String) - Constructor for class org.springframework.mock.web.MockHttpServletRequest
Create a new MockHttpServletRequest with the supplied ServletContext, method, and requestURI.
MockHttpServletRequestBuilder - Class in org.springframework.test.web.servlet.request
Default builder for MockHttpServletRequest required as input to perform request in MockMvc.
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
 
MockMultipartHttpServletRequestBuilder - Class in org.springframework.test.web.servlet.request
Default builder for MockMultipartHttpServletRequest.
MockMvc - Class in org.springframework.test.web.servlet
Main entry point for server-side Spring MVC test support.
MockMvcBuilder - Interface in org.springframework.test.web.servlet
Builds a MockMvc.
MockMvcBuilders - Class in org.springframework.test.web.servlet.setup
The main class to import to access all available MockMvcBuilders.
MockMvcBuilders() - Constructor for class org.springframework.test.web.servlet.setup.MockMvcBuilders
 
MockMvcBuilderSupport - Class in org.springframework.test.web.servlet
Base class for MockMvc builder implementations, providing the capability to create a MockMvc instance.
MockMvcBuilderSupport() - Constructor for class org.springframework.test.web.servlet.MockMvcBuilderSupport
 
MockMvcClientHttpRequestFactory - Class in org.springframework.test.web.client
A ClientHttpRequestFactory for requests executed via MockMvc.
MockMvcClientHttpRequestFactory(MockMvc) - Constructor for class org.springframework.test.web.client.MockMvcClientHttpRequestFactory
 
MockMvcRequestBuilders - Class in org.springframework.test.web.servlet.request
Static factory methods for RequestBuilders.
MockMvcRequestBuilders() - Constructor for class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
 
MockMvcResultHandlers - Class in org.springframework.test.web.servlet.result
Static, factory methods for ResultHandler-based result actions.
MockMvcResultMatchers - Class in org.springframework.test.web.servlet.result
Static, factory methods for ResultMatcher-based result actions.
MockPageContext - Class in org.springframework.mock.web
Mock implementation of the PageContext interface.
MockPageContext() - Constructor for class org.springframework.mock.web.MockPageContext
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 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 resource.
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
 
MockRestRequestMatchers - Class in org.springframework.test.web.client.match
Static, factory methods for RequestMatcher classes.
MockRestResponseCreators - Class in org.springframework.test.web.client.response
Static factory methods for obtaining a ResponseCreator instance.
MockRestServiceServer - Class in org.springframework.test.web.client
Main entry point for client-side REST testing.
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 using the supplied resource base path and resource loader.
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.
model() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to model-related assertions.
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
 
ModelResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for assertions on the model.
ModelResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.ModelResultMatchers
Protected constructor.
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.
modifyLocations(Class<?>, String...) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
AnnotationConfigWebContextLoader should be used as a SmartContextLoader, not as a legacy ContextLoader.
MvcResult - Interface in org.springframework.test.web.servlet
Provides access to the result of an executed request.

N

name(Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.ViewResultMatchers
Assert the selected view name with the given Hamcrest Matcher.
name(String) - Method in class org.springframework.test.web.servlet.result.ViewResultMatchers
Assert the selected view name.
newLine() - Method in class org.springframework.mock.web.MockBodyContent
 
newLine() - Method in class org.springframework.mock.web.MockJspWriter
 
node(Matcher<? super Node>) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Parse the request content as Node and apply the given Matcher.
node(Matcher<? super Node>) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert it with the given Matcher<Node>.
node(Matcher<? super Node>) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Parse the response content as Node and apply the given Hamcrest Matcher.
node(Matcher<? super Node>) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert the Node content found with the given Hamcrest Matcher.
nodeCount(Matcher<Integer>) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the number of nodes found with the given Matcher<Integer>.
nodeCount(int) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the number of nodes found.
nodeCount(Matcher<Integer>) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert the number of nodes found with the given Hamcrest Matcher.
nodeCount(int) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert the number of nodes found.
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.
nullSafeToString(ContextLoader) - Static method in class org.springframework.test.context.MergedContextConfiguration
Generate a null-safe String representation of the supplied ContextLoader based solely on the fully qualified name of the loader or "null" if the supplied loaded is null.
number(Matcher<? super Double>) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the number found with the given matcher.
number(Double) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the number of nodes found.
number(Matcher<? super Double>) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert the Double value found with the given Hamcrest Matcher.
number(Double) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Evaluate the XPath and assert the Double value found.

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.
options(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for an OPTIONS request.
org.springframework.mock.env - package org.springframework.mock.env
This package contains mock implementations of the Environment and PropertySource abstractions introduced in Spring 3.1.
org.springframework.mock.http - package org.springframework.mock.http
Mock implementations of client/server-side HTTP abstractions.
org.springframework.mock.http.client - package org.springframework.mock.http.client
Mock implementations of client-side HTTP abstractions.
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.context.web - package org.springframework.test.context.web
Web 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
General utility classes for use in unit and integration tests.
org.springframework.test.web - package org.springframework.test.web
Helper classes for unit tests based on Spring's web support.
org.springframework.test.web.client - package org.springframework.test.web.client
Contains client-side REST testing support.
org.springframework.test.web.client.match - package org.springframework.test.web.client.match
Contains built-in RequestMatcher implementations.
org.springframework.test.web.client.response - package org.springframework.test.web.client.response
Contains built-in ResponseCreator implementations.
org.springframework.test.web.servlet - package org.springframework.test.web.servlet
Contains server-side support for testing Spring MVC applications.
org.springframework.test.web.servlet.request - package org.springframework.test.web.servlet.request
Contains built-in RequestBuilder implementations.
org.springframework.test.web.servlet.result - package org.springframework.test.web.servlet.result
Contains built-in ResultMatcher and ResultHandler implementations.
org.springframework.test.web.servlet.setup - package org.springframework.test.web.servlet.setup
Contains built-in MockMvcBuilder implementations.

P

param(String, String...) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Add a request parameter to the MockHttpServletRequest.
parameters - Variable in class org.springframework.mock.web.portlet.MockBaseURL
 
parseExpression(String, Class, FunctionMapper) - Method in class org.springframework.mock.web.MockExpressionEvaluator
 
parseXmlString(String) - Method in class org.springframework.test.util.XpathExpectationsHelper
Parse the given XML content to a Document.
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.
patch(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a PATCH request.
path(String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie path with a Hamcrest Matcher.
path(String, String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
 
pathInfo(String) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Specify the portion of the requestURI that represents the pathInfo.
perform(RequestBuilder) - Method in class org.springframework.test.web.servlet.MockMvc
Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.
POPULATED_REQUEST_CONTEXT_HOLDER_ATTRIBUTE - Static variable in class org.springframework.test.context.web.ServletTestExecutionListener
Attribute name for a TestContext attribute which indicates that ServletTestExecutionListener has already populated Spring Web's RequestContextHolder.
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).
post(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a POST request.
postProcessRequest(MockHttpServletRequest) - Method in interface org.springframework.test.web.servlet.request.RequestPostProcessor
Post-process the given MockHttpServletRequest after its creation and initialization through a MockHttpServletRequestBuilder.
prepareApplicationContext(GenericApplicationContext) - Method in class org.springframework.test.AbstractSingleSpringContextTests
Deprecated.
Prepare the GenericApplicationContext used by this test.
prepareContext(ConfigurableApplicationContext, MergedContextConfiguration) - Method in class org.springframework.test.context.support.AbstractContextLoader
Prepare the ConfigurableApplicationContext created by this SmartContextLoader before bean definitions are read.
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.
prepareTestInstance(TestContext) - Method in class org.springframework.test.context.web.ServletTestExecutionListener
Sets up thread-local state during the test instance preparation callback phase via Spring Web's RequestContextHolder, but only if the test class is annotated with @WebAppConfiguration.
preventTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated.
Call this method in an overridden ConditionalTestCase.runBare() method to prevent transactional execution.
principal(Principal) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the principal of the request.
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
 
print() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultHandlers
Print MvcResult details to the "standard" output stream.
printAsyncResult(MvcResult) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
 
printFlashMap(FlashMap) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print "output" flash attributes
printHandler(Object, HandlerInterceptor[]) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print the handler
printHeading(String) - Method in interface org.springframework.test.web.servlet.result.PrintingResultHandler.ResultValuePrinter
 
PrintingResultHandler - Class in org.springframework.test.web.servlet.result
Result handler that prints MvcResult details to the "standard" output stream.
PrintingResultHandler(PrintingResultHandler.ResultValuePrinter) - Constructor for class org.springframework.test.web.servlet.result.PrintingResultHandler
Protected constructor.
PrintingResultHandler.ResultValuePrinter - Interface in org.springframework.test.web.servlet.result
A contract for how to actually write result information.
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
 
printModelAndView(ModelAndView) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print the ModelAndView
printRequest(MockHttpServletRequest) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print the request
printResolvedException(Exception) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print exceptions resolved through a HandlerExceptionResolver
printResponse(MockHttpServletResponse) - Method in class org.springframework.test.web.servlet.result.PrintingResultHandler
Print the response
printValue(String, Object) - Method in interface org.springframework.test.web.servlet.result.PrintingResultHandler.ResultValuePrinter
 
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.AbstractDelegatingSmartContextLoader
Delegates to candidate SmartContextLoaders to process the supplied ContextConfigurationAttributes.
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.web.AnnotationConfigWebContextLoader
Process annotated classes in 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.AbstractDelegatingSmartContextLoader
AbstractDelegatingSmartContextLoader does not support the ContextLoader.processLocations(Class, String...) method.
profileValueSource - Variable in class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
Deprecated.
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
 
put(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a PUT request.
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 provided LineNumberReader, using "--" as the comment prefix, and build a String containing the lines.
readScript(LineNumberReader, String) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Read a script from the provided LineNumberReader, using the supplied comment prefix, and build a String containing the lines.
reason(Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the Servlet response error message with the given Hamcrest Matcher.
reason(String) - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
Assert the Servlet response error message.
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.
redirectedUrl(String) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Asserts the request was redirected to the given URL.
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
 
registerNamedDispatcher(String, RequestDispatcher) - Method in class org.springframework.mock.web.MockServletContext
Register a RequestDispatcher (typically a MockRequestDispatcher) that acts as a wrapper for the named Servlet.
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.
request(HttpMethod, String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
Create a MockHttpServletRequestBuilder for a request with the given HTTP method.
request() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to request-related assertions.
requestAttr(String, Object) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set a request attribute.
RequestBuilder - Interface in org.springframework.test.web.servlet
RequestMatcher - Interface in org.springframework.test.web.client
A contract for matching requests to expectations.
RequestPostProcessor - Interface in org.springframework.test.web.servlet.request
Extension point for applications or 3rd party libraries that wish to further initialize a MockHttpServletRequest instance after it has been built by MockHttpServletRequestBuilder or its subclass MockMultipartHttpServletRequestBuilder.
RequestResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for assertions on the request.
RequestResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.RequestResultMatchers
Protected constructor.
requestTo(Matcher<String>) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Assert the request URI string with the given matcher.
requestTo(String) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Assert the request URI string.
requestTo(URI) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Expect a request to the given URI.
reset() - Method in class org.springframework.mock.web.MockFilterChain
Reset the MockFilterChain allowing it to be invoked again.
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
 
RESET_REQUEST_CONTEXT_HOLDER_ATTRIBUTE - Static variable in class org.springframework.test.context.web.ServletTestExecutionListener
Attribute name for a TestContext attribute which indicates whether or not the ServletTestExecutionListener should reset Spring Web's RequestContextHolder in ServletTestExecutionListener.afterTestMethod(TestContext).
resetBuffer() - Method in class org.springframework.mock.web.MockHttpServletResponse
 
resetBuffer() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
ResponseActions - Interface in org.springframework.test.web.client
A contract for setting up request expectations and defining a response.
ResponseCreator - Interface in org.springframework.test.web.client
A contract for creating a ClientHttpResponse.
ResultActions - Interface in org.springframework.test.web.servlet
Allows applying actions, such as expectations, on the result of an executed request.
ResultHandler - Interface in org.springframework.test.web.servlet
Executes a generic action (e.g.
ResultMatcher - Interface in org.springframework.test.web.servlet
Matches the result of an executed request against some expectation.
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

secure(boolean) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the secure property of the ServletRequest indicating use of a secure channel, such as HTTPS.
secure(String, boolean) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert whether the cookie must be sent over a secure protocol or not.
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.
servletPath(String) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Specify the portion of the requestURI that represents the path to which the Servlet is mapped.
ServletTestExecutionListener - Class in org.springframework.test.context.web
TestExecutionListener which provides mock Servlet API support to WebApplicationContexts loaded by the Spring TestContext Framework.
ServletTestExecutionListener() - Constructor for class org.springframework.test.context.web.ServletTestExecutionListener
 
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.
session(MockHttpSession) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set the HTTP session to use, possibly re-used across requests.
SESSION_COOKIE_NAME - Static variable in class org.springframework.mock.web.MockHttpSession
 
sessionAttr(String, Object) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set a session attribute.
sessionAttribute(String, Matcher<T>) - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert a session attribute value with the given Hamcrest Matcher.
sessionAttribute(String, Object) - Method in class org.springframework.test.web.servlet.result.RequestResultMatchers
Assert a session attribute value..
sessionAttrs(Map<String, Object>) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
Set session attributes.
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.
setAsyncRequestTimeout(long) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Specify the timeout value for async execution.
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
 
setContentNegotiationManager(ContentNegotiationManager) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Set a ContentNegotiationManager.
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
 
setConversionService(FormattingConversionService) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Provide a conversion service with custom formatters and converters.
setCookies(Cookie...) - Method in class org.springframework.mock.web.MockHttpServletRequest
 
setCookies(Cookie...) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
 
setCustomArgumentResolvers(HandlerMethodArgumentResolver...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Provide custom resolvers for controller method arguments.
setCustomReturnValueHandlers(HandlerMethodReturnValueHandler...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Provide custom handlers for controller method return values.
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.
setDefaultServletName(String) - Method in class org.springframework.mock.web.MockServletContext
Set the name of the default Servlet.
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.
setFlashMapManager(FlashMapManager) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Provide a custom FlashMapManager instance.
setForwardedUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
 
setForwardedUrl(String) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
 
setHandlerExceptionResolvers(List<HandlerExceptionResolver>) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Set the HandlerExceptionResolver types to use as a list.
setHandlerExceptionResolvers(HandlerExceptionResolver...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Set the HandlerExceptionResolver types to use as an array.
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
 
setLocaleResolver(LocaleResolver) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Provide a LocaleResolver instance.
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
 
setMessageConverters(HttpMessageConverter<?>...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Set the message converters to use in argument resolvers and in return value handlers, which support reading and/or writing to the body of the request and response.
setMethod(HttpMethod) - Method in class org.springframework.mock.http.client.MockClientHttpRequest
 
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
 
setPreferredLocales(List<Locale>) - Method in class org.springframework.mock.web.MockHttpServletRequest
Set the list of preferred locales, in descending order, effectively replacing any existing locales.
setProperty(String, String) - Method in class org.springframework.mock.env.MockEnvironment
Set a property on the underlying MockPropertySource for this environment.
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
 
setResponse(ClientHttpResponse) - Method in class org.springframework.mock.http.client.MockClientHttpRequest
 
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
 
setSingleView(View) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Sets up a single ViewResolver that always returns the provided view instance.
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.
setURI(URI) - Method in class org.springframework.mock.http.client.MockClientHttpRequest
 
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
 
setUseSuffixPatternMatch(boolean) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Whether to use suffix pattern match (".*") when matching patterns to requests.
setUseTrailingSlashPatternMatch(boolean) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Whether to match to URLs irrespective of the presence of a trailing slash.
setValidator(Validator) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Provide a custom Validator instead of the one created by default.
setValue(String, String) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
setValues(String, String[]) - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
setViewResolvers(ViewResolver...) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Set up view resolution with the given ViewResolvers.
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
Deprecated.
simpleJdbcTemplate - Variable in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
Deprecated.
SimpleJdbcTestUtils - Class in org.springframework.test.jdbc
Deprecated.
as of Spring 3.1.3; use JdbcTestUtils instead.
SimpleJdbcTestUtils() - Constructor for class org.springframework.test.jdbc.SimpleJdbcTestUtils
Deprecated.
 
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
 
size(int) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
Assert the number of model attributes.
SmartContextLoader - Interface in org.springframework.test.context
Strategy interface for loading an application context for an integration test managed by the Spring TestContext Framework.
source(Matcher<? super Source>) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Parse the request content as DOMSource and apply the given Matcher.
source(Matcher<? super Source>) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Parse the response content as DOMSource and apply the given Hamcrest Matcher.
splitSqlScript(String, char, List<String>) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
Split an SQL script into separate statements delimited by 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.
StandaloneMockMvcBuilder - Class in org.springframework.test.web.servlet.setup
A MockMvcBuilder that accepts @Controller registrations thus allowing full control over the instantiation and the initialization of controllers and their dependencies similar to plain unit tests, and also making it possible to test one controller at a time.
StandaloneMockMvcBuilder(Object...) - Constructor for class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
Protected constructor.
standaloneSetup(Object...) - Static method in class org.springframework.test.web.servlet.setup.MockMvcBuilders
Build a MockMvc by registering one or more @Controller's instances and configuring Spring MVC infrastructure programmatically.
startNewTransaction() - Method in class org.springframework.test.AbstractTransactionalSpringContextTests
Deprecated.
Start a new transaction.
status() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response status assertions.
StatusResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for assertions on the response status.
StatusResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.StatusResultMatchers
Protected constructor.
store() - Method in class org.springframework.mock.web.portlet.MockPortletPreferences
 
string(Matcher<? super String>) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Get the body of the request as a UTF-8 string and appply the given Matcher.
string(String) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Get the body of the request as a UTF-8 string and compare it to the given String.
string(Matcher<? super String>) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the String content found with the given matcher.
string(String) - Method in class org.springframework.test.web.client.match.XpathRequestMatchers
Apply the XPath and assert the String content found.
string(Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the response body content with a Hamcrest Matcher.
string(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Assert the response body content as a String.
string(String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.HeaderResultMatchers
Assert a response header with the given Hamcrest Matcher.
string(String, String) - Method in class org.springframework.test.web.servlet.result.HeaderResultMatchers
Assert the primary value of a response header as a String.
string(Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Apply the XPath and assert the String value found with the given Hamcrest Matcher.
string(String) - Method in class org.springframework.test.web.servlet.result.XpathResultMatchers
Apply the XPath and assert the String value found.
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
Construct a new TestContextManager for the specified test class and automatically register the TestExecutionListeners configured for the test class via the @TestExecutionListeners annotation.
TestContextManager(Class<?>, String) - Constructor for class org.springframework.test.context.TestContextManager
Construct a new TestContextManager for the specified test class and automatically register 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.http.client.MockClientHttpRequest
 
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, context initializer classes, active profiles, the name of the ContextLoader, and the parent configuration.
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
 
toString() - Method in class org.springframework.test.context.web.WebMergedContextConfiguration
TransactionalTestExecutionListener - Class in org.springframework.test.context.transaction
TestExecutionListener that provides support for executing tests within transactions by honoring 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
 
unregisterNamedDispatcher(String) - Method in class org.springframework.mock.web.MockServletContext
Unregister the RequestDispatcher with the given name.
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

value(Matcher<T>) - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
Evaluate the JSONPath and assert the resulting value with the given Matcher.
value(Object) - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
Apply the JSONPath and assert the resulting value.
value(String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie value with the given Hamcrest Matcher.
value(String, String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie value.
value(Matcher<T>) - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
Evaluate the JSONPath and assert the value of the content found with the given Hamcrest Matcher.
value(Object) - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
Evaluate the JSONPath and assert the value of the content found.
valueOf(String) - Static method in enum org.springframework.test.annotation.DirtiesContext.ClassMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.springframework.test.annotation.DirtiesContext.HierarchyMode
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.
values() - Static method in enum org.springframework.test.annotation.DirtiesContext.HierarchyMode
Returns an array containing the constants of this enum type, in the order they are declared.
verify() - Method in class org.springframework.test.web.client.MockRestServiceServer
Verify that all expected requests set up via MockRestServiceServer.expect(RequestMatcher) were indeed performed.
version(String, Matcher<? super Integer>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's version with a Hamcrest Matcher
version(String, int) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
Assert a cookie's version value.
view() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to assertions on the selected view.
ViewResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for assertions on the selected view.
ViewResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.ViewResultMatchers
Protected constructor.

W

WebAppConfiguration - Annotation Type in org.springframework.test.context.web
@WebAppConfiguration is a class-level annotation that is used to declare that the ApplicationContext loaded for an integration test should be a WebApplicationContext.
webAppContextSetup(WebApplicationContext) - Static method in class org.springframework.test.web.servlet.setup.MockMvcBuilders
Build a MockMvc using the given, fully initialized, i.e.
WebDelegatingSmartContextLoader - Class in org.springframework.test.context.web
WebDelegatingSmartContextLoader is a concrete implementation of AbstractDelegatingSmartContextLoader that delegates to a GenericXmlWebContextLoader and an AnnotationConfigWebContextLoader.
WebDelegatingSmartContextLoader() - Constructor for class org.springframework.test.context.web.WebDelegatingSmartContextLoader
 
WebMergedContextConfiguration - Class in org.springframework.test.context.web
WebMergedContextConfiguration encapsulates the merged context configuration declared on a test class and all of its superclasses via @ContextConfiguration, @WebAppConfiguration, and @ActiveProfiles.
WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], String, ContextLoader) - Constructor for class org.springframework.test.context.web.WebMergedContextConfiguration
WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration) - Constructor for class org.springframework.test.context.web.WebMergedContextConfiguration
Create a new WebMergedContextConfiguration instance for the supplied test class, resource locations, annotated classes, context initializers, active profiles, resource base path, and ContextLoader.
with(RequestPostProcessor) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
An extension point for further initialization of MockHttpServletRequest in ways not built directly into the MockHttpServletRequestBuilder.
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.
withBadRequest() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 400 response (BAD_REQUEST).
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.
withCreatedEntity(URI) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 201 response (CREATED) with a 'Location' header.
withNoContent() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 204 response (NO_CONTENT).
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, String) - Method in class org.springframework.mock.env.MockEnvironment
Convenient synonym for MockEnvironment.setProperty(java.lang.String, java.lang.String) that returns the current instance.
withProperty(String, Object) - Method in class org.springframework.mock.env.MockPropertySource
Convenient synonym for MockPropertySource.setProperty(java.lang.String, java.lang.Object) that returns the current instance.
withServerError() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 500 response (SERVER_ERROR).
withStatus(HttpStatus) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator with a specific HTTP status.
withSuccess() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 200 response (OK).
withSuccess(String, MediaType) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 200 response (OK) with String body.
withSuccess(byte[], MediaType) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 200 response (OK) with byte[] body.
withSuccess(Resource, MediaType) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 200 response (OK) content with Resource-based body.
withUnauthorizedRequest() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
ResponseCreator for a 401 response (UNAUTHORIZED).
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
 

X

xml(String) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
Parse the request body and the given String as XML and assert that the two are "similar" - i.e.
xml(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
Parse the response content and the given string as XML and assert the two are "similar" - i.e.
XmlExpectationsHelper - Class in org.springframework.test.util
A helper class for assertions on XML content.
XmlExpectationsHelper() - Constructor for class org.springframework.test.util.XmlExpectationsHelper
 
xpath(String, Object...) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Access to request body matchers using an XPath to inspect a specific subset of the body.
xpath(String, Map<String, String>, Object...) - Static method in class org.springframework.test.web.client.match.MockRestRequestMatchers
Access to response body matchers using an XPath to inspect a specific subset of the body.
xpath(String, Object...) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response body assertions using an XPath to inspect a specific subset of the body.
xpath(String, Map<String, String>, Object...) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
Access to response body assertions using an XPath to inspect a specific subset of the body.
XpathExpectationsHelper - Class in org.springframework.test.util
A helper class for applying assertions via XPath expressions.
XpathExpectationsHelper(String, Map<String, String>, Object...) - Constructor for class org.springframework.test.util.XpathExpectationsHelper
Class constructor.
XpathRequestMatchers - Class in org.springframework.test.web.client.match
Factory methods for request content RequestMatcher's using an XPath expression.
XpathRequestMatchers(String, Map<String, String>, Object...) - Constructor for class org.springframework.test.web.client.match.XpathRequestMatchers
Class constructor, not for direct instantiation.
XpathResultMatchers - Class in org.springframework.test.web.servlet.result
Factory for response content ResultMatcher's using an XPath expression.
XpathResultMatchers(String, Map<String, String>, Object...) - Constructor for class org.springframework.test.web.servlet.result.XpathResultMatchers
Protected constructor, not for direct instantiation.
A B C D E F G H I J L M N O P R S T U V W X 
spring-test