Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Complete
-
2.2 M1
-
None
Description
Refactor SocketTestUtils.java
move the following methods to the Spring Integration Module spring-integration-test:
- findAvailableServerSocket
- findAvailableUdpSocket
Possibly to: org.springframework.integration.test.util.SocketUtils
Also improve the methods and add a random seed option.
These methods should be quite useful in conjunction with the Spring 3.1 Environment abstraction to minimize the usage of hardcoded ports in testing scenarios in order to improve portability, e.g. local machine vs. CI server.
Attachments
Issue Links
- is depended on by
-
INT-2597 Fix the static port in the HttpOutboundGatewayWithMethodExpression test once INT-2564 is addressed
-
- Closed
-
- is related to
-
SPR-8032 Introduce TCP & UDP server port scanning utility
-
- Closed
-
- relates to
-
INTSAMPLES-76 Fix Failing Tests in TCP Client Server Sample
-
- Resolved
-