Skip to content

Commit

Permalink
[java] An attempt to run tests with bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 19, 2018
1 parent 15c8a0f commit e3fd3fa
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/remote/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ java_library(
],
visibility = [
"//java/client/src/org/openqa/selenium/json:__pkg__",
"//java/client/test:__subpackages__",
],
)
17 changes: 17 additions & 0 deletions java/client/test/org/openqa/selenium/remote/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
java_test(name = 'common-tests',
test_class = 'org.openqa.selenium.remote.RemoteCommonTests',
srcs = [
'DesiredCapabilitiesTest.java',
'RemoteCommonTests.java',
'http/JsonHttpCommandCodecTest.java',
'http/JsonHttpResponseCodecTest.java',
'http/W3CHttpResponseCodecTest.java',
],
deps = [
'//java/client/src/org/openqa/selenium:selenium',
'//java/client/src/org/openqa/selenium/remote:remote',
'//java/client/src/org/openqa/selenium/remote:types',
'//third_party/java/guava:guava',
'//third_party/java/assertj:assertj',
'//third_party/java/junit:junit',
])
13 changes: 13 additions & 0 deletions third_party/java/assertj/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
java_import(
name = 'assertj',
licenses = [
"notice", # Apache 2
],
jars = [
'assertj-core-3.11.1.jar',
],
srcjar = 'assertj-core-3.11.1-sources.jar',
visibility = [
'//java/client/test:__subpackages__',
],
)
13 changes: 13 additions & 0 deletions third_party/java/junit/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
java_import(
name = 'junit',
licenses = [
"notice", # Eclipse Public License - v 1.0
],
jars = [
'junit-4.12.jar',
],
srcjar = 'junit-4.12-sources.jar',
visibility = [
'//java/client/test:__subpackages__',
],
)

0 comments on commit e3fd3fa

Please sign in to comment.