Skip to content

Commit

Permalink
Moving Timer and Windows classes to webdriven api, they are not commands
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Mar 14, 2014
1 parent 0ed66ea commit 05af3e1
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 27 deletions.
2 changes: 2 additions & 0 deletions java/client/src/com/thoughtworks/selenium/webdriven/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ java_library(name = 'emulation-api',
'JavascriptLibrary.java',
'ScriptMutator.java',
'SeleneseCommand.java',
'Timer.java',
'Windows.java',
],
deps = [
'//java/client/src/com/thoughtworks/selenium:api',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
limitations under the License.
*/

package com.thoughtworks.selenium.webdriven.commands;
package com.thoughtworks.selenium.webdriven;

import com.thoughtworks.selenium.SeleniumException;
import com.thoughtworks.selenium.webdriven.SeleneseCommand;

import org.openqa.selenium.WebDriver;

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

package com.thoughtworks.selenium.webdriven.commands;
package com.thoughtworks.selenium.webdriven;

import com.google.common.collect.Maps;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ java_library(name = "emulation-api",
"ScriptMutator.java",
"SeleneseCommand.java",
"SeleniumMutator.java",
"Timer.java",
"VariableDeclaration.java",
"Windows.java",
],
deps = [
"//java/client/src/com/thoughtworks/selenium:api",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@

java_library(name = 'timer',
srcs = [ 'Timer.java' ],
deps = [
'//java/client/src/com/thoughtworks/selenium:api',
'//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api',
'//java/client/src/org/openqa/selenium:webdriver-api',
],
)


java_library(name = 'commands',
srcs = glob(['*.java'], excludes = ['Timer.java']),
exported_deps = [
':timer',
],
srcs = glob(['*.java']),
deps = [
'//java/client/src/com/thoughtworks/selenium:api',
'//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.thoughtworks.selenium.webdriven.commands;

import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Windows;

import org.openqa.selenium.WebDriver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.thoughtworks.selenium.webdriven.commands;

import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Windows;

import org.openqa.selenium.WebDriver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.thoughtworks.selenium.webdriven.commands;

import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Windows;

import org.openqa.selenium.WebDriver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.thoughtworks.selenium.webdriven.commands;

import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Windows;

import org.openqa.selenium.WebDriver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.thoughtworks.selenium.webdriven.commands;

import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Timer;

import org.openqa.selenium.WebDriver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.thoughtworks.selenium.SeleniumException;
import com.thoughtworks.selenium.Wait;
import com.thoughtworks.selenium.webdriven.SeleneseCommand;
import com.thoughtworks.selenium.webdriven.Windows;

import org.openqa.selenium.WebDriver;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@

java_library(name = "api",
srcs = [
"Timer.java",
],
deps = [
"//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api",
])


java_library(name = "commands",
srcs = [
"*.java",
],
deps = [
":api",
"//java/client/src/com/thoughtworks/selenium:wait",
"//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api",
"//java/client/src/org/openqa/selenium:webdriver-api",
"//java/client/src/org/openqa/selenium/interactions",
"//java/client/src/org/openqa/selenium/io",
Expand Down

0 comments on commit 05af3e1

Please sign in to comment.