Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12251

HotRodClientJmxTest.testRemoteCacheManagerMBean fails on Java 14

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 12.0.0.Dev03
    • 12.0.0.Dev02
    • Hot Rod, Test Suite
    • None

    Description

      HotRodClientJmxTest.testRemoteCacheManagerMBean assumes that the result of InetSocketAddress.toString() for an unresolved address is in the format hostname:port. But the format changed in Java 14, and now the format is hostname/<unresolved>:port.

      java.lang.AssertionError: expected:<localhost:37809> but was:<localhost/<unresolved>:37809>
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:101)
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:108)
      	at org.infinispan.client.hotrod.HotRodClientJmxTest.testRemoteCacheManagerMBean(HotRodClientJmxTest.java:84)
      

      It might be a good idea to change the JMX attribute to only return the hostname instead of changing the test.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: