// Path: src/main/java/com/github/webdriverextensions/WebDriverProperties.java
// public class WebDriverProperties {
//     public static final String CHROME_DRIVER_PROPERTY_NAME = "webdriver.chrome.driver";
//     public static final String CHROME_BINARY_PROPERTY_NAME = "chrome.binary.path";
//     public static final String FIREFOX_DRIVER_PROPERTY_NAME = "webdriver.gecko.driver";
//     public static final String IE_DRIVER_PROPERTY_NAME = "webdriver.ie.driver";
//     public static final String PHANTOMJS_BINARY_PROPERTY_NAME = "phantomjs.binary.path";
//     public static final String OPERA_DRIVER_PROPERTY_NAME = "webdriver.opera.driver";
//     public static final String EDGE_DRIVER_PROPERTY_NAME = "webdriver.edge.driver";
//     public static final String DISABLED_BROWSERS_PROPERTY_NAME = "webdriverextensions.disabledbrowsers";
// }


import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
import org.junit.Test;
import com.github.webdriverextensions.WebDriverProperties;
package com.github.webdriverextensions.junitrunner;



public class DisabledBrowserTest {

    @Test
    public void testParseDisabledBrowserSring() {
	assertThat(WebDriverRunner.parseDisabledBrowserString("").size(), is(0));

	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox").size(), is(1));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox"), hasItem("firefox"));
	
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox,chrome").size(), is(2));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox,chrome"), hasItem("firefox"));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox,chrome"), hasItem("chrome"));
    
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox , chrome").size(), is(2));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox , chrome"), hasItem("firefox"));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox , chrome"), hasItem("chrome"));
    }
    
    @Test
    public void testGetDisabledBrowsers() {
// Path: src/main/java/com/github/webdriverextensions/WebDriverProperties.java
// public class WebDriverProperties {
//     public static final String CHROME_DRIVER_PROPERTY_NAME = "webdriver.chrome.driver";
//     public static final String CHROME_BINARY_PROPERTY_NAME = "chrome.binary.path";
//     public static final String FIREFOX_DRIVER_PROPERTY_NAME = "webdriver.gecko.driver";
//     public static final String IE_DRIVER_PROPERTY_NAME = "webdriver.ie.driver";
//     public static final String PHANTOMJS_BINARY_PROPERTY_NAME = "phantomjs.binary.path";
//     public static final String OPERA_DRIVER_PROPERTY_NAME = "webdriver.opera.driver";
//     public static final String EDGE_DRIVER_PROPERTY_NAME = "webdriver.edge.driver";
//     public static final String DISABLED_BROWSERS_PROPERTY_NAME = "webdriverextensions.disabledbrowsers";
// }


// Path: src/test/java/com/github/webdriverextensions/junitrunner/DisabledBrowserTest.java
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
import org.junit.Test;
import com.github.webdriverextensions.WebDriverProperties;

package com.github.webdriverextensions.junitrunner;



public class DisabledBrowserTest {

    @Test
    public void testParseDisabledBrowserSring() {
	assertThat(WebDriverRunner.parseDisabledBrowserString("").size(), is(0));

	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox").size(), is(1));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox"), hasItem("firefox"));
	
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox,chrome").size(), is(2));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox,chrome"), hasItem("firefox"));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox,chrome"), hasItem("chrome"));
    
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox , chrome").size(), is(2));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox , chrome"), hasItem("firefox"));
	assertThat(WebDriverRunner.parseDisabledBrowserString("firefox , chrome"), hasItem("chrome"));
    }
    
    @Test
    public void testGetDisabledBrowsers() {
	System.setProperty(WebDriverProperties.DISABLED_BROWSERS_PROPERTY_NAME, "firefox");