附录I Spring Mock Objects
Spring提供的Mock Objects有以下这些:
package org.springframework.mock.env
- MockEnvironment
- MockPropertySource
package org.springframework.mock.jndi
- SimpleNamingContext
- ExpectedLookupTemplate
- SimpleNamingContextBuilder
package org.springframework.mock.web
- DelegatingServletInputStream
- DelegatingServletOutputStream
- HeaderValueHolder
- MockAsyncContext
- MockBodyContent
- MockExpressionEvaluator
- MockFilterChain
- MockFilterConfig
- MockHttpServletRequest
- MockHttpServletResponse
- MockHttpSession
- MockJspWriter
- MockMultipartFile
- MockMultipartHttpServletRequest
- MockPageContext
- MockRequestDispatcher
- MockServletConfig
- MockServletContext
- MockSessionCookieConfig
- PassThroughFilterChain