Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8016221

A unit test should not use a fix port to run a jmx connector

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-svc
    • None
    • b102
    • Not verified

    Description

      Today,the following 3 tests using a fixed port to start a jmx RMI Connector Server, it is too fragile because the fixed port could be used by others at testing time. We should use a dynamic port selected by the JMX factory.

      test/com/sun/management/DiagnosticCommandMBean/DcmdMBeanDoubleInvocationTest.java
      test/com/sun/management/DiagnosticCommandMBean/DcmdMBeanInvocationTest.java
      test/com/sun/management/DiagnosticCommandMBean/DcmdMBeanTest.java

      Attachments

        Activity

          People

            sjiang Shanliang Jiang (Inactive)
            sjiang Shanliang Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: