HotRodClientJmxTest.testRemoteCacheManagerMBean fails on Java 14
----------------------------------------------------------------
Key: ISPN-12251
URL:
https://issues.redhat.com/browse/ISPN-12251
Project: Infinispan
Issue Type: Bug
Components: Hot Rod, Test Suite
Affects Versions: 12.0.0.Dev02
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 12.0.0.Dev03
{{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}}.
{noformat}
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)
{noformat}
It might be a good idea to change the JMX attribute to only return the hostname instead
of changing the test.