Skip to content

Commit

Permalink
JBEAP-4942: Fix and document Arquillian tests for helloworld-mbean qu…
Browse files Browse the repository at this point in the history
…ickstart
  • Loading branch information
sgilda committed Jun 13, 2016
1 parent 69d5478 commit 6146cd3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions helloworld-mbean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ Undeploy the Archive
mvn wildfly:undeploy


Run the Arquillian Tests
-------------------------

This quickstart provides Arquillian tests. By default, these tests are configured to be skipped as Arquillian tests require the use of a container.

1. Make sure you have started the JBoss EAP server as described above.
2. Open a command prompt and navigate to the root directory of this quickstart.
3. Type the following command to run the test goal with the following profile activated:

mvn clean test -Parq-wildfly-remote


Run the Quickstart in Red Hat JBoss Developer Studio or Eclipse
-------------------------------------
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a JBoss EAP server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#use-jboss-developer-studio-or-eclipse-to-run-the-quickstarts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -48,7 +48,7 @@ public class MXPojoHelloWorldTest {
*/
@Deployment
public static Archive<?> createTestArchive() {
return ShrinkWrap.create(JavaArchive.class, "myservice.sar")
return ShrinkWrap.create(WebArchive.class, "myservice.war")
.addClasses(MXPojoHelloWorld.class).addClasses(IHelloWorldMXBean.class)
.addAsManifestResource("META-INF/jboss-service.xml", "jboss-service.xml");
}
Expand Down

0 comments on commit 6146cd3

Please sign in to comment.