Package org.springframework.test.util
@NullMarked
package org.springframework.test.util
General utility classes for use in unit and integration tests.
-
ClassDescription
AopTestUtilsis a collection of AOP-related utility methods for use in unit and integration testing scenarios.Test assertions that are independent of any third-party assertion library.ExceptionCollectoris a test utility for executing code blocks, collecting exceptions, and generating a singleAssertionErrorcontaining any exceptions encountered as suppressed exceptions.Executableis a functional interface that can be used to implement any generic block of code that potentially throws aThrowable.Deprecated.A helper class for applying assertions via JSON path expressions.AssertJassertionsthat can be applied to aMethod.ReflectionTestUtilsis a collection of reflection-based utility methods for use in unit and integration testing scenarios.Simple utility for finding available TCP ports onlocalhostfor use in integration testing scenarios.A helper class for assertions on XML content.A helper class for applying assertions via XPath expressions.
JSONAssertdirectly or theJsonComparatorabstraction