Introduce TestSocketUtils as a replacement for SocketUtils

SocketUtils was officially deprecated in 5.3.16 (gh-28052) and removed
in 6.0 M3 (gh-28054); however, there is still need for a subset of this
functionality in integration tests for testing scenarios in which it is
not possible for the system under test to select its own random port
(or rely on the operating system to provide an ephemeral port).

This commit therefore introduces a scaled down version in the
spring-test module called TestSocketUtils which supports retrieval of a
single TCP port.

See gh-29132
This commit is contained in:
Chris Bono
2022-09-10 23:19:29 -05:00
committed by Sam Brannen
parent 743a96b75e
commit ee51dab1f3
3 changed files with 165 additions and 0 deletions

View File

@@ -0,0 +1 @@
mock-maker-inline