Skip to content

Commit

Permalink
Sorting more RC and WDBS tests around
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Oct 29, 2014
1 parent dbb21c6 commit 1b8e7c0
Show file tree
Hide file tree
Showing 21 changed files with 5,179 additions and 5,231 deletions.
10,280 changes: 5,140 additions & 5,140 deletions cpp/iedriver/Generated/atoms.h

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ignores.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/


package org.openqa.selenium.v1;
package com.thoughtworks.selenium;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertArrayEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/


package org.openqa.selenium.v1.remotecontrol;
package com.thoughtworks.selenium;

import com.thoughtworks.selenium.DefaultSelenium;

Expand All @@ -32,7 +32,7 @@
public class StabilityTest {

@Test
public void retrievelastRemoteControlLogsDoesNotTriggerOutOfMemoryErrors() {
public void retrieveLastRemoteControlLogsDoesNotTriggerOutOfMemoryErrors() {
final DefaultSelenium seleniumDriver;

seleniumDriver = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost:4444");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

import com.thoughtworks.selenium.BaseSuite;
import com.thoughtworks.selenium.corebased.SeleniumMouseTest;
import com.thoughtworks.selenium.corebased.TestAddLocationStrategy;
import com.thoughtworks.selenium.corebased.TestAddSelection;
Expand Down
7 changes: 3 additions & 4 deletions java/client/test/com/thoughtworks/selenium/webdriven/BUCK
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
java_test(name = 'LargeTests',
srcs = [
'LargeTests.java',
'ScriptMutatorTest.java',
'WebDriverBackedSeleniumLargeTest.java',
],
deps = [
'//java/client/src/com/thoughtworks/selenium/webdriven:webdriven',
Expand All @@ -20,13 +22,10 @@ java_test(name = 'small-tests',
':tests',
'//third_party/java/junit:junit',
],
visibility = [
'//java/client/test/org/openqa/selenium/v1:small-tests',
],
)

java_library(name = 'tests',
srcs = glob(['*Test.java'], excludes = ['ScriptMutatorTest.java',]),
srcs = glob(['*Test.java'], excludes = ['ScriptMutatorTest.java','WebDriverBackedSeleniumLargeTest.java']),
deps = [
'//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api',
'//java/client/src/com/thoughtworks/selenium/webdriven:webdriven',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

import org.junit.Before;
import org.junit.Test;
import com.thoughtworks.selenium.webdriven.CompoundMutator;
import com.thoughtworks.selenium.webdriven.ScriptMutator;

import static org.junit.Assert.assertTrue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
limitations under the License.
*/

package org.openqa.selenium.v1;
package com.thoughtworks.selenium.webdriven;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;

import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;

import org.junit.Test;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@
* limitations under the License.
*/

package org.openqa.selenium.v1;
package com.thoughtworks.selenium.webdriven;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({
FastWebDriverBackedSeleniumTest.class,
WebDriverCommandProcessorTest.class,
com.thoughtworks.selenium.webdriven.SmallTests.class
ScriptMutatorTest.class,
WebDriverBackedSeleniumLargeTest.class
})
public class SmallTests {
public class LargeTests {
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static org.junit.Assert.assertEquals;

import com.thoughtworks.selenium.Selenium;
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;

import org.junit.Test;
import org.openqa.selenium.testing.JUnit4TestBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
@RunWith(Suite.class)
@Suite.SuiteClasses({
CompoundMutatorTest.class,
ScriptMutatorTest.class,
FastWebDriverBackedSeleniumTest.class,
TimerTest.class,
VariableDeclarationTest.class
VariableDeclarationTest.class,
WebDriverCommandProcessorTest.class
})
public class SmallTests {
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

import org.junit.Test;
import org.openqa.selenium.WebDriver;
import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Timer;

import static org.junit.Assert.fail;

Expand Down
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 com.thoughtworks.selenium.webdriven.VariableDeclaration;

import static org.junit.Assert.assertEquals;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
limitations under the License.
*/

package org.openqa.selenium.v1;
package com.thoughtworks.selenium.webdriven;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

import com.thoughtworks.selenium.Selenium;
import com.thoughtworks.selenium.webdriven.Wait;
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;

import org.junit.Before;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
limitations under the License.
*/

package org.openqa.selenium.v1;
package com.thoughtworks.selenium.webdriven;

import org.junit.Test;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.StubDriver;
import org.openqa.selenium.WebDriver;
import com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor;

import static org.junit.Assert.fail;

Expand Down
20 changes: 20 additions & 0 deletions java/client/test/com/thoughtworks/selenium/webdriven/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,33 @@
java_library(name = "small_tests",
srcs = [
"CompoundMutatorTest.java",
"FastWebDriverBackedSeleniumTest.java",
"SmallTests.java",
"TimerTest.java",
"VariableDeclarationTest.java",
"WebDriverCommandProcessorTest.java",
],
deps = [
"//java/client/src/com/thoughtworks/selenium:api",
"//java/client/src/org/openqa/selenium:webdriver-api",
"//java/client/src/com/thoughtworks/selenium/webdriven:webdriven",
"//java/client/test/org/openqa/selenium:base",
"//third_party/java/junit",
"//third_party/java/mockito",
])

java_library(name = "test-webdriver",
srcs = [
"LargeTests.java",
"ScriptMutatorTest.java",
"WebDriverBackedSeleniumLargeTest.java",
],
deps = [
"//java/client/src/com/thoughtworks/selenium/webdriven",
"//java/client/src/org/openqa/selenium:webdriver-api",
"//java/client/src/org/openqa/selenium/remote",
"//java/client/src/org/openqa/selenium/support",
"//java/client/test/org/openqa/selenium:base",
"//java/client/test/org/openqa/selenium/testing:junit_4",
"//third_party/java/junit",
])
2 changes: 1 addition & 1 deletion java/client/test/org/openqa/selenium/SmallTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
ZipTest.class,

org.openqa.selenium.support.SmallTests.class,
org.openqa.selenium.v1.SmallTests.class
com.thoughtworks.selenium.webdriven.SmallTests.class
})
public class SmallTests {}
2 changes: 1 addition & 1 deletion java/client/test/org/openqa/selenium/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ java_library(name = "tests",
"//java/client/src/org/openqa/selenium/net",
"//java/client/src/org/openqa/selenium/remote:common",
"//java/client/src/org/openqa/selenium/support/ui:wait",
"//java/client/test/com/thoughtworks/selenium/webdriven:small_tests",
"//java/client/test/org/openqa/selenium/environment",
"//java/client/test/org/openqa/selenium/testing:junit_4",
"//java/client/test/org/openqa/selenium/testing:proxy",
"//java/client/test/org/openqa/selenium/testing:util",
"//java/client/test/org/openqa/selenium/testing/drivers:tests",
"//java/client/test/org/openqa/selenium/support:tests",
"//java/client/test/org/openqa/selenium/v1:small_tests",
"//third_party/java/commons-io",
"//third_party/java/junit",
"//third_party/java/mockito",
Expand Down
29 changes: 0 additions & 29 deletions java/client/test/org/openqa/selenium/v1/BUCK

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.openqa.selenium.environment.webserver.Jetty7AppServer;
import org.openqa.selenium.testing.InProject;
import org.seleniumhq.jetty7.servlet.ServletContextHandler;
import org.seleniumhq.jetty7.webapp.WebAppContext;

public class SeleniumAppServer extends Jetty7AppServer {

Expand Down
30 changes: 0 additions & 30 deletions java/client/test/org/openqa/selenium/v1/build.desc
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@

java_library(name = "test-webdriver",
srcs = [
"internal/**/*.java",
"support/*.java",
],
deps = [
"//java/client/src/com/thoughtworks/selenium/webdriven",
"//java/client/src/org/openqa/selenium:webdriver-api",
"//java/client/src/org/openqa/selenium/remote",
"//java/client/src/org/openqa/selenium/support",
"//java/client/test/org/openqa/selenium:base",
"//java/client/test/org/openqa/selenium/testing:junit_4",
"//third_party/java/junit",
])

java_library(name = "environment",
srcs = [
"SeleniumTestEnvironment.java",
Expand All @@ -27,18 +12,3 @@ java_library(name = "environment",
"//java/server/test/org/openqa/selenium:server-with-tests:uber",
"//third_party/java/guava-libraries",
])

java_test(name = "small_tests",
srcs = [
"SmallTests.java",
"FastWebDriverBackedSeleniumTest.java",
"WebDriverCommandProcessorTest.java",
],
deps = [
"//java/client/src/org/openqa/selenium:base",
"//java/client/test/org/openqa/selenium:base",
"//java/client/test/org/openqa/selenium/testing:junit_4",
"//java/client/test/org/openqa/selenium/v1/internal/seleniumemulation:small_tests",
"//third_party/java/junit",
"//third_party/java/mockito",
])

0 comments on commit 1b8e7c0

Please sign in to comment.