You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/04/12 08:52:36 UTC

[groovy] branch master updated: minor refactor: formatting/imports and adjust ports to experiment with flakey CI RMI test

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 8980443  minor refactor: formatting/imports and adjust ports to experiment with flakey CI RMI test
8980443 is described below

commit 898044307186b725c74a520b27ca5ffc537a07cb
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Apr 12 18:52:18 2021 +1000

    minor refactor: formatting/imports and adjust ports to experiment with flakey CI RMI test
---
 .../groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy       | 2 +-
 .../groovy/jmx/builder/JmxServerConnectorFactoryTest.groovy       | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy
index 1fae057..c68511b 100644
--- a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy
+++ b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy
@@ -25,7 +25,7 @@ import javax.management.remote.rmi.RMIConnectorServer
 
 class JmxClientConnectorFactoryTest extends GroovyTestCase {
     def builder
-    int defaultPort = 10995
+    int defaultPort = 10990
     def rmi
 
     void setUp() {
diff --git a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxServerConnectorFactoryTest.groovy b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxServerConnectorFactoryTest.groovy
index d396eb8..0c1e518 100644
--- a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxServerConnectorFactoryTest.groovy
+++ b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxServerConnectorFactoryTest.groovy
@@ -20,12 +20,14 @@ package groovy.jmx.builder
 
 import groovy.test.GroovyTestCase
 
+import javax.management.remote.JMXConnector
+import javax.management.remote.JMXConnectorFactory
 import javax.management.remote.JMXServiceURL
 import javax.management.remote.rmi.RMIConnectorServer
 
 class JmxServerConnectorFactoryTest extends GroovyTestCase {
     def builder
-    int defaultPort = 10997
+    int defaultPort = 10995
     def rmi
 
     void setUp() {
@@ -54,8 +56,8 @@ class JmxServerConnectorFactoryTest extends GroovyTestCase {
         assert result.isActive()
 
         JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:${rmi.port}/jmxrmi")
-        javax.management.remote.JMXConnector conn = javax.management.remote.JMXConnectorFactory.newJMXConnector(url, null)
-        conn.connect();
+        JMXConnector conn = JMXConnectorFactory.newJMXConnector(url, null)
+        conn.connect()
 
         result.stop()
     }