Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2418

TestProto.java used by testProtocol.java hardcodes port 1527

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 10.3.1.4
    • Test
    • None

    Description

      NetHarnessJavaTest reuses the old framework test 'testProtocol' via
      old framework adapter HarnessJavaTest.
      testProtocol uses the class TestProto which hardcodes use of port 1527.
      It would be nice to pass the port used in the current TestConfiguration
      to testProtocol/TestProto so the JUnit suites can move towards being runnable
      with another port than the default.

      Currently, using another port than 1527 for TestConfiguration.DEFAULT_PORT,
      the test fails and crashes JUnit's TestRunner with the console message:

      Couldn't get I/O for the connection to: localhost

      Attachments

        1. d2418_try2.diff
          3 kB
          Julius Stroffek
        2. d2418_try2.stat
          0.3 kB
          Julius Stroffek
        3. d2418.diff
          2 kB
          Julius Stroffek
        4. d2418.stat
          0.2 kB
          Julius Stroffek

        Activity

          People

            julo Julius Stroffek
            dagw Dag H. Wanvik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: