Search in sources :

Example 86 with ActiveMQQueue

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

the class SecurityTestSupport method initCombosForTestUserReceiveSucceeds.

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

Example 87 with ActiveMQQueue

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

the class SecurityTestSupport method initCombosForTestGuestReceiveSucceeds.

/**
 * @see {@link CombinationTestSupport}
 */
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 88 with ActiveMQQueue

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

the class SimpleAuthenticationPluginSeparatorTest method initCombosForTestUserSendFails.

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

Example 89 with ActiveMQQueue

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

the class SimpleAuthenticationPluginSeparatorTest method initCombosForTestUserReceiveSucceeds.

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

Example 90 with ActiveMQQueue

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

the class SimpleAuthenticationPluginSeparatorTest method initCombosForTestUserReceiveFails.

/**
 * @see {@link CombinationTestSupport}
 */
@Override
public void initCombosForTestUserReceiveFails() {
    addCombinationValues("userName", new Object[] { "user" });
    addCombinationValues("password", new Object[] { "password" });
    addCombinationValues("destination", new Object[] { new ActiveMQQueue("TEST"), new ActiveMQTopic("TEST"), new ActiveMQQueue("GUEST/BAR"), new ActiveMQTopic("GUEST/BAR") });
}
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