Package net.jsunit

Examples of net.jsunit.JsUnitAggregateServer


    private DistributedTestRunnerAction action;

    public void setUp() throws Exception {
        super.setUp();
        action = new DistributedTestRunnerAction();
        action.setAggregateServer(new JsUnitAggregateServer(new AggregateConfiguration(new DummyConfigurationSource())));
        action.setRemoteServerHitter(new SuccessfulRemoteServerHitter());
    }
View Full Code Here


public class AggregateConfigurationActionTest extends TestCase {

    public void testSimple() throws Exception {
        AggregateConfiguration configuration = new AggregateConfiguration(new DummyConfigurationSource());
        AggregateConfigurationAction action = new AggregateConfigurationAction();
        action.setAggregateServer(new JsUnitAggregateServer(configuration));

        assertEquals(Action.SUCCESS, action.execute());
        assertEquals(XmlUtility.asPrettyString(configuration.asXml()), XmlUtility.asPrettyString(action.asXml()));
    }
View Full Code Here

public class AggregateServerInterceptorTest extends TestCase {

    public void testSimple() throws Exception {
        MockAction action = new MockAction();
        JsUnitAggregateServer server = new JsUnitAggregateServer(new AggregateConfiguration(new DummyConfigurationSource()));
        assertNull(action.aggregateServer);
        AggregateServerInterceptor interceptor = new AggregateServerInterceptor();

        MockActionInvocation mockInvocation = new MockActionInvocation(action);
        interceptor.intercept(mockInvocation);
View Full Code Here

TOP

Related Classes of net.jsunit.JsUnitAggregateServer

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.