Java Reference
In-Depth Information
Using such a library in every test means you have to include it in every micro deployment.
There is another thing you will always need: the beans.xml file. So let's create some
utility classes:
public class ArquillianWarUtils {
private static final String BEANS_XML = "beans.xml";
private static final String ASSERTJ_COORDINATE =
private static File[] ASSERTJ_ARTIFACT =
public static WebArchive getBasicWebArchive() {
return ShrinkWrap.create(WebArchive.class)
Also, now in each test case, you'd have just to write the following code:
public static WebArchive createDeployment() {
return ArquillianWarUtils.getBasicWebArchive()
At some point, you might want to do one more thing; instead of adding all your libraries
manually, you can import them on runtime dependencies:
Search WWH ::

Custom Search