Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2564

Move SocketTestUtils.findAvailableServerSocket to Spring Integration Test Module

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2 M1
    • Fix Version/s: 2.2 M3 Sprint 3, 2.2 M3
    • Component/s: Testing
    • Labels:
      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

            Activity

              People

              Assignee:
              hillert Gunnar Hillert
              Reporter:
              hillert Gunnar Hillert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.25d
                  0.25d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.25d
                  0.25d