Package net.jsunit

Examples of net.jsunit.JsUnitServer


            "-resourceBase", "foo",
            "-logsDirectory", "bar",
            "-remoteMachineNames", "foo,bar",
            "-browserFileNames", "fu,bar"
        });
        JsUnitServer server = new JsUnitServer();
        ArgumentsConfiguration configuration = new ArgumentsConfiguration(args);
        configuration.configure(server);
        assertEquals(12345, server.getPort());
        assertEquals(new File("foo"), server.getResourceBase());
        assertEquals(new File("bar"), server.getLogsDirectory());
        assertEquals(Utility.listWith("fu", "bar"), server.getLocalBrowserFileNames());
        assertEquals("http://www.jsunit.net/", server.getTestURL().toString());
    }
View Full Code Here


public class PropertiesConfigurationTest extends TestCase {

    public void testNoFile() throws Exception {
        PropertiesFileConfiguration configuration = new PropertiesFileConfiguration("nosuch.file");
        try {
            configuration.configure(new JsUnitServer());
            fail("Should have through a Runtime because no properties file exists");
        } catch (RuntimeException e) {
        }
    }
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();
        System.setProperty(Configuration.BROWSER_FILE_NAMES, "c:\\program files\\internet explorer\\iexplore.exe");
        System.setProperty(Configuration.URL, "file:///c:/dev/jsunit/testRunner.html?testPage=c:\\dev\\jsunit\\tests\\jsUnitTestSuite.html&autoRun=true&submitresults=true");
        server = new JsUnitServer();
        server.initialize();
        server.start();
    }
View Full Code Here

TOP

Related Classes of net.jsunit.JsUnitServer

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.