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

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


The following commit(s) were added to refs/heads/main by this push:
     new c6bfe34f9e ARTEMIS-3756 Removing test that is now invalid
c6bfe34f9e is described below

commit c6bfe34f9e853efdaef8ae2541442970f4ed98dc
Author: Clebert Suconic <[email protected]>
AuthorDate: Fri Apr 22 11:27:54 2022 -0400

    ARTEMIS-3756 Removing test that is now invalid
---
 .../integration/jms/SimpleJNDIClientTest.java      | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git 
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
 
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
index 7f0bd43ce3..610ddd246a 100644
--- 
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
+++ 
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
@@ -36,7 +36,6 @@ import java.util.Hashtable;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.logging.Level;
 
 import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
 import org.apache.activemq.artemis.api.core.BroadcastEndpoint;
@@ -56,11 +55,9 @@ import 
org.apache.activemq.artemis.core.server.ActiveMQServers;
 import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
 import org.apache.activemq.artemis.jms.client.ActiveMQDestination;
 import org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory;
-import org.apache.activemq.artemis.logs.AssertionLoggerHandler;
 import 
org.apache.activemq.artemis.spi.core.security.ActiveMQJAASSecurityManager;
 import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
 import org.apache.activemq.artemis.utils.Wait;
-import org.jboss.logmanager.LogManager;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -119,25 +116,6 @@ public class SimpleJNDIClientTest extends ActiveMQTestBase 
{
       ctx.close();
    }
 
-   @Test
-   public void testConnectionFactoryStringWithInvalidParameter() throws 
Exception {
-      Level initialLevel = 
LogManager.getLogManager().getLogger("org.apache.activemq.artemis.core.client").getLevel();
-      
LogManager.getLogManager().getLogger("org.apache.activemq.artemis.core.client").setLevel(Level.ALL);
-      Hashtable<String, String> props = new Hashtable<>();
-      props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
-      props.put("connectionFactory.ConnectionFactory", 
"tcp://localhost:61616?foo=too");
-
-      AssertionLoggerHandler.startCapture();
-      try {
-         Context ctx = new InitialContext(props);
-         ctx.close();
-         assertTrue("Connection factory parameter foo is not standard", 
AssertionLoggerHandler.findText("Connection factory parameter foo is not 
standard"));
-      } finally {
-         AssertionLoggerHandler.stopCapture();
-         
LogManager.getLogManager().getLogger("org.apache.activemq.artemis.core.client").setLevel(initialLevel);
-      }
-   }
-
    @Test
    public void testVMCF1() throws NamingException, JMSException {
       Hashtable<String, String> props = new Hashtable<>();

Reply via email to