- 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 or Groovy scripts 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 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
-
- AbstractTestContextBootstrapper - Class in org.springframework.test.context.support
-
Abstract implementation of the
TestContextBootstrapper
interface which
provides most of the behavior required by a bootstrapper.
- AbstractTestContextBootstrapper() - Constructor for class org.springframework.test.context.support.AbstractTestContextBootstrapper
-
- 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
-
- addFilter(Filter, String...) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
Add a filter mapped to a specific set of patterns.
- addFilters(Filter...) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
- addFilters(Filter...) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
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
-
- addInlinedPropertiesToEnvironment(ConfigurableApplicationContext, String[]) - Static method in class org.springframework.test.context.support.TestPropertySourceUtils
-
Add the given inlined properties to the Environment
of the
supplied context
.
- addInlinedPropertiesToEnvironment(ConfigurableEnvironment, String[]) - Static method in class org.springframework.test.context.support.TestPropertySourceUtils
-
Add the given inlined properties (in the form of key-value
pairs) to the supplied environment
.
- 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
-
- addPropertiesFilesToEnvironment(ConfigurableApplicationContext, String[]) - Static method in class org.springframework.test.context.support.TestPropertySourceUtils
-
Add the
Properties
files from the given resource
locations
to the
Environment
of the supplied
context
.
- 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
-
- afterConfigurerAdded(ConfigurableMockMvcBuilder<?>) - Method in interface org.springframework.test.web.servlet.setup.MockMvcConfigurer
-
- afterConfigurerAdded(ConfigurableMockMvcBuilder<?>) - Method in class org.springframework.test.web.servlet.setup.MockMvcConfigurerAdapter
-
- 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.jdbc.SqlScriptsTestExecutionListener
-
Execute SQL scripts configured via
@Sql
for the supplied
TestContext
after the current test method.
- 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 a test method
configured to run within a transaction via the @Transactional
annotation.
- alwaysDo(ResultHandler) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
- alwaysDo(ResultHandler) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
Define a global action that should always be applied to every
response.
- alwaysExpect(ResultMatcher) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
- alwaysExpect(ResultMatcher) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
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).
- AnnotationConfigContextLoaderUtils() - Constructor for class org.springframework.test.context.support.AnnotationConfigContextLoaderUtils
-
- AnnotationConfigWebContextLoader - Class in org.springframework.test.context.web
-
- AnnotationConfigWebContextLoader() - Constructor for class org.springframework.test.context.web.AnnotationConfigWebContextLoader
-
- AnnotationDescriptor(Class<?>, T) - Constructor for class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- AnnotationDescriptor(Class<?>, Class<?>, Annotation, T) - Constructor for class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- 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
-
- apply(MockMvcConfigurer) - Method in class org.springframework.test.web.servlet.setup.AbstractMockMvcBuilder
-
- apply(MockMvcConfigurer) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
Add a MockMvcConfigurer
that automates MockMvc setup and
configures it for some specific purpose (e.g.
- 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.
- assertJsonEqual(String, String) - Method in class org.springframework.test.util.JsonExpectationsHelper
-
Parse the expected and actual strings as JSON and assert the two
are "similar" - i.e.
- assertJsonNotEqual(String, String) - Method in class org.springframework.test.util.JsonExpectationsHelper
-
Parse the expected and actual strings as JSON and assert the two
are "not similar" - i.e.
- 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<? extends Throwable>) - Constructor for class org.springframework.test.AssertThrows
-
Deprecated.
Create a new instance of the AssertThrows
class.
- AssertThrows(Class<? extends Throwable>, String) - Constructor for class org.springframework.test.AssertThrows
-
Deprecated.
Create a new instance of the AssertThrows
class.
- assertTrue(String, boolean) - Static method in class org.springframework.test.util.AssertionErrors
-
Assert the given condition is
true
and raise an
AssertionError
if it is not.
- assertValue(String, Matcher<T>) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
-
Evaluate the JSON path and assert the resulting value with the given Matcher
.
- assertValue(String, Object) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
-
Apply the JSON path and assert the resulting value.
- assertValueIsArray(String) - Method in class org.springframework.test.util.JsonPathExpectationsHelper
-
Apply the JSON path 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.
- attributeHasFieldErrorCode(String, String, String) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
-
Assert a field error code for a model attribute using exact String match.
- attributeHasFieldErrorCode(String, String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.ModelResultMatchers
-
Assert a field error code for a model attribute using a Matcher
.
- 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 - Interface in org.springframework.test.context
-
A
CacheAwareContextLoaderDelegate
is responsible for
loading and
closing application
contexts, interacting transparently with a
context cache behind
the scenes.
- changeSessionId() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- changeSessionId() - Method in class org.springframework.mock.web.MockHttpSession
-
As of Servlet 3.1 the id of a session can be changed.
- 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(Throwable) - 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.
- closeContext(MergedContextConfiguration, DirtiesContext.HierarchyMode) - Method in interface org.springframework.test.context.CacheAwareContextLoaderDelegate
-
Remove the application context for the
supplied
MergedContextConfiguration
from the
context cache
and close it if it is
an instance of
ConfigurableApplicationContext
.
- 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
-
- ConfigurableMockMvcBuilder<B extends ConfigurableMockMvcBuilder<B>> - Interface in org.springframework.test.web.servlet.setup
-
Defines common methods for building a MockMvc
.
- ConfigurableSmartRequestBuilder<B extends ConfigurableSmartRequestBuilder<B>> - Interface in org.springframework.test.web.servlet.request
-
- 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
-
- 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.request.MockHttpServletRequestBuilder
-
Set the 'Content-Type' header of the request.
- contentType(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
-
Assert the ServletResponse content type.
- contentType(MediaType) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
-
Assert the ServletResponse content type after parsing it as a MediaType.
- contentTypeCompatibleWith(String) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
-
Assert the request content type is compatible with the given
content type as defined by MediaType.isCompatibleWith(MediaType)
.
- contentTypeCompatibleWith(MediaType) - Method in class org.springframework.test.web.client.match.ContentRequestMatchers
-
Assert the request content type is compatible with the given
content type as defined by MediaType.isCompatibleWith(MediaType)
.
- contentTypeCompatibleWith(String) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
-
Assert the ServletResponse content type is compatible with the given
content type as defined by MediaType.isCompatibleWith(MediaType)
.
- contentTypeCompatibleWith(MediaType) - Method in class org.springframework.test.web.servlet.result.ContentResultMatchers
-
Assert the ServletResponse content type is compatible with the given
content type as defined by MediaType.isCompatibleWith(MediaType)
.
- ContextConfiguration - Annotation Type in org.springframework.test.context
-
@ContextConfiguration
defines class-level metadata that is used to determine
how to load and configure an ApplicationContext
for integration tests.
- ContextConfigurationAttributes - Class in org.springframework.test.context
-
ContextConfigurationAttributes
encapsulates the context configuration
attributes declared via
@ContextConfiguration
.
- ContextConfigurationAttributes(Class<?>, ContextConfiguration) - Constructor for class org.springframework.test.context.ContextConfigurationAttributes
-
- 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.
- convertInlinedPropertiesToMap(String[]) - Static method in class org.springframework.test.context.support.TestPropertySourceUtils
-
Convert the supplied inlined properties (in the form of key-value
pairs) into a map keyed by property name, preserving the ordering of property names
in the returned map.
- convertToClasspathResourcePaths(Class<?>, String...) - Static method in class org.springframework.test.context.util.TestContextResourceUtils
-
Convert the supplied paths to classpath resource paths.
- convertToResources(ResourceLoader, String...) - Static method in class org.springframework.test.context.util.TestContextResourceUtils
-
Convert the supplied paths to Resource
handles using the given
ResourceLoader
.
- 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
.
- createDelegatingTransactionAttribute(TestContext, TransactionAttribute) - Static method in class org.springframework.test.context.transaction.TestContextTransactionUtils
-
Create a delegating
TransactionAttribute
for the supplied target
TransactionAttribute
and
TestContext
, using the names of
the test class and test method to build the name of the transaction.
- 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(Throwable) - Method in class org.springframework.test.AssertThrows
-
Deprecated.
Creates the failure message used if the wrong type
of
Throwable
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(AsyncRestTemplate) - Static method in class org.springframework.test.web.client.MockRestServiceServer
-
Create a MockRestServiceServer
and set up the given
AsyRestTemplate
with a mock AsyncClientHttpRequestFactory
.
- 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
-
Delegate to the parent implementation for creating the test instance and
then allow the
TestContextManager
to
prepare the test instance before returning it.
- createTestContextManager(Class<?>) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
- 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_DATA_SOURCE_NAME - Static variable in class org.springframework.test.context.transaction.TestContextTransactionUtils
-
- 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'.
- DEFAULT_TRANSACTION_MANAGER_NAME - Static variable in class org.springframework.test.context.transaction.TestContextTransactionUtils
-
Default bean name for a PlatformTransactionManager
:
"transactionManager"
.
- DefaultActiveProfilesResolver - Class in org.springframework.test.context.support
-
- DefaultActiveProfilesResolver() - Constructor for class org.springframework.test.context.support.DefaultActiveProfilesResolver
-
- DefaultMockMvcBuilder - Class in org.springframework.test.web.servlet.setup
-
A concrete implementation of
AbstractMockMvcBuilder
that provides
the
WebApplicationContext
supplied 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
-
- defaultRequest(RequestBuilder) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
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.
- DefaultTestContextBootstrapper - Class in org.springframework.test.context.support
-
- DefaultTestContextBootstrapper() - Constructor for class org.springframework.test.context.support.DefaultTestContextBootstrapper
-
- 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
-
- delete(URI) - 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
-
- dispatchOptions(boolean) - Method in interface org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder
-
Whether to enable the DispatcherServlet property
dispatchOptionsRequest
which allows processing of HTTP OPTIONS requests.
- 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.
- 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
-
- GenericGroovyXmlContextLoader - Class in org.springframework.test.context.support
-
- GenericGroovyXmlContextLoader() - Constructor for class org.springframework.test.context.support.GenericGroovyXmlContextLoader
-
- GenericGroovyXmlWebContextLoader - Class in org.springframework.test.context.web
-
- GenericGroovyXmlWebContextLoader() - Constructor for class org.springframework.test.context.web.GenericGroovyXmlWebContextLoader
-
- 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
-
- get(URI) - 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.
- getAnnotation() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- getAnnotationAttributes() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- 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
-
- getAnnotationType() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- 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 async execution.
- getAsyncResult(long) - Method in interface org.springframework.test.web.servlet.MvcResult
-
Get the result of async execution.
- getAttribute(String) - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getAttribute(String) - Method in class org.springframework.mock.web.MockHttpSession
-
- getAttribute(String) - Method in class org.springframework.mock.web.MockPageContext
-
- getAttribute(String, int) - Method in class org.springframework.mock.web.MockPageContext
-
- getAttribute(String) - Method in class org.springframework.mock.web.MockServletContext
-
- getAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletContext
-
- getAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletRequest
-
- getAttribute(String) - Method in class org.springframework.mock.web.portlet.MockPortletSession
-
- getAttribute(String, int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
-
- getAttribute(String) - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
-
- getAttributeMap() - Method in class org.springframework.mock.web.portlet.MockPortletSession
-
- getAttributeMap(int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
-
- getAttributeNames() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getAttributeNames() - Method in class org.springframework.mock.web.MockHttpSession
-
- getAttributeNames() - Method in class org.springframework.mock.web.MockPageContext
-
- getAttributeNames() - Method in class org.springframework.mock.web.MockServletContext
-
- getAttributeNames() - Method in class org.springframework.mock.web.portlet.MockPortletContext
-
- getAttributeNames() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
-
- getAttributeNames() - Method in class org.springframework.mock.web.portlet.MockPortletSession
-
- getAttributeNames(int) - Method in class org.springframework.mock.web.portlet.MockPortletSession
-
- getAttributeNames() - Method in class org.springframework.mock.web.portlet.ServletWrappingPortletContext
-
- getAttributeNamesInScope(int) - Method in class org.springframework.mock.web.MockPageContext
-
- getAttributesScope(String) - Method in class org.springframework.mock.web.MockPageContext
-
- getAuthType() - Method in class org.springframework.mock.web.MockHttpServletRequest
-
- getAuthType() - Method in class org.springframework.mock.web.portlet.MockPortletRequest
-
- 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.
- getBootstrapContext() - Method in class org.springframework.test.context.support.AbstractTestContextBootstrapper
-
- getBootstrapContext() - Method in interface org.springframework.test.context.TestContextBootstrapper
-
- 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
-
- getCacheAwareContextLoaderDelegate() - Method in interface org.springframework.test.context.BootstrapContext
-
- 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
-
- getComposedAnnotation() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- getComposedAnnotationType() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- 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.MockHttpServletRequest
-
- 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
-
- getDeclaringClass() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- getDefaultContextLoaderClass(Class<?>) - Method in class org.springframework.test.context.support.AbstractTestContextBootstrapper
-
Determine the default
ContextLoader
class to use for the supplied
test class.
- getDefaultContextLoaderClass(Class<?>) - Method in class org.springframework.test.context.support.DefaultTestContextBootstrapper
-
- getDefaultContextLoaderClass(Class<?>) - Method in class org.springframework.test.context.web.WebTestContextBootstrapper
-
- 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.support.AbstractTestContextBootstrapper
-
- getDefaultTestExecutionListenerClassNames() - Method in class org.springframework.test.context.support.AbstractTestContextBootstrapper
-
- getDescription() - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Return a description suitable for an ignored test class if the test is
disabled via @IfProfileValue
at the class-level, and
otherwise delegate 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
Throwable
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
-
This method always returns null
.
- 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
-
Retrieve 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
-
Returns the first preferred
locale configured
in this mock request.
- 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
ApplicationContext
configuration files 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 default
FileTypeMap
from the Java Activation Framework to resolve MIME types.
- 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
-
- getOrder() - Method in class org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener
-
Returns 5000
.
- getOrder() - Method in class org.springframework.test.context.support.AbstractTestExecutionListener
-
The default implementation returns Ordered.LOWEST_PRECEDENCE
,
thereby ensuring that custom listeners are ordered after default
listeners supplied by the framework.
- getOrder() - Method in class org.springframework.test.context.support.DependencyInjectionTestExecutionListener
-
Returns 2000
.
- getOrder() - Method in class org.springframework.test.context.support.DirtiesContextTestExecutionListener
-
Returns 3000
.
- getOrder() - Method in class org.springframework.test.context.transaction.TransactionalTestExecutionListener
-
Returns 4000
.
- getOrder() - Method in class org.springframework.test.context.web.ServletTestExecutionListener
-
Returns 1000
.
- 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
-
- getPropertySourceLocations() - Method in class org.springframework.test.context.MergedContextConfiguration
-
Get the merged resource locations for test
PropertySources
for the
test class.
- getPropertySourceProperties() - Method in class org.springframework.test.context.MergedContextConfiguration
-
Get the merged test
PropertySource
properties for the
test class.
- 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 detecting default locations.
- getResourceSuffix() - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
-
- getResourceSuffix() - Method in class org.springframework.test.context.support.GenericGroovyXmlContextLoader
-
GenericGroovyXmlContextLoader
supports both Groovy and XML
resource types for detection of defaults.
- 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"
in order to support detection of a
default XML config file.
- getResourceSuffix() - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
-
- getResourceSuffix() - Method in class org.springframework.test.context.web.GenericGroovyXmlWebContextLoader
-
GenericGroovyXmlWebContextLoader
supports both Groovy and XML
resource types for detection of defaults.
- getResourceSuffix() - Method in class org.springframework.test.context.web.GenericXmlWebContextLoader
-
Returns "-context.xml"
in order to support detection of a
default XML config file.
- getResourceSuffixes() - Method in class org.springframework.test.context.support.AbstractContextLoader
-
Get the suffixes to append to ApplicationContext
resource
locations when detecting default locations.
- getResourceSuffixes() - Method in class org.springframework.test.context.support.GenericGroovyXmlContextLoader
-
Returns "-context.xml" and "Context.groovy"
in order to
support detection of a default XML config file or Groovy script.
- getResourceSuffixes() - Method in class org.springframework.test.context.web.GenericGroovyXmlWebContextLoader
-
Returns "-context.xml" and "Context.groovy"
in order to
support detection of a default XML config file or Groovy script.
- 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
-
- getRootDeclaringClass() - Method in class org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
-
- 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
-
This method always returns null
.
- 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
-
Retrieve 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 interface org.springframework.test.context.BootstrapContext
-
- 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
-
Get 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.support.AbstractTestContextBootstrapper
-
- getTestExecutionListeners() - Method in interface org.springframework.test.context.TestContextBootstrapper
-
- 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 and/or Groovy scripts.
- 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
-
Return the compiled XPath expression.
- 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
-
- INLINED_PROPERTIES_PROPERTY_SOURCE_NAME - Static variable in class org.springframework.test.context.support.TestPropertySourceUtils
-
The name of the MapPropertySource
created from inlined properties.
- 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.
- is1xxInformational() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is in the 1xx range.
- is2xxSuccessful() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is in the 2xx range.
- is3xxRedirection() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is in the 3xx range.
- is4xxClientError() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is in the 4xx range.
- is5xxServerError() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is in the 5xx range.
- 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).
- isActive() - Static method in class org.springframework.test.context.transaction.TestTransaction
-
Determine whether a test-managed transaction is currently active.
- 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).
- isFlaggedForRollback() - Static method in class org.springframework.test.context.transaction.TestTransaction
-
- 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
-
- 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).
- isPayloadTooLarge() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is HttpStatus.PAYLOAD_TOO_LARGE
(413).
- isPaymentRequired() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is HttpStatus.PAYMENT_REQUIRED
(402).
- isPermanentRedirect() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is HttpStatus.PERMANENT_REDIRECT
(308).
- 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
-
- 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
-
- isResetContent() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is HttpStatus.RESET_CONTENT
(205).
- 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
-
Returns
true
if the
secure
flag has been set
to
true
or if the
scheme
is
https
.
- 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
-
Return 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).
- isUriTooLong() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
Assert the response status code is HttpStatus.REQUEST_URI_TOO_LONG
(414).
- isUseProxy() - Method in class org.springframework.test.web.servlet.result.StatusResultMatchers
-
- 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 parameters.
- 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 parameters.
- 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 parameters.
- MergedContextConfiguration(MergedContextConfiguration) - Constructor for class org.springframework.test.context.MergedContextConfiguration
-
Create a new MergedContextConfiguration
instance by copying
all fields from the supplied MergedContextConfiguration
.
- MergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], String[], String[], ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration) - Constructor for class org.springframework.test.context.MergedContextConfiguration
-
Create a new MergedContextConfiguration
instance for the
supplied parameters.
- MetaAnnotationUtils - Class in org.springframework.test.util
-
MetaAnnotationUtils
is a collection of utility methods that complements
the standard support already available in AnnotationUtils
.
- MetaAnnotationUtils() - Constructor for class org.springframework.test.util.MetaAnnotationUtils
-
- MetaAnnotationUtils.AnnotationDescriptor<T extends Annotation> - Class in org.springframework.test.util
-
Descriptor for an
Annotation
, including the
class on which the annotation is
declared
as well as the actual
annotation instance.
- MetaAnnotationUtils.UntypedAnnotationDescriptor - Class in org.springframework.test.util
-
Untyped extension of AnnotationDescriptor
that is used
to describe the declaration of one of several candidate annotation types
where the actual annotation type cannot be predetermined.
- 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.
- MockAsyncClientHttpRequest - Class in org.springframework.mock.http.client
-
An extension of
MockClientHttpRequest
that also implements
AsyncClientHttpRequest
by wrapping the response in a
SettableListenableFuture
.
- MockAsyncClientHttpRequest() - Constructor for class org.springframework.mock.http.client.MockAsyncClientHttpRequest
-
- MockAsyncClientHttpRequest(HttpMethod, URI) - Constructor for class org.springframework.mock.http.client.MockAsyncClientHttpRequest
-
- 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 Apache 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
-
- MockMvcConfigurer - Interface in org.springframework.test.web.servlet.setup
-
Allows a sub-class to encapsulate logic for pre-configuring a
ConfigurableMockMvcBuilder
for some specific purpose.
- MockMvcConfigurerAdapter - Class in org.springframework.test.web.servlet.setup
-
- MockMvcConfigurerAdapter() - Constructor for class org.springframework.test.web.servlet.setup.MockMvcConfigurerAdapter
-
- 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
-
- options(URI) - 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
-
Generic unit testing support classes.
- 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.jdbc - package org.springframework.test.context.jdbc
-
JDBC support classes for the Spring TestContext Framework,
including support for declarative SQL script execution via @Sql
.
- org.springframework.test.context.junit4 - package org.springframework.test.context.junit4
-
Support classes for integrating the Spring TestContext Framework with JUnit.
- org.springframework.test.context.junit4.statements - package org.springframework.test.context.junit4.statements
-
Custom JUnit 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.util - package org.springframework.test.context.util
-
Common utilities used within 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
-
- readScript(LineNumberReader, String) - Static method in class org.springframework.test.jdbc.JdbcTestUtils
-
- 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(List<TestExecutionListener>) - Method in class org.springframework.test.context.TestContextManager
-
Register the supplied list of
TestExecutionListeners
by appending them to the list of listeners used by this
TestContextManager
.
- registerTestExecutionListeners(TestExecutionListener...) - Method in class org.springframework.test.context.TestContextManager
-
Register the supplied array of
TestExecutionListeners
by appending them to the list 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(HttpMethod, URI) - 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.
- resolve(Class<?>) - Method in class org.springframework.test.context.support.DefaultActiveProfilesResolver
-
- 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.
- retrieveDataSource(TestContext, String) - Static method in class org.springframework.test.context.transaction.TestContextTransactionUtils
-
- retrieveProfileValueSource(Class<?>) - Static method in class org.springframework.test.annotation.ProfileValueUtils
-
- retrieveTransactionManager(TestContext, String) - Static method in class org.springframework.test.context.transaction.TestContextTransactionUtils
-
Retrieve the transaction manager
to use for the supplied
test context.
- 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 current execution environment.
- 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
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
-
Construct a new RunAfterTestClassCallbacks
statement.
- RunAfterTestMethodCallbacks - Class in org.springframework.test.context.junit4.statements
-
RunAfterTestMethodCallbacks
is a custom JUnit
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
-
Construct 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
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
-
Construct a new RunBeforeTestClassCallbacks
statement.
- RunBeforeTestMethodCallbacks - Class in org.springframework.test.context.junit4.statements
-
RunBeforeTestMethodCallbacks
is a custom JUnit
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
-
Construct 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
-
- setBootstrapContext(BootstrapContext) - Method in class org.springframework.test.context.support.AbstractTestContextBootstrapper
-
- setBootstrapContext(BootstrapContext) - Method in interface org.springframework.test.context.TestContextBootstrapper
-
- 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
-
Set the boolean secure
flag indicating whether the mock request
was made using a secure channel, such as HTTPS.
- 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.
- SmartRequestBuilder - Interface in org.springframework.test.web.servlet
-
- 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
-
- SpringFailOnTimeout - Class in org.springframework.test.context.junit4.statements
-
SpringFailOnTimeout
is a custom JUnit
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
-
Construct a new SpringFailOnTimeout
statement for the supplied
timeout
.
- SpringJUnit4ClassRunner - Class in org.springframework.test.context.junit4
-
SpringJUnit4ClassRunner
is a custom extension of JUnit's
BlockJUnit4ClassRunner
which provides functionality of the
Spring TestContext Framework to standard JUnit tests by means of the
TestContextManager
and associated support classes and annotations.
- SpringJUnit4ClassRunner(Class<?>) - Constructor for class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Construct a new
SpringJUnit4ClassRunner
and initialize 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
Statement
which adds support
for Spring's
@Repeat
annotation by repeating the test the specified number of times.
- SpringRepeat(Statement, Method, int) - Constructor for class org.springframework.test.context.junit4.statements.SpringRepeat
-
Construct a new SpringRepeat
statement for the supplied
testMethod
and repeat
count.
- 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.
- Sql - Annotation Type in org.springframework.test.context.jdbc
-
@Sql
is used to annotate a test class or test method to configure SQL
scripts to be executed against a given database during integration tests.
- Sql.ExecutionPhase - Enum in org.springframework.test.context.jdbc
-
Enumeration of phases that dictate when SQL scripts are executed.
- SqlConfig - Annotation Type in org.springframework.test.context.jdbc
-
@SqlConfig
defines metadata that is used to determine how to parse
and execute SQL scripts configured via the
@Sql
annotation.
- SqlConfig.ErrorMode - Enum in org.springframework.test.context.jdbc
-
Enumeration of modes that dictate how errors are handled while
executing SQL statements.
- SqlConfig.TransactionMode - Enum in org.springframework.test.context.jdbc
-
Enumeration of modes that dictate whether SQL scripts should be
executed within a transaction and what the transaction propagation behavior
should be.
- SqlGroup - Annotation Type in org.springframework.test.context.jdbc
-
Container annotation that aggregates several
@Sql
annotations.
- SqlScriptsTestExecutionListener - Class in org.springframework.test.context.jdbc
-
TestExecutionListener
that provides support for executing SQL scripts
configured via the
@Sql
annotation.
- SqlScriptsTestExecutionListener() - Constructor for class org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener
-
- StandaloneMockMvcBuilder - Class in org.springframework.test.web.servlet.setup
-
A MockMvcBuilder
that accepts @Controller
registrations
thus allowing full control over the instantiation and 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
-
- start() - Static method in class org.springframework.test.context.transaction.TestTransaction
-
Start a new test-managed transaction.
- 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.
- validateMergedContextConfiguration(MergedContextConfiguration) - Method in class org.springframework.test.context.support.AbstractGenericContextLoader
-
- validateMergedContextConfiguration(MergedContextConfiguration) - Method in class org.springframework.test.context.support.AnnotationConfigContextLoader
-
- validateMergedContextConfiguration(MergedContextConfiguration) - Method in class org.springframework.test.context.support.GenericPropertiesContextLoader
-
- validateMergedContextConfiguration(MergedContextConfiguration) - Method in class org.springframework.test.context.support.GenericXmlContextLoader
-
- validateMergedContextConfiguration(WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AbstractGenericWebContextLoader
-
- validateMergedContextConfiguration(WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.AnnotationConfigWebContextLoader
-
- validateMergedContextConfiguration(WebMergedContextConfiguration) - Method in class org.springframework.test.context.web.GenericXmlWebContextLoader
-
- value(Matcher<T>) - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
-
Evaluate the JSONPath and assert the resulting value with the given Matcher
.
- value(Object) - Method in class org.springframework.test.web.client.match.JsonPathRequestMatchers
-
Apply the JSONPath and assert the resulting value.
- value(String, Matcher<? super String>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
-
Assert a cookie value with the given Hamcrest Matcher
.
- value(String, String) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
-
Assert a cookie value.
- value(Matcher<T>) - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
-
Evaluate the JSONPath and assert the value of the content found with the
given Hamcrest Matcher
.
- value(Object) - Method in class org.springframework.test.web.servlet.result.JsonPathResultMatchers
-
Evaluate the JSONPath and assert the value of the content found.
- valueOf(String) - Static method in enum org.springframework.test.annotation.DirtiesContext.ClassMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.springframework.test.annotation.DirtiesContext.HierarchyMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.springframework.test.context.jdbc.Sql.ExecutionPhase
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.springframework.test.context.jdbc.SqlConfig.ErrorMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.springframework.test.context.jdbc.SqlConfig.TransactionMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.springframework.test.context.TestExecutionListeners.MergeMode
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.springframework.test.annotation.DirtiesContext.ClassMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.springframework.test.annotation.DirtiesContext.HierarchyMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.springframework.test.context.jdbc.Sql.ExecutionPhase
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.springframework.test.context.jdbc.SqlConfig.ErrorMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.springframework.test.context.jdbc.SqlConfig.TransactionMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.springframework.test.context.TestExecutionListeners.MergeMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- verify() - Method in class org.springframework.test.web.client.MockRestServiceServer
-
- version(String, Matcher<? super Integer>) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
-
Assert a cookie's version with a Hamcrest Matcher
- version(String, int) - Method in class org.springframework.test.web.servlet.result.CookieResultMatchers
-
Assert a cookie's version value.
- view() - Static method in class org.springframework.test.web.servlet.result.MockMvcResultMatchers
-
Access to assertions on the selected view.
- ViewResultMatchers - Class in org.springframework.test.web.servlet.result
-
Factory for assertions on the selected view.
- ViewResultMatchers() - Constructor for class org.springframework.test.web.servlet.result.ViewResultMatchers
-
Protected constructor.
- WebAppConfiguration - Annotation Type in org.springframework.test.context.web
-
@WebAppConfiguration
is a class-level annotation that is used to
declare that the ApplicationContext
loaded for an integration test
should be a WebApplicationContext
.
- webAppContextSetup(WebApplicationContext) - Static method in class org.springframework.test.web.servlet.setup.MockMvcBuilders
-
Build a
MockMvc
using the given, fully initialized, i.e.
- WebDelegatingSmartContextLoader - Class in org.springframework.test.context.web
-
- WebDelegatingSmartContextLoader() - Constructor for class org.springframework.test.context.web.WebDelegatingSmartContextLoader
-
- WebMergedContextConfiguration - Class in org.springframework.test.context.web
-
- WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], String, ContextLoader) - Constructor for class org.springframework.test.context.web.WebMergedContextConfiguration
-
- WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration) - Constructor for class org.springframework.test.context.web.WebMergedContextConfiguration
-
- WebMergedContextConfiguration(MergedContextConfiguration, String) - Constructor for class org.springframework.test.context.web.WebMergedContextConfiguration
-
Create a new WebMergedContextConfiguration
instance by copying
all properties from the supplied MergedContextConfiguration
.
- WebMergedContextConfiguration(Class<?>, String[], Class<?>[], Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>>, String[], String[], String[], String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration) - Constructor for class org.springframework.test.context.web.WebMergedContextConfiguration
-
Create a new WebMergedContextConfiguration
instance for the
supplied parameters.
- WebTestContextBootstrapper - Class in org.springframework.test.context.web
-
- WebTestContextBootstrapper() - Constructor for class org.springframework.test.context.web.WebTestContextBootstrapper
-
- with(RequestPostProcessor) - Method in interface org.springframework.test.web.servlet.request.ConfigurableSmartRequestBuilder
-
Add the given RequestPostProcessor
.
- with(RequestPostProcessor) - Method in class org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
-
An extension point for further initialization of
MockHttpServletRequest
in ways not built directly into the
MockHttpServletRequestBuilder
.
- withAfterClasses(Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Wrap the Statement
returned by the parent implementation with a
RunAfterTestClassCallbacks
statement, thus preserving the default
JUnit functionality while adding support for the Spring TestContext Framework.
- withAfters(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Wrap the Statement
returned by the parent implementation with a
RunAfterTestMethodCallbacks
statement, thus preserving the
default functionality while adding support for the Spring TestContext
Framework.
- withBadRequest() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 400 response (BAD_REQUEST).
- withBeforeClasses(Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Wrap the Statement
returned by the parent implementation with a
RunBeforeTestClassCallbacks
statement, thus preserving the
default JUnit functionality while adding support for the Spring TestContext
Framework.
- withBefores(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Wrap the Statement
returned by the parent implementation with a
RunBeforeTestMethodCallbacks
statement, thus preserving the
default functionality while adding support for the Spring TestContext
Framework.
- withCreatedEntity(URI) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 201 response (CREATED) with a 'Location' header.
- withNoContent() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 204 response (NO_CONTENT).
- withPotentialRepeat(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Wrap the supplied Statement
with a SpringRepeat
statement.
- withPotentialTimeout(FrameworkMethod, Object, Statement) - Method in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
Perform the same logic as
BlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod, Object, Statement)
but with additional support for Spring's @Timed
annotation.
- withProperty(String, String) - Method in class org.springframework.mock.env.MockEnvironment
-
- withProperty(String, Object) - Method in class org.springframework.mock.env.MockPropertySource
-
- withServerError() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 500 response (SERVER_ERROR).
- withStatus(HttpStatus) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
with a specific HTTP status.
- withSuccess() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 200 response (OK).
- withSuccess(String, MediaType) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 200 response (OK) with String body.
- withSuccess(byte[], MediaType) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 200 response (OK) with byte[] body.
- withSuccess(Resource, MediaType) - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 200 response (OK) content with Resource
-based body.
- withUnauthorizedRequest() - Static method in class org.springframework.test.web.client.response.MockRestResponseCreators
-
ResponseCreator
for a 401 response (UNAUTHORIZED).
- write(int) - Method in class org.springframework.mock.web.DelegatingServletOutputStream
-
- write(char[], int, int) - Method in class org.springframework.mock.web.MockBodyContent
-
- write(char[], int, int) - Method in class org.springframework.mock.web.MockJspWriter
-
- write(Writer) - Method in class org.springframework.mock.web.portlet.MockBaseURL
-
- write(Writer, boolean) - Method in class org.springframework.mock.web.portlet.MockBaseURL
-
- writeOut(Writer) - Method in class org.springframework.mock.web.MockBodyContent
-