Skip to content

Commit

Permalink
Removing tests for deleted method
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Feb 21, 2014
1 parent 6dcca1e commit 3056803
Showing 1 changed file with 0 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.io.FileHandler;
import org.openqa.selenium.io.TemporaryFilesystem;
import org.openqa.selenium.io.Zip;
Expand All @@ -33,10 +32,8 @@
import java.util.ArrayList;
import java.util.List;

import static org.hamcrest.Matchers.containsString;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;

public class FirefoxProfileTest {
Expand Down Expand Up @@ -81,47 +78,6 @@ public void shouldSetIntegerPreferences() throws Exception {
assertTrue("Did not see integer value being set correctly", seenCheese);
}

@Test
public void manualProxy() throws Exception {
profile.setProxyPreferences(
new Proxy()
.setHttpProxy("foo:123")
.setFtpProxy("bar:234")
.setSslProxy("baz:345")
.setNoProxy("localhost"));
List<String> prefLines = readGeneratedProperties(profile);
String prefs = new ArrayList<String>(prefLines).toString();
assertThat(prefs, containsString("network.proxy.http\", \"foo\""));
assertThat(prefs, containsString("network.proxy.http_port\", 123"));
assertThat(prefs, containsString("network.proxy.ftp\", \"bar\""));
assertThat(prefs, containsString("network.proxy.ftp_port\", 234"));
assertThat(prefs, containsString("network.proxy.ssl\", \"baz\""));
assertThat(prefs, containsString("network.proxy.ssl_port\", 345"));
assertThat(prefs, containsString("network.proxy.no_proxies_on\", \"localhost\""));
assertThat(prefs, containsString("network.proxy.type\", 1"));
}

@Test
public void proxyAutoconfigUrl() throws Exception {
profile.setProxyPreferences(
new Proxy()
.setProxyAutoconfigUrl("http://foo/bar.pac"));
List<String> prefLines = readGeneratedProperties(profile);
String prefs = new ArrayList<String>(prefLines).toString();
assertThat(prefs, containsString("network.proxy.autoconfig_url\", \"http://foo/bar.pac\""));
assertThat(prefs, containsString("network.proxy.type\", 2"));
}

@Test
public void proxyAutodetect() throws Exception {
profile.setProxyPreferences(
new Proxy()
.setAutodetect(true));
List<String> prefLines = readGeneratedProperties(profile);
String prefs = new ArrayList<String>(prefLines).toString();
assertThat(prefs, containsString("network.proxy.type\", 4"));
}

@Test
public void shouldSetBooleanPreferences() throws Exception {
profile.setPreference("cheese", false);
Expand Down

0 comments on commit 3056803

Please sign in to comment.