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") });
}
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") });
}
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();
}
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") });
}
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") });
}
Aggregations