Package org.jboss.test.faces.htmlunit

Examples of org.jboss.test.faces.htmlunit.HtmlUnitEnvironment


    protected HtmlUnitEnvironment environment;

    @Before
    public void setUp() throws URISyntaxException {
        environment = new HtmlUnitEnvironment();
        environment.withWebRoot(new File(this.getClass().getResource(".").toURI()));
        environment.start();

        environment.getWebClient().setJavaScriptEnabled(false);
    }
View Full Code Here


import com.gargoylesoftware.htmlunit.html.HtmlPage;

public class DropDownMenuRendererTest extends RendererTestBase {
    @Override
    public void setUp() throws URISyntaxException {
        environment = new HtmlUnitEnvironment();
        environment.withWebRoot(new File(this.getClass().getResource(".").toURI()));
        environment.withResource("/WEB-INF/faces-config.xml", "org/richfaces/component/faces-config.xml");
        environment.start();
    }
View Full Code Here

    public static String WITH_CONTROLS = "WithControls";
    public static String DEFAULT = "Default";

    @Override
    public void setUp() throws URISyntaxException {
        environment = new HtmlUnitEnvironment();
        environment.withWebRoot(new File(this.getClass().getResource(".").toURI()));
        environment.withResource("/WEB-INF/faces-config.xml", "org/richfaces/renderkit/faces-config.xml");
        environment.start();
    }
View Full Code Here

public class PopupRendererTest {
    private HtmlUnitEnvironment environment;

    @Before
    public void setUp() {
        environment = new HtmlUnitEnvironment();
        environment.withWebRoot(new File("src/test/resources"));
        environment.start();
    }
View Full Code Here

import com.gargoylesoftware.htmlunit.html.HtmlPage;

public class MenuItemRendererTest extends RendererTestBase {
    @Override
    public void setUp() throws URISyntaxException {
        environment = new HtmlUnitEnvironment();
        environment.withWebRoot(new File(this.getClass().getResource(".").toURI()));
        environment.withResource("/WEB-INF/faces-config.xml", "org/richfaces/component/faces-config.xml");
        environment.start();
    }
View Full Code Here

        super();
    }

    @Before
    public void setUp() {
        this.environment = new HtmlUnitEnvironment();
        this.environment.withResource("/" + getPageName() + ".xhtml", "org/richfaces/component/" + getPageName() + ".xhtml")
            .withResource("/WEB-INF/faces-config.xml", "org/richfaces/component/" + getFacesConfig());
        setupEnvironment(environment);
        this.environment.start();
    }
View Full Code Here

    protected HtmlUnitEnvironment facesEnvironment;
    private StringBuilder loggedJavaScript = new StringBuilder();

    @Before
    public void setUp() throws Exception {
        facesEnvironment = new HtmlUnitEnvironment();

        ApplicationServer facesServer = facesEnvironment.getServer();
        facesServer.addResource("/resources/" + SIMULATION_SCRIPT_NAME, "org/ajax4jsf/component/" + SIMULATION_SCRIPT_NAME);
        facesServer.addResource("/resources/" + QUEUEAJAX_SCRIPT_NAME, "org/ajax4jsf/component/" + QUEUEAJAX_SCRIPT_NAME);
        facesServer.addResource("/test.xhtml", "org/ajax4jsf/component/test.xhtml");
View Full Code Here

        }
    };

    @Before
    public void setUp() throws Exception {
        facesEnvironment = new HtmlUnitEnvironment();

        ApplicationServer facesServer = facesEnvironment.getServer();
        facesServer.addResource("/queue.xhtml", "org/richfaces/component/queue.xhtml");
        facesServer.addResource("/nonQueue.xhtml", "org/richfaces/component/nonQueue.xhtml");
View Full Code Here

public class NestedRepeatTest {
    private HtmlUnitEnvironment environment;

    @Before
    public void setUp() throws Exception {
        environment = new HtmlUnitEnvironment();
        environment.withWebRoot(new File(this.getClass().getResource(".").toURI()));
        environment.withResource("/WEB-INF/faces-config.xml", "org/richfaces/component/faces-config.xml");
        environment.start();

        environment.getServer().getSession().setAttribute("dataBean", new DataBean());
View Full Code Here

TOP

Related Classes of org.jboss.test.faces.htmlunit.HtmlUnitEnvironment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.