activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] branch 2.6.x updated: NO-JIRA Improve test
Date Wed, 20 Feb 2019 13:45:37 GMT
This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/2.6.x by this push:
     new a78804c  NO-JIRA Improve test
a78804c is described below

commit a78804c56a9cb1fda996fa6875d87d4567adea6f
Author: Clebert Suconic <clebertsuconic@apache.org>
AuthorDate: Tue Feb 19 19:31:49 2019 -0500

    NO-JIRA Improve test
    
    (cherry picked from commit 43c0868d7226ed57fdcb5d57071c2abfa2f5fb42)
---
 .../integration/cluster/bridge/ClusteredBridgeReconnectTest.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/ClusteredBridgeReconnectTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/ClusteredBridgeReconnectTest.java
index beab047..060233c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/ClusteredBridgeReconnectTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/ClusteredBridgeReconnectTest.java
@@ -86,7 +86,7 @@ public class ClusteredBridgeReconnectTest extends ClusterTestBase {
       MessageFlowRecord record = connection.getRecords().values().toArray(new MessageFlowRecord[1])[0];
       ClusterConnectionBridge bridge = (ClusterConnectionBridge) record.getBridge();
 
-      Wait.assertEquals(2, bridge.getSessionFactory().getServerLocator().getTopology().getMembers()::size);
+      Wait.assertEquals(2, () -> bridge.getSessionFactory().getServerLocator().getTopology().getMembers().size());
       ArrayList<TopologyMemberImpl> originalmembers = new ArrayList<>(bridge.getSessionFactory().getServerLocator().getTopology().getMembers());
 
       for (int i = 0; i < NUMBER_OF_MESSAGES; i++) {
@@ -99,7 +99,7 @@ public class ClusteredBridgeReconnectTest extends ClusterTestBase {
          }
       }
 
-      Wait.assertEquals(2, bridge.getSessionFactory().getServerLocator().getTopology().getMembers()::size);
+      Wait.assertEquals(2, () -> bridge.getSessionFactory().getServerLocator().getTopology().getMembers().size());
 
       ArrayList<TopologyMemberImpl> afterReconnectedMembers = new ArrayList<>(bridge.getSessionFactory().getServerLocator().getTopology().getMembers());
 


Mime
View raw message