Package net.jsunit

Source Code of net.jsunit.RemoteConfigurationSourceFunctionalTest

package net.jsunit;

import net.jsunit.configuration.ServerConfiguration;
import net.jsunit.utility.XmlUtility;

public class RemoteConfigurationSourceFunctionalTest extends ServerFunctionalTestCase {

    public void testSimple() throws Exception {
        String remoteMachineURL = "http://localhost:" + port() + "/jsunit";
        RemoteConfigurationSource source = new RemoteConfigurationSource(new RemoteMachineServerHitter(), remoteMachineURL);
        assertTrue(source.isInitialized());
        ServerConfiguration remoteConfiguration = new ServerConfiguration(source);
        assertEquals(
                XmlUtility.asString(server.getConfiguration().asXml()),
                XmlUtility.asString(remoteConfiguration.asXml())
        );
    }

}
TOP

Related Classes of net.jsunit.RemoteConfigurationSourceFunctionalTest

TOP
Copyright © 2018 www.massapi.com. 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.