Skip to content

Commit 027b8c0

Browse files
committed
Add junit deps explicitly
Reasons: * Being explicit about deps is preferred * It allows us to replace the dep in copybara instead of unconditionally adding a dep to java_tests, which allows use to use java_test rules with no srcs, which is sometimes useful. (See: cl/750758625) Change-Id: I488b185000f14fa3c3e95176eda4c061f35cdf74
1 parent 9b82cf1 commit 027b8c0

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

java/src/test/java/com/google/oak/client/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ java_test(
3838
"//proto/crypto:crypto_java_proto",
3939
"//proto/session:messages_java_proto",
4040
"@com_google_protobuf//:protobuf_javalite",
41+
"@maven//:junit_junit",
4142
],
4243
)
4344

java/src/test/java/com/google/oak/crypto/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ java_test(
3131
"//java/src/main/java/com/google/oak/crypto/hpke",
3232
"//java/src/main/java/com/google/oak/util",
3333
"//proto/crypto:crypto_java_proto",
34+
"@maven//:junit_junit",
3435
],
3536
)

java/src/test/java/com/google/oak/session/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ java_test(
3131
"//java/src/main/java/com/google/oak/session:session_config_builder",
3232
"//proto/session:session_java_proto",
3333
"@com_google_protobuf//:protobuf_javalite",
34+
"@maven//:junit_junit",
3435
],
3536
)

java/src/test/java/com/google/oak/transport/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ java_test(
3737
"@io_grpc_grpc_java//core:inprocess",
3838
"@io_grpc_grpc_java//stub",
3939
"@io_grpc_grpc_java//testing",
40+
"@maven//:junit_junit",
4041
"@org_mockito_mockito_core",
4142
],
4243
)

java/src/test/java/com/google/oak/util/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ java_test(
2626
test_class = "com.google.oak.util.ResultTest",
2727
deps = [
2828
"//java/src/main/java/com/google/oak/util",
29+
"@maven//:junit_junit",
2930
],
3031
)

0 commit comments

Comments
 (0)