Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[Junit] Arquillian - how to export shrinkwrap archive
public class WarSmokeTest {
public static Archive<?> createTestArchive() {
final MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml");
final WebArchive archive = ShrinkWrap.create(WebArchive.class)
.addAsResource("", "")
; File("/" + archive.getName()), true);
return archive;
public void test() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.