Java Reference
In-Depth Information
<scope>test</scope>
</dependency>
</dependencies>
</profile>
• The second profile is named arq-jbossas-remote ; it will perform test-
ing against a remote JBoss AS instance:
<profile>
<id>arq-jbossas-remote</id>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-remote</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
Writing your first Arquillian test
Once the configuration is complete, we will finally code our test. So, create a
Java class named TicketTest under the package
com.packtpub.as7development.chapter6.test . The first thing that you will
add to our class is the following annotation that tells JUnit to use Arquillian as the
test controller:
@RunWith(Arquillian.class)
public class TicketTest {
}
Arquillian then looks for a static method with the @Deployment annotation; it creates
a micro deployment, including all the resources, just as you would when packaging
your applications with your favorite tool:
Search WWH ::




Custom Search