# Package org.springframework.test.util

@NonNullApi @NonNullFields package org.springframework.test.util
General utility classes for use in unit and integration tests.

Class
Description
AopTestUtils
`AopTestUtils` is a collection of AOP-related utility methods for use in unit and integration testing scenarios.
AssertionErrors
Test assertions that are independent of any third-party assertion library.
ExceptionCollector
`ExceptionCollector` is a test utility for executing code blocks, collecting exceptions, and generating a single `AssertionError` containing any exceptions encountered as suppressed exceptions.
ExceptionCollector.Executable
`Executable` is a functional interface that can be used to implement any generic block of code that potentially throws a `Throwable`.
JsonExpectationsHelper
Deprecated.
in favor of using `JSONAssert` directly or the `JsonComparator` abstraction
JsonPathExpectationsHelper
A helper class for applying assertions via JSON path expressions.
MethodAssert
AssertJ `assertions` that can be applied to a `Method`.
ReflectionTestUtils
`ReflectionTestUtils` is a collection of reflection-based utility methods for use in unit and integration testing scenarios.
TestSocketUtils
Simple utility for finding available TCP ports on `localhost` for use in integration testing scenarios.
XmlExpectationsHelper
A helper class for assertions on XML content.
XpathExpectationsHelper
A helper class for applying assertions via XPath expressions.