package com.vaadin.tests.actions;
-import java.util.Collection;
+import java.util.List;
import org.junit.Assert;
import org.junit.Test;
// This method should be removed once #12785 is fixed
@Override
- public Collection<DesiredCapabilities> getBrowsersToTest() {
- Collection<DesiredCapabilities> browsers = super.getBrowsersToTest();
+ public List<DesiredCapabilities> getBrowsersToTest() {
+ List<DesiredCapabilities> browsers = super.getBrowsersToTest();
// sendKeys does nothing on these browsers
browsers.remove(BrowserUtil.firefox(24));
browsers.remove(BrowserUtil.ie(8));
*/
package com.vaadin.tests.push;
-import java.util.Collection;
+import java.util.List;
import org.openqa.selenium.remote.DesiredCapabilities;
public class BasicPushWebsocketTest extends BasicPushTest {
@Override
- public Collection<DesiredCapabilities> getBrowsersToTest() {
+ public List<DesiredCapabilities> getBrowsersToTest() {
return WebsocketTest.getWebsocketBrowsers();
}
}
\ No newline at end of file
package com.vaadin.tests.tb3;
import java.net.URL;
-import java.util.Collection;
import java.util.Collections;
+import java.util.List;
import java.util.logging.Logger;
import org.junit.After;
*
* @return The browsers to run the test on
*/
- public Collection<DesiredCapabilities> getBrowsersToTest() {
- return Collections.singleton(BrowserUtil
+ public List<DesiredCapabilities> getBrowsersToTest() {
+ return Collections.singletonList(BrowserUtil
.firefox(MultiBrowserTest.TESTED_FIREFOX_VERSION));
}
package com.vaadin.tests.tb3;
import java.util.ArrayList;
-import java.util.Collection;
+import java.util.Collections;
import java.util.List;
import org.openqa.selenium.remote.DesiredCapabilities;
// Re-enable this when it is possible to run on a modern Opera version
// (15+)
// allBrowsers.add(BrowserUtil.opera(15));
-
}
/**
* @return all supported browsers which are actively tested
*/
public static List<DesiredCapabilities> getAllBrowsers() {
- return allBrowsers;
+ return Collections.unmodifiableList(allBrowsers);
}
@Override
- public Collection<DesiredCapabilities> getBrowsersToTest() {
- return allBrowsers;
+ public List<DesiredCapabilities> getBrowsersToTest() {
+ // Return a copy so sub classes can do
+ // super.getBrowseresToTest().remove(something)
+ return new ArrayList<DesiredCapabilities>(getAllBrowsers());
}
}
package com.vaadin.tests.tb3;
import java.util.ArrayList;
-import java.util.Collection;
import java.util.Collections;
import java.util.List;
* @return All supported browsers which are actively tested and support
* websockets
*/
- public static Collection<DesiredCapabilities> getWebsocketBrowsers() {
- return Collections.unmodifiableCollection(websocketBrowsers);
+ public static List<DesiredCapabilities> getWebsocketBrowsers() {
+ return Collections.unmodifiableList(websocketBrowsers);
}
/*
* @see com.vaadin.tests.tb3.AbstractTB3Test#getBrowserToRunOn()
*/
@Override
- public Collection<DesiredCapabilities> getBrowsersToTest() {
- return getWebsocketBrowsers();
+ public List<DesiredCapabilities> getBrowsersToTest() {
+ return new ArrayList<DesiredCapabilities>(getWebsocketBrowsers());
}
}