Search in sources :

Example 91 with ActiveMQQueue

use of org.apache.activemq.command.ActiveMQQueue in project activemq-artemis by apache.

the class SimpleAuthenticationPluginSeparatorTest method initCombosForTestUserSendSucceeds.

/**
 * @see {@link org.apache.activemq.CombinationTestSupport}
 */
@Override
public void initCombosForTestUserSendSucceeds() {
    addCombinationValues("userName", new Object[] { "user" });
    addCombinationValues("password", new Object[] { "password" });
    addCombinationValues("destination", new Object[] { new ActiveMQQueue("USERS/FOO"), new ActiveMQQueue("GUEST/BAR"), new ActiveMQTopic("USERS/FOO"), new ActiveMQTopic("GUEST/BAR") });
}
Also used : ActiveMQTopic(org.apache.activemq.command.ActiveMQTopic) ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue)

Example 92 with ActiveMQQueue

use of org.apache.activemq.command.ActiveMQQueue in project activemq-artemis by apache.

the class SimpleAuthenticationPluginSeparatorTest method initCombosForTestGuestReceiveSucceeds.

/**
 * @see {@link CombinationTestSupport}
 */
@Override
public void initCombosForTestGuestReceiveSucceeds() {
    addCombinationValues("userName", new Object[] { "guest" });
    addCombinationValues("password", new Object[] { "password" });
    addCombinationValues("destination", new Object[] { new ActiveMQQueue("GUEST/BAR"), new ActiveMQTopic("GUEST/BAR") });
}
Also used : ActiveMQTopic(org.apache.activemq.command.ActiveMQTopic) ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue)

Example 93 with ActiveMQQueue

use of org.apache.activemq.command.ActiveMQQueue in project activemq-artemis by apache.

the class AbstractCachedLDAPAuthorizationModuleTest method testQuery.

@Override
@Test
public void testQuery() throws Exception {
    map.query();
    Set<?> readACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOOBAR"));
    assertEquals("set size: " + readACLs, 3, readACLs.size());
    assertTrue("Contains admin group", readACLs.contains(ADMINS));
    assertTrue("Contains users group", readACLs.contains(USERS));
    assertTrue("Contains jdoe user", readACLs.contains(JDOE));
    Set<?> failedACLs = map.getReadACLs(new ActiveMQQueue("FAILED"));
    assertEquals("set size: " + failedACLs, 0, failedACLs.size());
    super.testQuery();
}
Also used : ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue) Test(org.junit.Test)

Example 94 with ActiveMQQueue

use of org.apache.activemq.command.ActiveMQQueue in project activemq-artemis by apache.

the class XBeanSecurityWithGuestNoCredentialsOnlyTest method initCombosForTestUserSendWrongPassword.

/**
 * @see {@link CombinationTestSupport}
 */
public void initCombosForTestUserSendWrongPassword() {
    addCombinationValues("userName", new Object[] { "system" });
    addCombinationValues("password", new Object[] { "wrongpassword" });
    addCombinationValues("destination", new Object[] { new ActiveMQQueue("GuestQueue") });
}
Also used : ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue)

Example 95 with ActiveMQQueue

use of org.apache.activemq.command.ActiveMQQueue in project activemq-artemis by apache.

the class SimpleAnonymousPluginTest method initCombosForTestAnonymousReceiveFails.

/**
 * @see {@link CombinationTestSupport}
 */
public void initCombosForTestAnonymousReceiveFails() {
    addCombinationValues("userName", new Object[] { null });
    addCombinationValues("password", new Object[] { null });
    addCombinationValues("destination", new Object[] { new ActiveMQQueue("TEST"), new ActiveMQTopic("TEST"), new ActiveMQQueue("USERS.FOO"), new ActiveMQTopic("USERS.FOO") });
}
Also used : ActiveMQTopic(org.apache.activemq.command.ActiveMQTopic) ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue)

Aggregations

ActiveMQQueue (org.apache.activemq.command.ActiveMQQueue)239 Session (javax.jms.Session)81 MessageProducer (javax.jms.MessageProducer)78 MessageConsumer (javax.jms.MessageConsumer)76 TextMessage (javax.jms.TextMessage)73 Test (org.junit.Test)66 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)54 ActiveMQDestination (org.apache.activemq.command.ActiveMQDestination)44 Message (javax.jms.Message)36 ActiveMQConnectionFactory (org.apache.activemq.ActiveMQConnectionFactory)33 Connection (javax.jms.Connection)32 Destination (javax.jms.Destination)27 CountDownLatch (java.util.concurrent.CountDownLatch)20 ActiveMQTextMessage (org.apache.activemq.command.ActiveMQTextMessage)18 ConnectionInfo (org.apache.activemq.command.ConnectionInfo)18 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)18 SessionInfo (org.apache.activemq.command.SessionInfo)18 Message (org.apache.activemq.command.Message)17 BasicOpenWireTest (org.apache.activemq.artemis.tests.integration.openwire.BasicOpenWireTest)16 ProducerInfo (org.apache.activemq.command.ProducerInfo)16