diff --git a/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java b/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java index 99f27f56e8c8d..d839727779800 100644 --- a/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java +++ b/java/test/org/openqa/selenium/ExecutingAsyncJavascriptTest.java @@ -32,7 +32,6 @@ import org.junit.Test; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NotYetImplemented; import java.time.Duration; @@ -277,7 +276,6 @@ public void shouldBeAbleToPassMultipleArgumentsToAsyncScripts() { } @Test - @NeedsLocalEnvironment(reason = "Relies on timing") public void shouldBeAbleToMakeXMLHttpRequestsAndWaitForTheResponse() { String script = "var url = arguments[0];" + @@ -315,7 +313,6 @@ public void shouldBeAbleToMakeXMLHttpRequestsAndWaitForTheResponse() { @Ignore(IE) @Ignore(FIREFOX) @Ignore(value = SAFARI, reason = "Does not support alerts yet") - @NeedsLocalEnvironment(reason = "Relies on timing") public void throwsIfScriptTriggersAlert() { driver.get(pages.simpleTestPage); driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(5000)); @@ -332,7 +329,6 @@ public void throwsIfScriptTriggersAlert() { @Ignore(IE) @Ignore(FIREFOX) @Ignore(value = SAFARI, reason = "Does not support alerts yet") - @NeedsLocalEnvironment(reason = "Relies on timing") public void throwsIfAlertHappensDuringScript() { driver.get(pages.slowLoadingAlertPage); driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(5000)); @@ -348,7 +344,6 @@ public void throwsIfAlertHappensDuringScript() { @Ignore(IE) @Ignore(FIREFOX) @Ignore(value = SAFARI, reason = "Does not support alerts yet") - @NeedsLocalEnvironment(reason = "Relies on timing") public void throwsIfScriptTriggersAlertWhichTimesOut() { driver.get(pages.simpleTestPage); driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(5000)); @@ -365,7 +360,6 @@ public void throwsIfScriptTriggersAlertWhichTimesOut() { @Ignore(IE) @Ignore(FIREFOX) @Ignore(value = SAFARI, reason = "Does not support alerts yet") - @NeedsLocalEnvironment(reason = "Relies on timing") public void throwsIfAlertHappensDuringScriptWhichTimesOut() { driver.get(pages.slowLoadingAlertPage); driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(5000)); @@ -381,7 +375,6 @@ public void throwsIfAlertHappensDuringScriptWhichTimesOut() { @Ignore(IE) @Ignore(FIREFOX) @Ignore(value = SAFARI, reason = "Does not support alerts yet") - @NeedsLocalEnvironment(reason = "Relies on timing") public void includesAlertTextInUnhandledAlertException() { driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(5000)); String alertText = "Look! An alert!"; diff --git a/java/test/org/openqa/selenium/FrameSwitchingTest.java b/java/test/org/openqa/selenium/FrameSwitchingTest.java index 4c590e80e00f0..44c47f3746dd5 100644 --- a/java/test/org/openqa/selenium/FrameSwitchingTest.java +++ b/java/test/org/openqa/selenium/FrameSwitchingTest.java @@ -35,7 +35,6 @@ import org.junit.Test; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NotYetImplemented; import java.util.Random; @@ -71,7 +70,6 @@ public void testShouldNotAutomaticallySwitchFocusToAnIFrameWhenAPageContainingTh } @Test(timeout = 10000) - @NeedsLocalEnvironment(reason = "it hangs at IE9 and event Test.timeout doesn't help") public void testShouldOpenPageWithBrokenFrameset() { driver.get(appServer.whereIs("framesetPage3.html")); diff --git a/java/test/org/openqa/selenium/ImplicitWaitTest.java b/java/test/org/openqa/selenium/ImplicitWaitTest.java index 82ec1404246a4..c78a9d783558e 100644 --- a/java/test/org/openqa/selenium/ImplicitWaitTest.java +++ b/java/test/org/openqa/selenium/ImplicitWaitTest.java @@ -31,14 +31,11 @@ import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NotYetImplemented; import java.time.Duration; import java.util.List; -@NeedsLocalEnvironment(reason = - "Executing these tests over the wire doesn't work, because they relies on 100ms-specific timing") public class ImplicitWaitTest extends JUnit4TestBase { @Before diff --git a/java/test/org/openqa/selenium/PageLoadingTest.java b/java/test/org/openqa/selenium/PageLoadingTest.java index 39f7152be9c32..67417ef5be0f8 100644 --- a/java/test/org/openqa/selenium/PageLoadingTest.java +++ b/java/test/org/openqa/selenium/PageLoadingTest.java @@ -42,7 +42,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; import org.openqa.selenium.testing.NeedsFreshDriver; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NoDriverAfterTest; import org.openqa.selenium.testing.NoDriverBeforeTest; import org.openqa.selenium.testing.NotYetImplemented; @@ -67,7 +66,6 @@ public void shouldSetAndGetPageLoadTimeout() { } @Test - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest public void testNoneStrategyShouldNotWaitForPageToLoad() { @@ -86,7 +84,6 @@ public void testNoneStrategyShouldNotWaitForPageToLoad() { } @Test - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest @Ignore(value = CHROME, reason = "Flaky") @@ -111,7 +108,6 @@ public void testNoneStrategyShouldNotWaitForPageToRefresh() { } @Test - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest public void testEagerStrategyShouldNotWaitForResources() { @@ -133,7 +129,6 @@ public void testEagerStrategyShouldNotWaitForResources() { } @Test - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest public void testEagerStrategyShouldNotWaitForResourcesOnRefresh() { @@ -350,7 +345,6 @@ public void testShouldNotHangIfDocumentOpenCallIsNeverFollowedByDocumentCloseCal @Test @Ignore(LEGACY_FIREFOX_XPI) @NotYetImplemented(SAFARI) - @NeedsLocalEnvironment public void testPageLoadTimeoutCanBeChanged() { testPageLoadTimeoutIsEnforced(2); testPageLoadTimeoutIsEnforced(3); @@ -359,7 +353,6 @@ public void testPageLoadTimeoutCanBeChanged() { @Test @Ignore(LEGACY_FIREFOX_XPI) @NotYetImplemented(SAFARI) - @NeedsLocalEnvironment public void testCanHandleSequentialPageLoadTimeouts() { long pageLoadTimeout = 2; long pageLoadTimeBuffer = 10; @@ -369,7 +362,6 @@ public void testCanHandleSequentialPageLoadTimeouts() { } @Test - @NeedsLocalEnvironment public void testShouldTimeoutIfAPageTakesTooLongToLoad() { try { testPageLoadTimeoutIsEnforced(2); @@ -386,7 +378,6 @@ public void testShouldTimeoutIfAPageTakesTooLongToLoad() { @Ignore(value = LEGACY_FIREFOX_XPI, travis = true) @Ignore(HTMLUNIT) @Ignore(value = SAFARI, reason = "Flaky") - @NeedsLocalEnvironment public void testShouldTimeoutIfAPageTakesTooLongToLoadAfterClick() { driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(2)); @@ -415,7 +406,6 @@ public void testShouldTimeoutIfAPageTakesTooLongToLoadAfterClick() { } @Test - @NeedsLocalEnvironment @Ignore(value = CHROME, reason = "Flaky") @Ignore(value = EDGE, reason = "Flaky") public void testShouldTimeoutIfAPageTakesTooLongToRefresh() { @@ -452,7 +442,6 @@ public void testShouldTimeoutIfAPageTakesTooLongToRefresh() { @NotYetImplemented(EDGE) @NotYetImplemented(value = SAFARI) @NotYetImplemented(HTMLUNIT) - @NeedsLocalEnvironment public void testShouldNotStopLoadingPageAfterTimeout() { try { testPageLoadTimeoutIsEnforced(1); diff --git a/java/test/org/openqa/selenium/ProxySettingTest.java b/java/test/org/openqa/selenium/ProxySettingTest.java index 917b79ebf87c9..8f1d3e40db9ed 100644 --- a/java/test/org/openqa/selenium/ProxySettingTest.java +++ b/java/test/org/openqa/selenium/ProxySettingTest.java @@ -41,7 +41,6 @@ import org.openqa.selenium.remote.http.HttpResponse; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NoDriverAfterTest; import org.openqa.selenium.testing.NoDriverBeforeTest; import org.openqa.selenium.testing.Safely; @@ -78,7 +77,6 @@ public void tearDown() { @Test @Ignore(SAFARI) - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest public void canConfigureManualHttpProxy() { @@ -92,7 +90,6 @@ public void canConfigureManualHttpProxy() { @Test @Ignore(SAFARI) - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest public void canConfigureNoProxy() { @@ -110,7 +107,6 @@ public void canConfigureNoProxy() { @Test @Ignore(SAFARI) - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest public void canConfigureProxyThroughPACFile() { @@ -132,7 +128,6 @@ public void canConfigureProxyThroughPACFile() { @Test @Ignore(SAFARI) - @NeedsLocalEnvironment @NoDriverBeforeTest @NoDriverAfterTest @Ignore(value = FIREFOX, travis = true) diff --git a/java/test/org/openqa/selenium/ReferrerTest.java b/java/test/org/openqa/selenium/ReferrerTest.java index 8ea54f3a25349..1b062e7bfc6c1 100644 --- a/java/test/org/openqa/selenium/ReferrerTest.java +++ b/java/test/org/openqa/selenium/ReferrerTest.java @@ -33,7 +33,6 @@ import org.openqa.selenium.remote.http.HttpResponse; import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.testing.Ignore; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.SeleniumTestRule; import org.openqa.selenium.testing.SeleniumTestRunner; @@ -138,7 +137,6 @@ private WebDriver createDriver(String pacUrl) { * does not have a proxy configured. */ @Test - @NeedsLocalEnvironment public void basicHistoryNavigationWithoutAProxy() { String page1Url = server1.whereIs(PAGE_1 + "?next=" + encode(server1.whereIs(PAGE_2))); String page2Url = server1.whereIs(PAGE_2 + "?next=" + encode(server1.whereIs(PAGE_3))); @@ -155,7 +153,6 @@ public void basicHistoryNavigationWithoutAProxy() { * Tests navigation across multiple domains when the browser does not have a proxy configured. */ @Test - @NeedsLocalEnvironment @Ignore(value = CHROME, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") @Ignore(value = FIREFOX, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") public void crossDomainHistoryNavigationWithoutAProxy() { @@ -177,7 +174,6 @@ public void crossDomainHistoryNavigationWithoutAProxy() { * configured to use a proxy that permits direct access to that domain. */ @Test - @NeedsLocalEnvironment public void basicHistoryNavigationWithADirectProxy() { proxyServer.setPacFileContents("function FindProxyForURL(url, host) { return 'DIRECT'; }"); WebDriver driver = createDriver(proxyServer.whereIs("/pac.js")); @@ -199,7 +195,6 @@ public void basicHistoryNavigationWithADirectProxy() { * permits direct access to those domains. */ @Test - @NeedsLocalEnvironment @Ignore(value = CHROME, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") @Ignore(value = FIREFOX, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") public void crossDomainHistoryNavigationWithADirectProxy() { @@ -224,7 +219,6 @@ public void crossDomainHistoryNavigationWithADirectProxy() { * redirects the second domain to another host. */ @Test - @NeedsLocalEnvironment @Ignore(value = CHROME, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") @Ignore(value = FIREFOX, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") public void crossDomainHistoryNavigationWithAProxiedHost() { @@ -256,7 +250,6 @@ public void crossDomainHistoryNavigationWithAProxiedHost() { * to connect directly to the target server. */ @Test - @NeedsLocalEnvironment @Ignore(value = CHROME, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") @Ignore(value = FIREFOX, reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default") public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() { @@ -291,7 +284,6 @@ public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() { reason = "IEDriver does not disable automatic proxy caching, causing this test to fail, issue 6629") @Ignore(FIREFOX) @Ignore(value = LEGACY_FIREFOX_XPI, travis = true) - @NeedsLocalEnvironment @Ignore(value = CHROME, reason = "Flaky") public void navigationWhenProxyInterceptsASpecificUrl() { // Have our proxy intercept requests for page 2. diff --git a/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java b/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java index eac3bdcae44db..d5ca7e95e6ae5 100644 --- a/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java +++ b/java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java @@ -32,12 +32,10 @@ import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NoDriverBeforeTest; import java.time.Duration; -@NeedsLocalEnvironment(reason = "Requires local browser launching environment") @Ignore(value = SAFARI, reason = "Does not support alerts yet") public class UnexpectedAlertBehaviorTest extends JUnit4TestBase { diff --git a/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java b/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java index 8e7db822cf947..408d2979cdd5c 100644 --- a/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java +++ b/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java @@ -28,7 +28,6 @@ import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.build.InProject; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.TestUtilities; import java.io.IOException; @@ -49,7 +48,6 @@ public void tearDown() { } } - @NeedsLocalEnvironment @Test public void canStartChromeWithCustomOptions() { ChromeOptions options = new ChromeOptions(); @@ -64,7 +62,6 @@ public void canStartChromeWithCustomOptions() { assertThat(userAgent).isEqualTo("foo;bar"); } - @NeedsLocalEnvironment @Test public void optionsStayEqualAfterSerialization() { ChromeOptions options1 = new ChromeOptions(); @@ -74,7 +71,6 @@ public void optionsStayEqualAfterSerialization() { assertThat(options2).isEqualTo(options1); } - @NeedsLocalEnvironment @Test public void canSetAcceptInsecureCerts() { ChromeOptions options = new ChromeOptions(); @@ -87,7 +83,6 @@ public void canSetAcceptInsecureCerts() { assertThat(driver.getCapabilities().getCapability(ACCEPT_INSECURE_CERTS)).isEqualTo(true); } - @NeedsLocalEnvironment @Test public void canAddExtensionFromFile() { ChromeOptions options = new ChromeOptions(); @@ -106,7 +101,6 @@ public void canAddExtensionFromFile() { new WebDriverWait(driver, Duration.ofSeconds(10)).until(titleIs("clicks")); } - @NeedsLocalEnvironment @Test public void canAddExtensionFromStringEncodedInBase64() throws IOException { ChromeOptions options = new ChromeOptions(); diff --git a/java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java b/java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java index b344d693b6148..e365d928106fb 100644 --- a/java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java +++ b/java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java @@ -45,7 +45,6 @@ import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; import org.openqa.selenium.testing.NeedsFreshDriver; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NoDriverAfterTest; import org.openqa.selenium.testing.NotYetImplemented; import org.openqa.selenium.testing.drivers.WebDriverBuilder; @@ -75,7 +74,6 @@ import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; -@NeedsLocalEnvironment(reason = "Requires local browser launching environment") public class FirefoxDriverTest extends JUnit4TestBase { private FirefoxDriver localDriver; diff --git a/java/test/org/openqa/selenium/ie/InternetExplorerDriverTest.java b/java/test/org/openqa/selenium/ie/InternetExplorerDriverTest.java index 2570413bd8515..053dbaa1095b9 100644 --- a/java/test/org/openqa/selenium/ie/InternetExplorerDriverTest.java +++ b/java/test/org/openqa/selenium/ie/InternetExplorerDriverTest.java @@ -25,7 +25,6 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NoDriverAfterTest; import org.openqa.selenium.testing.NoDriverBeforeTest; import org.openqa.selenium.testing.drivers.WebDriverBuilder; @@ -35,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openqa.selenium.ie.InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING; -@NeedsLocalEnvironment(reason = "Requires local browser launching environment") public class InternetExplorerDriverTest extends JUnit4TestBase { @Test @@ -65,7 +63,6 @@ public void canStartMultipleIeDriverInstances() { @NoDriverBeforeTest @NoDriverAfterTest - @NeedsLocalEnvironment @Test public void testPersistentHoverCanBeTurnedOff() throws Exception { createNewDriver(new ImmutableCapabilities(ENABLE_PERSISTENT_HOVERING, false)); diff --git a/java/test/org/openqa/selenium/logging/GetLogsTest.java b/java/test/org/openqa/selenium/logging/GetLogsTest.java index de6ce5d6d9c54..09dabd1219ca6 100644 --- a/java/test/org/openqa/selenium/logging/GetLogsTest.java +++ b/java/test/org/openqa/selenium/logging/GetLogsTest.java @@ -32,7 +32,6 @@ import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.drivers.WebDriverBuilder; import java.util.HashMap; @@ -116,7 +115,6 @@ private static boolean hasOverlappingLogEntries(LogEntries firstLog, LogEntries } @Test - @NeedsLocalEnvironment public void turningOffLogShouldMeanNoLogMessages() { Set logTypes = driver.manage().logs().getAvailableLogTypes(); for (String logType : logTypes) { diff --git a/java/test/org/openqa/selenium/opera/OperaOptionsFunctionalTest.java b/java/test/org/openqa/selenium/opera/OperaOptionsFunctionalTest.java index 73b0eedbfdba4..f6415f6f8002d 100644 --- a/java/test/org/openqa/selenium/opera/OperaOptionsFunctionalTest.java +++ b/java/test/org/openqa/selenium/opera/OperaOptionsFunctionalTest.java @@ -22,7 +22,6 @@ import org.junit.After; import org.junit.Test; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; /** * Functional tests for {@link OperaOptions}. @@ -37,7 +36,6 @@ public void tearDown() { } } - @NeedsLocalEnvironment @Test public void canStartOperaWithCustomOptions() { OperaOptions options = new OperaOptions(); @@ -49,7 +47,6 @@ public void canStartOperaWithCustomOptions() { assertThat(userAgent).isEqualTo("foo;bar"); } - @NeedsLocalEnvironment @Test public void optionsStayEqualAfterSerialization() { OperaOptions options1 = new OperaOptions(); diff --git a/java/test/org/openqa/selenium/safari/CleanSessionTest.java b/java/test/org/openqa/selenium/safari/CleanSessionTest.java index 595a88c4a9673..d0bbf61643566 100644 --- a/java/test/org/openqa/selenium/safari/CleanSessionTest.java +++ b/java/test/org/openqa/selenium/safari/CleanSessionTest.java @@ -28,9 +28,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; -@NeedsLocalEnvironment(reason = "Requires local browser launching environment") public class CleanSessionTest extends JUnit4TestBase { private static final Cookie COOKIE = new Cookie("foo", "bar"); diff --git a/java/test/org/openqa/selenium/safari/CrossDomainTest.java b/java/test/org/openqa/selenium/safari/CrossDomainTest.java index 177d114a83184..cff1bcfcd5712 100644 --- a/java/test/org/openqa/selenium/safari/CrossDomainTest.java +++ b/java/test/org/openqa/selenium/safari/CrossDomainTest.java @@ -29,13 +29,11 @@ import org.openqa.selenium.environment.webserver.NettyAppServer; import org.openqa.selenium.support.ui.ExpectedCondition; import org.openqa.selenium.testing.JUnit4TestBase; -import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.Pages; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -@NeedsLocalEnvironment(reason = "Uses a local server") public class CrossDomainTest extends JUnit4TestBase { private static AppServer otherServer; diff --git a/java/test/org/openqa/selenium/testing/BUILD.bazel b/java/test/org/openqa/selenium/testing/BUILD.bazel index f5752a6e6f152..3558f6b483e7a 100644 --- a/java/test/org/openqa/selenium/testing/BUILD.bazel +++ b/java/test/org/openqa/selenium/testing/BUILD.bazel @@ -20,7 +20,6 @@ java_library( "Ignore.java", "IgnoreList.java", "NeedsFreshDriver.java", - "NeedsLocalEnvironment.java", "NoDriverAfterTest.java", "NoDriverBeforeTest.java", "NotYetImplemented.java", diff --git a/java/test/org/openqa/selenium/testing/NeedsLocalEnvironment.java b/java/test/org/openqa/selenium/testing/NeedsLocalEnvironment.java deleted file mode 100644 index eb52a45393c51..0000000000000 --- a/java/test/org/openqa/selenium/testing/NeedsLocalEnvironment.java +++ /dev/null @@ -1,30 +0,0 @@ -// Licensed to the Software Freedom Conservancy (SFC) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The SFC licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -package org.openqa.selenium.testing; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.METHOD, ElementType.TYPE}) -public @interface NeedsLocalEnvironment { - - String reason() default ""; -}