原文出处: chanjarster
附录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
附录II Spring Test Utils
Spring提供的[Unit Test Utils][doc-spring-unit-test-utils]有以下这些:
- AopTestUtils
- AssertionErrors
- JsonExpectationsHelper
- JsonPathExpectationsHelper
- MetaAnnotationUtils
- ReflectionTestUtils
- XmlExpectationsHelper
- XpathExpectationsHelper
- ModelAndViewAssert
- JdbcTestUtils
,
昆山软件公司,
昆山软件开发,
昆山软件开发