程序包 org.springframework.test.util
General utility classes for use in unit and integration tests.
类概要 类 说明 AopTestUtils AopTestUtils
is a collection of AOP-related utility methods for use in unit and integration testing scenarios.AssertionErrors JUnit independent assertion class.JsonExpectationsHelper A helper class for assertions on JSON content.JsonPathExpectationsHelper A helper class for applying assertions via JSON path expressions.MatcherAssertionErrors 已过时。 as of Spring 4.2, in favor of the originalMatcherAssert
class with JUnit 4.9 / Hamcrest 1.3MetaAnnotationUtils MetaAnnotationUtils
is a collection of utility methods that complements the standard support already available inAnnotationUtils
.MetaAnnotationUtils.AnnotationDescriptor<T extends Annotation> Descriptor for anAnnotation
, including the class on which the annotation is declared as well as the actual annotation instance.MetaAnnotationUtils.UntypedAnnotationDescriptor Untyped extension ofAnnotationDescriptor
that is used to describe the declaration of one of several candidate annotation types where the actual annotation type cannot be predetermined.ReflectionTestUtils ReflectionTestUtils
is a collection of reflection-based utility methods for use in unit and integration testing scenarios.XmlExpectationsHelper A helper class for assertions on XML content.XpathExpectationsHelper A helper class for applying assertions via XPath expressions.