Created
March 17, 2019 22:23
-
-
Save brunodutr/10a0730abbe95439aa03a656e885a524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example.bdutra.it; | |
import org.eu.ingwar.tools.arquillian.extension.suite.annotations.ArquillianSuiteDeployment; | |
import org.jboss.arquillian.container.test.api.Deployment; | |
import org.jboss.shrinkwrap.api.Archive; | |
import org.jboss.shrinkwrap.api.ShrinkWrap; | |
import org.jboss.shrinkwrap.api.spec.JavaArchive; | |
@ArquillianSuiteDeployment | |
public class Deployments { | |
@SuppressWarnings("rawtypes") | |
@Deployment | |
public static Archive createDeployment() { | |
return ShrinkWrap.create(JavaArchive.class) | |
.addPackages(true, "example.bdutra") | |
.addAsResource("META-INF/beans.xml") | |
.addAsResource("META-INF/it-persistence.xml", "META-INF/persistence.xml") | |
.addAsResource("project-it.yml", "project-defaults.yml") | |
.addAsResource("META-INF/arquillian.xml"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment