Skip to content

Commit

Permalink
[java] Adding mockito to bazel build
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 20, 2018
1 parent 771c93c commit 4698e43
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/client/test/org/openqa/selenium/remote/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ gen_java_tests(
"//third_party/java/assertj:assertj",
"//third_party/java/guava:guava",
"//third_party/java/junit:junit",
"//third_party/java/mockito:mockito-core",
],
)
16 changes: 16 additions & 0 deletions third_party/java/bytebuddy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,21 @@ java_import(
srcjar = 'byte-buddy-1.8.15-sources.jar',
visibility = [
'//java/client/src/org/openqa/selenium/remote:__pkg__',
"//third_party/java/mockito:mockito-core",
],
)

java_import(
name = 'byte-buddy-agent',
jars = [
'byte-buddy-agent-1.8.15.jar',
],
licenses = [
"notice", # Apache 2
],
srcjar = 'byte-buddy-agent-1.8.15-sources.jar',
visibility = [
'//java/client/src/org/openqa/selenium/remote:__pkg__',
"//third_party/java/mockito:mockito-core",
],
)
20 changes: 20 additions & 0 deletions third_party/java/mockito/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
java_import(
name = "mockito-core",
tags = [
"maven_coordinates=org.mockito:mockito-core:jar:2.18.0",
],
licenses = [
"notice", # MIT
],
jars = ["mockito-core-2.18.0.jar"],
srcjar = "mockito-core-2.18.0-sources.jar",
deps = [
"//third_party/java/bytebuddy:byte-buddy",
"//third_party/java/bytebuddy:byte-buddy-agent",
"//third_party/java/objenesis:objenesis",
],
visibility = [
"//java/client/test:__subpackages__",
"//java/server/test:__subpackages__",
],
)
16 changes: 16 additions & 0 deletions third_party/java/objenesis/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
java_import(
name = "objenesis",
tags = [
"maven_coordinates=org.objenesis:objenesis:jar:2.6",
],
licenses = [
"notice", # Apache 2
],
jars = ["objenesis-2.6.jar"],
srcjar = "objenesis-2.6-sources.jar",
deps = [
],
visibility = [
"//third_party/java/mockito:mockito-core",
],
)

0 comments on commit 4698e43

Please sign in to comment.