- 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
-
- AbstractGenericContextLoader - Class in org.springframework.test.context.support
-
- AbstractGenericContextLoader() - Constructor for class org.springframework.test.context.support.AbstractGenericContextLoader
-
- AbstractGenericWebContextLoader - Class in org.springframework.test.context.web
-
- AbstractGenericWebContextLoader() - Constructor for class org.springframework.test.context.web.AbstractGenericWebContextLoader
-
- 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
-
- AbstractMockMvcBuilder<B extends AbstractMockMvcBuilder<B>> - Class in org.springframework.test.web.servlet.setup
-
An abstract implementation of
MockMvcBuilder
with common methods for configuring filters, default request properties, global
expectations and global result actions.
- AbstractMockMvcBuilder() - Constructor for class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
- AbstractTestExecutionListener - Class in org.springframework.test.context.support
-
- 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.
- AbstractTransactionalJUnit4SpringContextTests - Class in org.springframework.test.context.junit4
-
- AbstractTransactionalJUnit4SpringContextTests() - Constructor for class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
-
- AbstractTransactionalTestNGSpringContextTests - Class in org.springframework.test.context.testng
-
- 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).
- accept(String...) - 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.
- ActiveProfilesResolver - Interface in org.springframework.test.context
-
Strategy interface for programmatically resolving which active bean
definition profiles should be used when loading an
ApplicationContext
for a test class.
- 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
-
- addCookie(Cookie) - Method in class org.springframework.mock.web.MockHttpServletResponse
-
- addDateHeader(String, long) - Method in class org.springframework.mock.web.MockHttpServletResponse
-
- addDispatchHandler(Runnable) - Method in class org.springframework.mock.web.MockAsyncContext
-
- 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(String, String) - Method in class org.springframework.mock.web.MockServletContext
-
- addFilter(String, Filter) - Method in class org.springframework.mock.web.MockServletContext
-
- addFilter(String, Class<? extends Filter>) - Method in class org.springframework.mock.web.MockServletContext
-
- addFilter(Filter, String...) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
Add a filter mapped to a specific set of patterns.
- addFilters(Filter...) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
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
-
- addListener(AsyncListener) - Method in class org.springframework.mock.web.MockAsyncContext
-
- addListener(AsyncListener, ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.MockAsyncContext
-
- addListener(Class<? extends EventListener>) - Method in class org.springframework.mock.web.MockServletContext
-
- addListener(String) - Method in class org.springframework.mock.web.MockServletContext
-
- addListener(T) - Method in class org.springframework.mock.web.MockServletContext
-
- 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.
- addPart(Part) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- addPlaceHolderValue(String, String) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
-
In a standalone setup there is no support for placeholder values embedded in
request mappings.
- 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
-
- addServlet(String, String) - Method in class org.springframework.mock.web.MockServletContext
-
- addServlet(String, Servlet) - Method in class org.springframework.mock.web.MockServletContext
-
- addServlet(String, Class<? extends Servlet>) - Method in class org.springframework.mock.web.MockServletContext
-
- 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
-
- 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
-
- 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
-
- afterTestMethod(TestContext) - Method in class org.springframework.test.context.web.ServletTestExecutionListener
-
- 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.AbstractMockMvcBuilder
-
Define a global action that should always be applied to every
response.
- alwaysExpect(ResultMatcher) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
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
-
- 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).
- AnnotationConfigWebContextLoader - Class in org.springframework.test.context.web
-
- 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.context.junit4.AbstractJUnit4SpringContextTests
-
- applicationContext - Variable in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- 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) - 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
-
- AssertionErrors - Class in org.springframework.test.util
-
JUnit independent assertion class.
- 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) - 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>) - 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) - 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
-
- AssertThrows(Class) - Constructor for class org.springframework.test.AssertThrows
-
Deprecated.
- AssertThrows(Class, String) - Constructor for class org.springframework.test.AssertThrows
-
Deprecated.
- 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) - 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
-
- 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
-
- 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.
- 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.
- 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.
- complete() - Method in class org.springframework.mock.web.MockAsyncContext
-
- composeName(String, String) - Method in class org.springframework.mock.jndi.SimpleNamingContext
-
- composeName(Name, Name) - Method in class org.springframework.mock.jndi.SimpleNamingContext
-
- 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 on a test class via
@ContextConfiguration
.
- ContextConfigurationAttributes(Class<?>, ContextConfiguration) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
-
- ContextConfigurationAttributes(Class<?>, AnnotationAttributes) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
-
- 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
-
- ContextConfigurationAttributes(Class<?>, String[], Class<?>[], boolean, Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[], boolean, String, Class<? extends ContextLoader>) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
-
- 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.
- 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.context.junit4.AbstractTransactionalJUnit4SpringContextTests
-
Convenience method for counting the rows in the given table.
- countRowsInTable(String) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
-
Convenience method for counting 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.
- countRowsInTableWhere(String, String) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
-
Convenience method for counting the rows in the given table, using the
provided WHERE
clause.
- countRowsInTableWhere(String, String) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
-
Convenience method for counting 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
-
- 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
-
- 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
.
- createElement(String) - Method in class org.springframework.mock.web.portlet.MockPortletResponse
-
- createFilter(Class<T>) - Method in class org.springframework.mock.web.MockServletContext
-
- createInitialContextFactory(Hashtable<?, ?>) - Method in class org.springframework.mock.jndi.SimpleNamingContextBuilder
-
Simple InitialContextFactoryBuilder implementation,
creating a new SimpleNamingContext instance.
- createListener(Class<T>) - Method in class org.springframework.mock.web.MockAsyncContext
-
- createListener(Class<T>) - Method in class org.springframework.mock.web.MockServletContext
-
- 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
.
- createServlet(Class<T>) - Method in class org.springframework.mock.web.MockServletContext
-
- createServletRequest(ServletContext) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
-
- createServletRequest(ServletContext) - Method in class org.springframework.test.web.servlet.request.MockMultipartHttpServletRequestBuilder
-
- 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.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.
- 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_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 - Class in org.springframework.test.web.servlet.setup
-
An concrete implementation of
AbstractMockMvcBuilder
that simply
provides the WebApplicationContext given to it as a constructor argument.
- 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.AbstractMockMvcBuilder
-
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
-
- 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
-
- 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() - Constructor for class org.springframework.test.context.support.DelegatingSmartContextLoader
-
- delete(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
-
- 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.
- deleteFromTableWhere(String, String, Object...) - Method in class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
-
Convenience method for deleting all rows from the given table, using the
provided WHERE
clause.
- deleteFromTableWhere(String, String, Object...) - Method in class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
-
Convenience method for deleting all rows from the given table, using the
provided WHERE
clause.
- 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
-
- 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, DirtiesContext.HierarchyMode) - Method in class org.springframework.test.context.support.DirtiesContextTestExecutionListener
-
- dispatch() - Method in class org.springframework.mock.web.MockAsyncContext
-
- dispatch(String) - Method in class org.springframework.mock.web.MockAsyncContext
-
- dispatch(ServletContext, String) - Method in class org.springframework.mock.web.MockAsyncContext
-
- dispatchOptions(boolean) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
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(String) - Method in class org.springframework.test.web.servlet.result.HeaderResultMatchers
-
Assert that the named response header 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
Filter
s 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.
- 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
-
- encodeRedirectUrl(String) - Method in class org.springframework.mock.web.MockHttpServletResponse
-
Deprecated.
- 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
-
Deprecated.
- 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.
- equals(Object) - Method in class org.springframework.test.context.ContextConfigurationAttributes
-
- equals(Object) - Method in class org.springframework.test.context.MergedContextConfiguration
-
- equals(Object) - Method in class org.springframework.test.context.web.WebMergedContextConfiguration
-
- 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
-
- evaluate() - Method in class org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks
-
- evaluate() - Method in class org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
-
- evaluate() - Method in class org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks
-
- 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
-
- 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.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.
- 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.
- 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.
- 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
-
- generateDefaultLocations(Class<?>) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
-
- GenericPropertiesContextLoader - Class in org.springframework.test.context.support
-
- GenericPropertiesContextLoader() - Constructor for class org.springframework.test.context.support.GenericPropertiesContextLoader
-
- GenericXmlContextLoader - Class in org.springframework.test.context.support
-
- GenericXmlContextLoader() - Constructor for class org.springframework.test.context.support.GenericXmlContextLoader
-
- GenericXmlWebContextLoader - Class in org.springframework.test.context.web
-
- 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
-
- getActiveProfiles() - Method in class org.springframework.test.context.MergedContextConfiguration
-
Get the merged active bean definition profiles for the
test class.
- getActualException() - Method in class org.springframework.test.AssertThrows
-
Deprecated.
- 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 interface org.springframework.test.context.TestContext
-
Get the application context
for this test
context, possibly cached.
- getAsyncContext() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getAsyncResult() - Method in interface org.springframework.test.web.servlet.MvcResult
-
Get the result of asynchronous execution or null
if concurrent
handling did not start.
- getAsyncResult(long) - Method in interface org.springframework.test.web.servlet.MvcResult
-
Get the result of asynchronous execution or null
if concurrent
handling did not start.
- 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
-
- 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
-
- 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
-
- getComment() - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
- getContentLengthLong() - Method in class org.springframework.mock.web.MockHttpServletResponse
-
- 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
-
- 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
-
- getContextLoaderClass() - Method in class org.springframework.test.context.ContextConfigurationAttributes
-
- 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
-
- 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
.
- getDefaultSessionTrackingModes() - Method in class org.springframework.mock.web.MockServletContext
-
- getDefaultTestExecutionListenerClasses() - Method in class org.springframework.test.context.TestContextManager
-
- getDescription() - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Returns a description suitable for an ignored test class if the test is
disabled via @IfProfileValue
at the class-level, and
otherwise delegates to the parent implementation.
- getDispatchedPath() - Method in class org.springframework.mock.web.MockAsyncContext
-
- getDispatcherType() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getDomain() - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- getEffectiveMajorVersion() - Method in class org.springframework.mock.web.MockServletContext
-
- getEffectiveMinorVersion() - Method in class org.springframework.mock.web.MockServletContext
-
- getEffectiveSessionTrackingModes() - 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
-
- getFilterRegistration(String) - Method in class org.springframework.mock.web.MockServletContext
-
- getFilterRegistrations() - Method in class org.springframework.mock.web.MockServletContext
-
- 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
-
- 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
-
- getJspConfigDescriptor() - Method in class org.springframework.mock.web.MockServletContext
-
- 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
-
- getListeners() - Method in class org.springframework.mock.web.MockAsyncContext
-
- 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
-
- 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
-
- getMaxAge() - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
- 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.MockSessionCookieConfig
-
- getName() - Method in class org.springframework.mock.web.portlet.MockEvent
-
- getName() - Method in class org.springframework.test.context.ContextConfigurationAttributes
-
- 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
-
- getParentApplicationContext() - Method in class org.springframework.test.context.MergedContextConfiguration
-
Get the parent ApplicationContext
for the context defined by this
MergedContextConfiguration
from the context cache.
- getPart(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getParts() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getPath() - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
Deprecated.
- 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.MockAsyncContext
-
- 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
-
- 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
-
- getResourceSuffix() - Method in class org.springframework.test.context.web.GenericXmlWebContextLoader
-
Returns "-context.xml
".
- getResponse() - Method in class org.springframework.mock.web.MockAsyncContext
-
- 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
-
Deprecated.
- 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
-
Deprecated.
- getServletPath() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getServletRegistration(String) - Method in class org.springframework.mock.web.MockServletContext
-
- getServletRegistrations() - Method in class org.springframework.mock.web.MockServletContext
-
- getServlets() - Method in class org.springframework.mock.web.MockServletContext
-
Deprecated.
- 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
-
- getSessionCookieConfig() - Method in class org.springframework.mock.web.MockServletContext
-
- 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 interface org.springframework.test.context.TestContext
-
- getTestContext() - Method in class org.springframework.test.context.TestContextManager
-
Returns the
TestContext
managed by this
TestContextManager
.
- getTestContextManager() - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
- getTestException() - Method in interface org.springframework.test.context.TestContext
-
- getTestExecutionListeners() - Method in class org.springframework.test.context.TestContextManager
-
- getTestInstance() - Method in interface org.springframework.test.context.TestContext
-
- getTestMethod() - Method in interface org.springframework.test.context.TestContext
-
- getTimeout() - Method in class org.springframework.mock.web.MockAsyncContext
-
- 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
-
- 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() - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
A method to obtain the WebApplicationContext to be passed to the DispatcherServlet.
- initWebAppContext() - Method in class org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
-
- initWebAppContext() - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
-
- injectDependencies(TestContext) - Method in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
-
- 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.
- isAsyncStarted() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- isAsyncSupported() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- 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).
- 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(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.
- isDestinationLocked() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
- 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
-
- isGone() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is HttpStatus.GONE
(410).
- isHttpOnly() - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
- isInheritLocations() - Method in class org.springframework.test.context.ContextConfigurationAttributes
-
- isInsufficientSpaceOnResource() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
- 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
-
- 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
-
- 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).
- 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
-
Deprecated.
- 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(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.MockSessionCookieConfig
-
- 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 @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
-
- markApplicationContextDirty(DirtiesContext.HierarchyMode) - Method in interface 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(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
-
- 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
-
- MockActionRequest() - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
-
- MockActionRequest(String) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
-
- MockActionRequest(PortletMode) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
-
- MockActionRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
-
- MockActionRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockActionRequest
-
Create a new MockActionRequest.
- MockActionResponse - Class in org.springframework.mock.web.portlet
-
- MockActionResponse() - Constructor for class org.springframework.mock.web.portlet.MockActionResponse
-
- MockActionResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockActionResponse
-
Create a new MockActionResponse.
- MockAsyncContext - Class in org.springframework.mock.web
-
- MockAsyncContext(ServletRequest, ServletResponse) - Constructor for class org.springframework.mock.web.MockAsyncContext
-
- 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
-
- 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
-
- MockCacheControl() - Constructor for class org.springframework.mock.web.portlet.MockCacheControl
-
- MockClientDataRequest - Class in org.springframework.mock.web.portlet
-
- MockClientDataRequest() - Constructor for class org.springframework.mock.web.portlet.MockClientDataRequest
-
- MockClientDataRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockClientDataRequest
-
- 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
-
- MockEnvironment() - Constructor for class org.springframework.mock.env.MockEnvironment
-
- 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
-
- MockEventRequest(Event) - Constructor for class org.springframework.mock.web.portlet.MockEventRequest
-
- MockEventRequest(Event, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockEventRequest
-
- 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
-
- 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
-
- 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
-
- MockFilterConfig() - Constructor for class org.springframework.mock.web.MockFilterConfig
-
- MockFilterConfig(String) - Constructor for class org.springframework.mock.web.MockFilterConfig
-
- 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
-
- MockHttpServletRequest() - Constructor for class org.springframework.mock.web.MockHttpServletRequest
-
- MockHttpServletRequest(String, String) - Constructor for class org.springframework.mock.web.MockHttpServletRequest
-
- MockHttpServletRequest(ServletContext) - Constructor for class org.springframework.mock.web.MockHttpServletRequest
-
- 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
-
- MockHttpServletResponse - Class in org.springframework.mock.web
-
- MockHttpServletResponse() - Constructor for class org.springframework.mock.web.MockHttpServletResponse
-
- MockHttpSession - Class in org.springframework.mock.web
-
- MockHttpSession() - Constructor for class org.springframework.mock.web.MockHttpSession
-
- 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
-
- 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
-
- MockMimeResponse() - Constructor for class org.springframework.mock.web.portlet.MockMimeResponse
-
- 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
-
- MockMultipartHttpServletRequest(ServletContext) - Constructor for class org.springframework.mock.web.MockMultipartHttpServletRequest
-
Create a new
MockMultipartHttpServletRequest
with the supplied
ServletContext
.
- MockMultipartHttpServletRequestBuilder - Class in org.springframework.test.web.servlet.request
-
- 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
-
- MockMvcBuilders - Class in org.springframework.test.web.servlet.setup
-
- 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
-
- MockMvcRequestBuilders() - Constructor for class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
-
- MockMvcResultHandlers - Class in org.springframework.test.web.servlet.result
-
- MockMvcResultMatchers - Class in org.springframework.test.web.servlet.result
-
- MockPageContext - Class in org.springframework.mock.web
-
- MockPageContext() - Constructor for class org.springframework.mock.web.MockPageContext
-
- MockPageContext(ServletContext) - Constructor for class org.springframework.mock.web.MockPageContext
-
- 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
-
- 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
-
- MockPortletConfig() - Constructor for class org.springframework.mock.web.portlet.MockPortletConfig
-
- MockPortletConfig(String) - Constructor for class org.springframework.mock.web.portlet.MockPortletConfig
-
- 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
-
- 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
-
- MockPortletPreferences() - Constructor for class org.springframework.mock.web.portlet.MockPortletPreferences
-
- MockPortletRequest - Class in org.springframework.mock.web.portlet
-
- MockPortletRequest() - Constructor for class org.springframework.mock.web.portlet.MockPortletRequest
-
- MockPortletRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletRequest
-
- MockPortletRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletRequest
-
Create a new MockPortletRequest.
- MockPortletRequestDispatcher - Class in org.springframework.mock.web.portlet
-
- 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
-
- MockPortletResponse() - Constructor for class org.springframework.mock.web.portlet.MockPortletResponse
-
- MockPortletResponse(PortalContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletResponse
-
Create a new MockPortletResponse.
- MockPortletSession - Class in org.springframework.mock.web.portlet
-
- MockPortletSession() - Constructor for class org.springframework.mock.web.portlet.MockPortletSession
-
- MockPortletSession(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockPortletSession
-
Create a new MockPortletSession.
- MockPortletURL - Class in org.springframework.mock.web.portlet
-
- 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
-
- 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
-
- 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
-
- MockRenderRequest() - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
-
- MockRenderRequest(PortletMode) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
-
- MockRenderRequest(PortletMode, WindowState) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
-
- MockRenderRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
-
- MockRenderRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockRenderRequest
-
Create a new MockRenderRequest.
- MockRenderResponse - Class in org.springframework.mock.web.portlet
-
- MockRenderResponse() - Constructor for class org.springframework.mock.web.portlet.MockRenderResponse
-
- 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
-
- 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
-
- MockResourceRequest() - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
-
- MockResourceRequest(String) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
-
- MockResourceRequest(MockResourceURL) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
-
- MockResourceRequest(PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
-
- MockResourceRequest(PortalContext, PortletContext) - Constructor for class org.springframework.mock.web.portlet.MockResourceRequest
-
Create a new MockResourceRequest.
- MockResourceResponse - Class in org.springframework.mock.web.portlet
-
- MockResourceResponse() - Constructor for class org.springframework.mock.web.portlet.MockResourceResponse
-
- MockResourceURL - Class in org.springframework.mock.web.portlet
-
- MockResourceURL() - Constructor for class org.springframework.mock.web.portlet.MockResourceURL
-
- MockRestRequestMatchers - Class in org.springframework.test.web.client.match
-
- MockRestResponseCreators - Class in org.springframework.test.web.client.response
-
- MockRestServiceServer - Class in org.springframework.test.web.client
-
Main entry point for client-side REST testing.
- MockServletConfig - Class in org.springframework.mock.web
-
- MockServletConfig() - Constructor for class org.springframework.mock.web.MockServletConfig
-
- MockServletConfig(String) - Constructor for class org.springframework.mock.web.MockServletConfig
-
- 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
-
- 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.
- MockSessionCookieConfig - Class in org.springframework.mock.web
-
- MockSessionCookieConfig() - Constructor for class org.springframework.mock.web.MockSessionCookieConfig
-
- MockStateAwareResponse - Class in org.springframework.mock.web.portlet
-
- MockStateAwareResponse() - Constructor for class org.springframework.mock.web.portlet.MockStateAwareResponse
-
- 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
-
- modifyLocations(Class<?>, String...) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
-
- MvcResult - Interface in org.springframework.test.web.servlet
-
Provides access to the result of an executed request.
- options(String, Object...) - Static method in class org.springframework.test.web.servlet.request.MockMvcRequestBuilders
-
- 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 3.0 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.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.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
-
- org.springframework.test.web.client.response - package org.springframework.test.web.client.response
-
- 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
-
- 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.
- 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
-
- redirectedUrl(String) - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
-
Asserts the request was redirected to the given URL.
- redirectedUrlPattern(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
-
- 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
-
- 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
-
- 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() - 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
-
- resetBuffer() - Method in class org.springframework.mock.web.MockHttpServletResponse
-
- resetBuffer() - Method in class org.springframework.mock.web.portlet.MockMimeResponse
-
- resolve(Class<?>) - Method in interface org.springframework.test.context.ActiveProfilesResolver
-
Resolve the
bean definition profiles to use when loading an
ApplicationContext
for the given
test class.
- 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
-
- Rollback - Annotation Type in org.springframework.test.annotation
-
Test annotation used 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
-
- 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
-
- runChild(FrameworkMethod, RunNotifier) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
- runTest() - Method in class org.springframework.test.AssertThrows
-
Deprecated.
- 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
-
- 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.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.
- setAsyncContext(MockAsyncContext) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- setAsyncRequestTimeout(long) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
-
Specify the timeout value for async execution.
- setAsyncStarted(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- setAsyncSupported(boolean) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- 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
-
- 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
.
- setComment(String) - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- setCommitted(boolean) - Method in class org.springframework.mock.web.MockHttpServletResponse
-
- setCommitted(boolean) - Method in class org.springframework.mock.web.portlet.MockMimeResponse
-
- 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
-
- setContentLengthLong(long) - Method in class org.springframework.mock.web.MockHttpServletResponse
-
- 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.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
-
- setDefaultServletName(String) - Method in class org.springframework.mock.web.MockServletContext
-
Set the name of the default Servlet
.
- setDispatcherType(DispatcherType) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- setDomain(String) - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- setEffectiveMajorVersion(int) - Method in class org.springframework.mock.web.MockServletContext
-
- setEffectiveMinorVersion(int) - Method in class org.springframework.mock.web.MockServletContext
-
- 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
-
- setField(Object, String, Object, Class<?>) - Static method in class org.springframework.test.util.ReflectionTestUtils
-
- 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
-
- setHttpOnly(boolean) - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
- setMaxAge(int) - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
- setName(String) - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- 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
-
- 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
-
- setPath(String) - Method in class org.springframework.mock.web.MockSessionCookieConfig
-
- setPathInfo(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- 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
-
- 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
-
- setRemoveSemicolonContent(boolean) - Method in class org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder
-
Set if ";" (semicolon) content should be stripped from the request URI.
- 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.MockSessionCookieConfig
-
- 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
-
- setSessionTrackingModes(Set<SessionTrackingMode>) - Method in class org.springframework.mock.web.MockServletContext
-
- 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.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
-
Deprecated.
- setTimeout(long) - Method in class org.springframework.mock.web.MockAsyncContext
-
- setTitle(String) - Method in class org.springframework.mock.web.portlet.MockRenderResponse
-
- 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 ViewResolver
s.
- 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
-
- 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
-
- springTestContextAfterTestMethod(Method) - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- springTestContextBeforeTestClass() - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- springTestContextBeforeTestMethod(Method) - Method in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- 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.
- start(Runnable) - Method in class org.springframework.mock.web.MockAsyncContext
-
- startAsync() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- startAsync(ServletRequest, ServletResponse) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- 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 the primary value of the named 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 the named 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.