Skip to content
Permalink
Browse files
ARTEMIS-3756 Removing test that is now invalid
  • Loading branch information
clebertsuconic committed Apr 22, 2022
1 parent 5a8ee07 commit c6bfe34f9e853efdaef8ae2541442970f4ed98dc
Showing 1 changed file with 0 additions and 22 deletions.
@@ -36,7 +36,6 @@
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.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 void testEmptyConnectionFactoryString() throws NamingException, JMSExcept
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<>();

0 comments on commit c6bfe34

Please sign in to comment.