Skip to content

Commit 7076654

Browse files
committed
api: create a test_fixtures bazel target
1 parent 1567026 commit 7076654

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
4141
"io.opencensus:opencensus-contrib-grpc-metrics:0.31.0",
4242
"io.perfmark:perfmark-api:0.27.0",
4343
"junit:junit:4.13.2",
44+
"org.mockito:mockito-core:4.4.0",
4445
"org.checkerframework:checker-qual:3.49.5",
4546
"org.codehaus.mojo:animal-sniffer-annotations:1.26",
4647
]

api/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,21 @@ java_library(
1515
artifact("com.google.guava:guava"),
1616
],
1717
)
18+
19+
java_library(
20+
name = "test_fixtures",
21+
testonly = 1,
22+
srcs = glob([
23+
"src/testFixtures/java/io/grpc/**/*.java",
24+
]),
25+
visibility = ["//xds:__pkg__"],
26+
deps = [
27+
"//core",
28+
artifact("com.google.code.findbugs:jsr305"),
29+
artifact("com.google.errorprone:error_prone_annotations"),
30+
artifact("com.google.guava:guava"),
31+
artifact("com.google.truth:truth"),
32+
artifact("junit:junit"),
33+
artifact("org.mockito:mockito-core"),
34+
],
35+
)

repositories.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
4545
"io.opencensus:opencensus-contrib-grpc-metrics:0.31.0",
4646
"io.perfmark:perfmark-api:0.27.0",
4747
"junit:junit:4.13.2",
48+
"org.mockito:mockito-core:4.4.0",
4849
"org.checkerframework:checker-qual:3.49.5",
4950
"org.codehaus.mojo:animal-sniffer-annotations:1.26",
5051
]

0 commit comments

Comments
 (0)