ARTEMIS-3756 Removing test that is now invalid

This commit is contained in:
Clebert Suconic 2022-04-22 11:27:54 -04:00
parent 5a8ee07be1
commit c6bfe34f9e
1 changed files with 0 additions and 22 deletions

View File

@ -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<>();