Commit 962376244daff36402fbb980dd08dbcafa2b1500
1 parent
ce21163d
Exists in
master
IN PROGRESS - issue FWK-120: Testes da extensão JSF (segurança +
mensagem + exceção) https://demoiselle.atlassian.net/browse/FWK-120
Showing
1 changed file
with
29 additions
and
29 deletions
Show diff stats
impl/extension/jsf/src/test/java/xxxx/XTest.java
1 | 1 | package xxxx; |
2 | 2 | |
3 | -import java.net.URL; | |
3 | +//import java.net.URL; | |
4 | 4 | |
5 | -import org.jboss.arquillian.container.test.api.Deployment; | |
6 | -import org.jboss.arquillian.drone.api.annotation.Drone; | |
7 | -import org.jboss.arquillian.junit.Arquillian; | |
8 | -import org.jboss.arquillian.test.api.ArquillianResource; | |
9 | -import org.jboss.shrinkwrap.api.spec.WebArchive; | |
10 | -import org.junit.Test; | |
11 | -import org.junit.runner.RunWith; | |
5 | +//import org.jboss.arquillian.container.test.api.Deployment; | |
6 | +//import org.jboss.arquillian.drone.api.annotation.Drone; | |
7 | +//import org.jboss.arquillian.junit.Arquillian; | |
8 | +//import org.jboss.arquillian.test.api.ArquillianResource; | |
9 | +//import org.jboss.shrinkwrap.api.spec.WebArchive; | |
10 | +//import org.junit.Test; | |
11 | +//import org.junit.runner.RunWith; | |
12 | 12 | |
13 | -import test.Tests; | |
13 | +//import test.Tests; | |
14 | 14 | |
15 | -import com.thoughtworks.selenium.DefaultSelenium; | |
15 | +//import com.thoughtworks.selenium.DefaultSelenium; | |
16 | 16 | |
17 | -@RunWith(Arquillian.class) | |
17 | +//@RunWith(Arquillian.class) | |
18 | 18 | public class XTest { |
19 | 19 | |
20 | - private static final String PATH = "src/test/resources/xxx"; | |
21 | - | |
22 | - @Drone | |
23 | - private DefaultSelenium browser; | |
24 | - | |
25 | - @ArquillianResource | |
26 | - private URL deploymentUrl; | |
27 | - | |
28 | - @Deployment(testable = false) | |
29 | - public static WebArchive createDeployment() { | |
30 | - return Tests.createDeployment().addClass(XServlet.class) | |
31 | - .addAsWebInfResource(Tests.createFileAsset(PATH + "/web.xml"), "web.xml"); | |
32 | - } | |
33 | - | |
34 | - @Test | |
35 | - public void xxxx() { | |
36 | - browser.open(deploymentUrl + "/login"); | |
20 | +// private static final String PATH = "src/test/resources/xxx"; | |
21 | +// | |
22 | +// @Drone | |
23 | +// private DefaultSelenium browser; | |
24 | +// | |
25 | +// @ArquillianResource | |
26 | +// private URL deploymentUrl; | |
27 | +// | |
28 | +// @Deployment(testable = false) | |
29 | +// public static WebArchive createDeployment() { | |
30 | +// return Tests.createDeployment().addClass(XServlet.class) | |
31 | +// .addAsWebInfResource(Tests.createFileAsset(PATH + "/web.xml"), "web.xml"); | |
32 | +// } | |
33 | +// | |
34 | +// @Test | |
35 | +// public void xxxx() { | |
36 | +// browser.open(deploymentUrl + "/login"); | |
37 | 37 | |
38 | 38 | // browser.type("id=xxx-input", "demo"); |
39 | 39 | // browser.waitForPageToLoad("15000"); |
... | ... | @@ -42,5 +42,5 @@ public class XTest { |
42 | 42 | // browser.isElementPresent("xpath=//li[contains(text(), 'Welcome')]")); |
43 | 43 | // assertTrue("Username should be shown!", |
44 | 44 | // browser.isElementPresent("xpath=//p[contains(text(), 'You are signed in as demo.')]")); |
45 | - } | |
45 | +// } | |
46 | 46 | } | ... | ... |