From c6bfe34f9e853efdaef8ae2541442970f4ed98dc Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Fri, 22 Apr 2022 11:27:54 -0400 Subject: [PATCH] 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 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 props = new Hashtable<>();