Navigation Menu

Skip to content

Commit

Permalink
WELD-1266 Fixed WAR layout for JsfStressTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Smeral authored and jharting committed Nov 26, 2012
1 parent feec375 commit 4ecffec
Showing 1 changed file with 7 additions and 10 deletions.
Expand Up @@ -30,7 +30,6 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.jboss.weld.tests.category.Broken;
import org.jboss.weld.tests.category.Integration;
import org.junit.Assert;
import org.junit.Rule;
Expand Down Expand Up @@ -60,7 +59,7 @@ public class JsfStressTest {

protected String WIN_MSG = "Correct!";
protected String LOSE_MSG = "No guesses left!";

@ArquillianResource
private URL url;

Expand All @@ -71,16 +70,14 @@ public class JsfStressTest {
public static WebArchive createDeployment() {
return ShrinkWrap.create(WebArchive.class, "test.war")
.addClasses(Game.class, Generator.class, MaxNumber.class, Random.class)
.addAsWebResource(JsfStressTest.class.getPackage(), "web.xml", "web.xml")
.addAsWebResource(JsfStressTest.class.getPackage(), "faces-config.xml", "faces-config.xml")
.addAsResource(JsfStressTest.class.getPackage(), "home.xhtml", "home.xhtml")
.addAsResource(JsfStressTest.class.getPackage(), "index.html", "index.html")
.addAsResource(JsfStressTest.class.getPackage(), "template.xhtml", "template.xhtml")
.addAsWebInfResource(JsfStressTest.class.getPackage(), "web.xml", "web.xml")
.addAsWebInfResource(JsfStressTest.class.getPackage(), "faces-config.xml", "faces-config.xml")
.addAsWebResource(JsfStressTest.class.getPackage(), "home.xhtml", "home.xhtml")
.addAsWebResource(JsfStressTest.class.getPackage(), "index.html", "index.html")
.addAsWebResource(JsfStressTest.class.getPackage(), "template.xhtml", "template.xhtml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
}

// WELD-676
@Category(Broken.class)

@Test
@PerfTest(invocations = 500)
public void testJsfApp() throws Exception {
Expand Down

0 comments on commit 4ecffec

Please sign in to comment.