Package org.openqa.selenium.server.cli

Source Code of org.openqa.selenium.server.cli.RemoteControlLauncherTest

package org.openqa.selenium.server.cli;

import junit.framework.TestCase;
import org.openqa.selenium.server.RemoteControlConfiguration;

/**
* {@link org.openqa.selenium.server.cli.RemoteControlLauncher} unit test class.
*/
public class RemoteControlLauncherTest extends TestCase {

    public void testHonorSystemProxyIsSetWhenProvidedAsAnOption() {
        final RemoteControlConfiguration configuration;
       
        configuration = RemoteControlLauncher.parseLauncherOptions(new String[]{"-honor-system-proxy"});
        assertTrue(configuration.honorSystemProxy());
    }

    public void testHonorSystemProxyIsFalseWhenNotProvidedAsAnOption() {
        final RemoteControlConfiguration configuration;

        configuration = RemoteControlLauncher.parseLauncherOptions(new String[]{});
        assertFalse(configuration.honorSystemProxy());
    }

}
TOP

Related Classes of org.openqa.selenium.server.cli.RemoteControlLauncherTest

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.