org.jboss.arquillian.junit.Arquillian



API Populatity

5 Client projects

Project: org.jboss

Project wildfly/wildfly in file ...ntegration.ws.tools.jbws3207.JBWS3207TestCase.java (2011-11-07)
@@ -31,6 +31,8 @@ import java.io.OutputStreamWriter;
 import java.net.URL;
 import java.net.URLConnection;
 
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.test.integration.ws.tools.jbws3207.service.EndpointImpl;
 import org.jboss.as.webservices.deployer.RemoteDeployer;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
@@ -41,12 +43,14 @@ import org.jboss.wsf.spi.SPIProvider;
 import org.jboss.wsf.spi.SPIProviderResolver;
 import org.jboss.wsf.spi.deployer.Deployer;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 
 /**
  * [JBWS-3207] JBossWS remote deployer support.
  *
  * @author <a href="ropalka@redhat.com">Richard Opalka</a>
  */
+@RunWith(Arquillian.class)
 public class JBWS3207TestCase {
 
     @Test
Project wildfly/wildfly in file ....smoke.messaging.client.jms.JmsClientTestCase.java (2012-02-26)
@@ -22,6 +22,9 @@
 
 package org.jboss.as.test.smoke.messaging.client.jms;
 
+import static org.jboss.as.arquillian.container.Authentication.getCallbackHandler;
+import static org.jboss.as.protocol.StreamUtils.safeClose;
+
 import java.io.IOException;
 import java.net.InetAddress;
 import java.util.ArrayList;
@@ -45,6 +48,9 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
 import junit.framework.Assert;
+
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.controller.client.ModelControllerClient;
 import org.jboss.as.controller.client.OperationBuilder;
 import org.jboss.as.test.shared.integration.ejb.security.CallbackHandler;
@@ -52,15 +58,15 @@ import org.jboss.dmr.ModelNode;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
-
-import static org.jboss.as.arquillian.container.Authentication.getCallbackHandler;
-import static org.jboss.as.protocol.StreamUtils.safeClose;
+import org.junit.runner.RunWith;
 
 /**
  * Demo using the AS management API to create and destroy a JMS queue.
  *
  * @author Emanuel Muckenhuber
  */
+@RunWith(Arquillian.class)
+@RunAsClient
 public class JmsClientTestCase {
 
     private static final String QUEUE_NAME = "createdTestQueue";
Project wildfly/wildfly in file ...tion.ejb.security.InherritanceAnnSFSBTestCase.java (2011-12-13)
@@ -23,14 +23,24 @@
 package org.jboss.as.test.integration.ejb.security;
 
 import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.RunAsClient;
+import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.as.test.integration.ejb.security.authorization.InherritanceAnnOnlyCheckSFSB;
 import org.jboss.logging.Logger;
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.spec.JavaArchive;
 import org.junit.Test;
 import org.junit.Ignore;
+import org.junit.runner.RunWith;
 
+import javax.ejb.EJBAccessException;
+import javax.naming.Context;
+
+@RunWith(Arquillian.class)
+@RunAsClient
 /**
+ * This test case check whether basic EJB authorization works from EJB client to inherrited stateless remote EJB.
+ *
  * @author <a href="mailto:jlanik@redhat.com">Jan Lanik</a>.
  */
 public class InherritanceAnnSFSBTestCase extends AnnSBTest{