Skip to content

Commit

Permalink
[AS7-2123] Enable excluded messaging/jms tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir committed Oct 17, 2011
1 parent b5015c1 commit d644ccb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
Expand Up @@ -45,6 +45,7 @@
import javax.management.ObjectName;

import junit.framework.Assert;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
Expand All @@ -56,7 +57,6 @@
import org.jboss.as.test.smoke.modular.utils.ShrinkWrapUtils;
import org.jboss.dmr.ModelNode;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -67,7 +67,6 @@
*/
@RunWith(Arquillian.class)
@RunAsClient
@Ignore("Ignore demos that need the preview config")
public class JmsClientTestCase {

private static final String QUEUE_NAME = "createdTestQueue";
Expand All @@ -91,7 +90,7 @@ public void testMessagingClient() throws Exception {
ModelNode op = new ModelNode();
op.get("operation").set("add");
op.get("address").add("subsystem", "messaging");
op.get("address").add("server", "default");
op.get("address").add("hornetq-server", "default");
op.get("address").add("jms-queue", QUEUE_NAME);
op.get("entries").add(QUEUE_NAME);
applyUpdate(op, client);
Expand Down Expand Up @@ -155,7 +154,7 @@ public void onMessage(Message message) {
ModelNode op = new ModelNode();
op.get("operation").set("remove");
op.get("address").add("subsystem", "messaging");
op.get("address").add("server", "default");
op.get("address").add("hornetq-server", "default");
op.get("address").add("jms-queue", QUEUE_NAME);
applyUpdate(op, client);
}
Expand Down
Expand Up @@ -49,7 +49,6 @@
import org.jboss.as.test.smoke.modular.utils.ShrinkWrapUtils;
import org.jboss.dmr.ModelNode;
import org.jboss.shrinkwrap.api.Archive;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -61,7 +60,6 @@
*/
@RunWith(Arquillian.class)
@RunAsClient
@Ignore("Ignore demos that need the preview config")
public class MessagingClientTestCase {

@Deployment(testable = false)
Expand All @@ -87,7 +85,7 @@ public void testMessagingClient() throws Exception {
ModelNode op = new ModelNode();
op.get("operation").set("add");
op.get("address").add("subsystem", "messaging");
op.get("address").add("server", "default");
op.get("address").add("hornetq-server", "default");
op.get("address").add("queue", queueName);
op.get("queue-address").set(queueName);
applyUpdate(op, client);
Expand Down Expand Up @@ -120,7 +118,7 @@ public void testMessagingClient() throws Exception {
op = new ModelNode();
op.get("operation").set("remove");
op.get("address").add("subsystem", "messaging");
op.get("address").add("server", "default");
op.get("address").add("hornetq-server", "default");
op.get("address").add("queue", queueName);
applyUpdate(op, client);

Expand Down
Expand Up @@ -36,6 +36,7 @@
import javax.naming.InitialContext;

import junit.framework.Assert;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.logging.Logger;
Expand All @@ -45,7 +46,6 @@
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -55,7 +55,6 @@
* @author <a href="kabir.khan@jboss.com">Kabir Khan</a>
*/
@RunWith(Arquillian.class)
@Ignore("Ignore demos that need the preview config")
public class JmsTestCase {
static final Logger log = Logger.getLogger(JmsTestCase.class);

Expand Down
Expand Up @@ -45,7 +45,6 @@
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -55,7 +54,6 @@
* @author <a href="kabir.khan@jboss.com">Kabir Khan</a>
*/
@RunWith(Arquillian.class)
@Ignore("Ignore demos that need the preview config")
public class MessagingTestCase {
private static final String QUEUE_EXAMPLE_QUEUE = "queue.exampleQueue";

Expand Down

0 comments on commit d644ccb

Please sign in to comment.