Package org.richfaces

Examples of org.richfaces.CustomizedHtmlUnitEnvironment


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

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

        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 CustomizedHtmlUnitEnvironment();

        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

    @Before
    public void setUp() throws Exception {
        setupTestBean();

        environment = new CustomizedHtmlUnitEnvironment();

        environment.withResource("/WEB-INF/classes/faces-config.xml",
            getClass().getResource("/org/richfaces/component/RepeatTest.faces-config.xml"));

        environment.withResource("/test.xhtml", getClass().getResource("/org/richfaces/component/RepeatTest.xhtml"));
View Full Code Here

        super();
    }

    @Before
    public void setUp() {
        this.environment = new CustomizedHtmlUnitEnvironment();
        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

import com.gargoylesoftware.htmlunit.html.HtmlTableDataCell;

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

public class DataGridRendererTest {
    private HtmlUnitEnvironment environment;

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

    private HtmlUnitEnvironment environment;
    private DataBean testBean;

    @Before
    public void setUp() {
        environment = new CustomizedHtmlUnitEnvironment();

        environment.withResource("/WEB-INF/faces-config.xml", "org/richfaces/renderkit/faces-config.xml");
        environment.withResource("/test.xhtml", "org/richfaces/renderkit/rendererTest.xhtml");

        environment.start();
View Full Code Here

public class PanelRendererTest {
    private HtmlUnitEnvironment environment;

    @Before
    public void setUp() {
        environment = new CustomizedHtmlUnitEnvironment();
        environment.withWebRoot(new File("src/test/resources"));
        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 CustomizedHtmlUnitEnvironment();
        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

    protected HtmlUnitEnvironment environment;

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

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

TOP

Related Classes of org.richfaces.CustomizedHtmlUnitEnvironment

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.