附录II Spring Test Utils

Spring Boot提供的Unit Test Utils有以下这些:

  1. AopTestUtils
  2. AssertionErrors
  3. JsonExpectationsHelper
  4. JsonPathExpectationsHelper
  5. MetaAnnotationUtils
  6. ReflectionTestUtils
  7. XmlExpectationsHelper
  8. XpathExpectationsHelper
  9. ModelAndViewAssert
  10. JdbcTestUtils
  11. BeanFactoryAnnotationUtils,用它getBeanByQualifier特别有用

Spring Boot提供的Unit Test Utils有以下这些:

  1. ConfigFileApplicationContextInitializer
  2. EnvironmentTestUtils
  3. OutputCapture
  4. TestRestTemplate