use of com.coveros.selenified.utilities.Hub in project selenified by Coveros.
the class HubTest method defaultGetHubOverrideEmptyTest.
@Test(expectedExceptions = InvalidHubException.class)
public void defaultGetHubOverrideEmptyTest() throws IOException {
System.setProperty(HUB, "");
createPropertiesFile(HUB + "=somehub");
new Hub().getHubURL();
}
use of com.coveros.selenified.utilities.Hub in project selenified by Coveros.
the class HubTest method defaultGetHubFileBadTest.
@Test(expectedExceptions = InvalidHubException.class)
public void defaultGetHubFileBadTest() throws IOException {
createPropertiesFile(HUB + "=somehub");
new Hub().getHubURL();
}
use of com.coveros.selenified.utilities.Hub in project selenified by Coveros.
the class HubTest method defaultGetHubOverrideBadTest.
@Test(expectedExceptions = InvalidHubException.class)
public void defaultGetHubOverrideBadTest() throws IOException {
System.setProperty(HUB, "somehub");
createPropertiesFile(HUB + "=");
new Hub().getHubURL();
}
use of com.coveros.selenified.utilities.Hub in project selenified by Coveros.
the class HubTest method getKeyOnlyKeyTest.
@Test(expectedExceptions = InvalidHubException.class)
public void getKeyOnlyKeyTest() throws MalformedURLException {
System.setProperty(HUB, "https://sauceaccesskey@ondemand.saucelabs.com:443");
new Hub().getPassword();
}
use of com.coveros.selenified.utilities.Hub in project selenified by Coveros.
the class HubTest method getUserNoUserTest.
@Test
public void getUserNoUserTest() throws MalformedURLException {
System.setProperty(HUB, "https://ondemand.saucelabs.com:443");
assertEquals(new Hub().getHubURL(), new URL("https://ondemand.saucelabs.com:443/wd/hub"));
assertNull(new Hub().getUsername());
assertNull(new Hub().getPassword());
}
Aggregations