附录II Spring Test Utils
Spring Boot提供的Unit Test Utils有以下这些:
- AopTestUtils
- AssertionErrors
- JsonExpectationsHelper
- JsonPathExpectationsHelper
- MetaAnnotationUtils
- ReflectionTestUtils
- XmlExpectationsHelper
- XpathExpectationsHelper
- ModelAndViewAssert
- JdbcTestUtils
- BeanFactoryAnnotationUtils,用它getBeanByQualifier特别有用
Spring Boot提供的Unit Test Utils有以下这些:
- ConfigFileApplicationContextInitializer
- EnvironmentTestUtils
- OutputCapture
- TestRestTemplate