clebertsuconic commented on code in PR #5431:
URL: https://github.com/apache/activemq-artemis/pull/5431#discussion_r1910446831


##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/routing/RedirectTest.java:
##########
@@ -45,37 +45,30 @@
 import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
 import org.apache.activemq.artemis.core.server.routing.KeyType;
 import 
org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType;
-import org.apache.activemq.artemis.tests.util.Wait;
 import org.junit.jupiter.api.TestTemplate;
 import org.junit.jupiter.api.extension.ExtendWith;
 
 @ExtendWith(ParameterizedTestExtension.class)
 public class RedirectTest extends RoutingTestBase {
+   static final String[] protocols = new String[] {AMQP_PROTOCOL, 
CORE_PROTOCOL, OPENWIRE_PROTOCOL};
+   static final String[] pools = new String[] {CLUSTER_POOL, DISCOVERY_POOL, 
STATIC_POOL};
 
    @Parameters(name = "protocol: {0}, pool: {1}")
    public static Collection<Object[]> data() {
-      final String[] protocols = new String[] {AMQP_PROTOCOL, CORE_PROTOCOL, 
OPENWIRE_PROTOCOL};
-      final String[] pools = new String[] {CLUSTER_POOL, DISCOVERY_POOL, 
STATIC_POOL};
       Collection<Object[]> data = new ArrayList<>();
 
-      for (String protocol : Arrays.asList(protocols)) {
-         for (String pool : Arrays.asList(pools)) {
-            data.add(new Object[] {protocol, pool});
-         }
+      for (String pool : Arrays.asList(pools)) {
+         data.add(new Object[] {AMQP_PROTOCOL, pool});

Review Comment:
   no need for AMQP_PROTOCOL here, it's not being used.



##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/routing/RedirectTest.java:
##########
@@ -45,37 +45,30 @@
 import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
 import org.apache.activemq.artemis.core.server.routing.KeyType;
 import 
org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType;
-import org.apache.activemq.artemis.tests.util.Wait;
 import org.junit.jupiter.api.TestTemplate;
 import org.junit.jupiter.api.extension.ExtendWith;
 
 @ExtendWith(ParameterizedTestExtension.class)
 public class RedirectTest extends RoutingTestBase {
+   static final String[] protocols = new String[] {AMQP_PROTOCOL, 
CORE_PROTOCOL, OPENWIRE_PROTOCOL};
+   static final String[] pools = new String[] {CLUSTER_POOL, DISCOVERY_POOL, 
STATIC_POOL};
 
    @Parameters(name = "protocol: {0}, pool: {1}")

Review Comment:
   you need to remove the protocol from the name.



##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/routing/RedirectTest.java:
##########
@@ -45,37 +45,30 @@
 import org.apache.activemq.artemis.tests.extensions.parameterized.Parameters;
 import org.apache.activemq.artemis.core.server.routing.KeyType;
 import 
org.apache.activemq.artemis.core.server.cluster.impl.MessageLoadBalancingType;
-import org.apache.activemq.artemis.tests.util.Wait;
 import org.junit.jupiter.api.TestTemplate;
 import org.junit.jupiter.api.extension.ExtendWith;
 
 @ExtendWith(ParameterizedTestExtension.class)
 public class RedirectTest extends RoutingTestBase {
+   static final String[] protocols = new String[] {AMQP_PROTOCOL, 
CORE_PROTOCOL, OPENWIRE_PROTOCOL};
+   static final String[] pools = new String[] {CLUSTER_POOL, DISCOVERY_POOL, 
STATIC_POOL};
 
    @Parameters(name = "protocol: {0}, pool: {1}")
    public static Collection<Object[]> data() {
-      final String[] protocols = new String[] {AMQP_PROTOCOL, CORE_PROTOCOL, 
OPENWIRE_PROTOCOL};
-      final String[] pools = new String[] {CLUSTER_POOL, DISCOVERY_POOL, 
STATIC_POOL};
       Collection<Object[]> data = new ArrayList<>();
 
-      for (String protocol : Arrays.asList(protocols)) {
-         for (String pool : Arrays.asList(pools)) {
-            data.add(new Object[] {protocol, pool});
-         }
+      for (String pool : Arrays.asList(pools)) {
+         data.add(new Object[] {AMQP_PROTOCOL, pool});
       }
 
       return data;
    }
 
 
-   private final String protocol;
-
    private final String pool;
 
 
    public RedirectTest(String protocol, String pool) {

Review Comment:
   and you need to remove the String protococol parameter from here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to