Package net.jsunit.configuration

Source Code of net.jsunit.configuration.RemoteConfigurationTest

package net.jsunit.configuration;

import junit.framework.TestCase;
import net.jsunit.RemoteConfigurationSource;

import java.net.URL;

public class RemoteConfigurationTest extends TestCase {

    public void testSimple() throws Exception {
        URL url = new URL("http://www.example.com");
        RemoteConfigurationSource source = new DummyRemoteConfigurationSource(url.toString());
        RemoteConfiguration configuration = new RemoteConfiguration(url, source);

        assertEquals(url.toString(), configuration.getRemoteURL().toString());
        assertTrue(new ServerConfiguration(source).equals(configuration));
    }

}
TOP

Related Classes of net.jsunit.configuration.RemoteConfigurationTest

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.