Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:1153830
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
@RunWith(Arquillian.class)
public class WebappPrototypeArqTest {
 
@Deployment
public static WebArchive createDeployment() {
// TODO gwt dev is in the classpath so it shades tomcat and the arq container can't boot (nevermind the classpath of shrinkwrap!)
WebArchive webArchive = ShrinkWrap.create(WebArchive.class)
.addAsResource(new File("target/classes/"))
.addAsWebInfResource(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/WEB-INF/web.xml"), "web.xml")
.addAsWebInfResource(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/WEB-INF/beans.xml"), "beans.xml")
.addAsLibraries(
DependencyResolvers.use(MavenDependencyResolver.class)
.includeDependenciesFromPom("pom.xml")
.resolveAsFiles(new ScopeFilter("", "compile", "runtime")));
 
return webArchive;
// TODO use loadMetadataFromPom instead
}
 
 
@Inject
private RulesRepository repository;
 
@Test
public void theRepoIsNotNull() {
assertNotNull(repository);
}
 
@Test
public void theRepoIsNotNull2() {
assertNotNull(repository);
}
 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.