assertThat(gui.noProxyList.getText(), is("localhost"));
}
@Test
public void shouldSetValuesOnConfigure() {
WebDriverConfig config = new WebDriverConfigImpl();
config.setProxyType(ProxyType.AUTO_DETECT);
config.setProxyPacUrl("pac-url");
config.setHttpHost("http-host");
config.setHttpPort(123);
config.setUseHttpSettingsForAllProtocols(false);
config.setHttpsHost("https-host");
config.setHttpPort(123);
config.setFtpHost("ftp-host");
config.setFtpPort(123);
config.setSocksHost("socks-host");
config.setSocksPort(123);
config.setNoProxyHost("host,otherhost");
gui.configure(config);
assertThat(gui.autoDetectProxy.isSelected(), is(true));
assertThat(gui.pacUrl.getText(), is(config.getProxyPacUrl()));
assertThat(gui.httpProxyHost.getText(), is(config.getHttpHost()));
assertThat(gui.httpProxyPort.getText(), is(String.valueOf(config.getHttpPort())));
assertThat(gui.useHttpSettingsForAllProtocols.isSelected(), is(config.isUseHttpSettingsForAllProtocols()));
assertThat(gui.httpsProxyHost.getText(), is(config.getHttpsHost()));
assertThat(gui.httpsProxyPort.getText(), is(String.valueOf(config.getHttpsPort())));
assertThat(gui.ftpProxyHost.getText(), is(config.getFtpHost()));
assertThat(gui.ftpProxyPort.getText(), is(String.valueOf(config.getFtpPort())));
assertThat(gui.socksProxyHost.getText(), is(config.getSocksHost()));
assertThat(gui.socksProxyPort.getText(), is(String.valueOf(config.getSocksPort())));
assertThat(gui.noProxyList.getText(), is(config.getNoProxyHost()));
}