blob: c610d073e2246a55fb627f1edaa1af6b21df01ad [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library")
java_library(
name = "gerrit-test-util",
testonly = True,
srcs = glob(
["**/*.java"],
exclude = ["AssertableExecutorService.java"],
),
visibility = ["//visibility:public"],
exports = [
"//lib:junit",
"//lib/mockito",
],
deps = [
"//java/com/google/gerrit/acceptance/testsuite/project",
"//java/com/google/gerrit/common:annotations",
"//java/com/google/gerrit/entities",
"//java/com/google/gerrit/exceptions",
"//java/com/google/gerrit/extensions:api",
"//java/com/google/gerrit/gpg",
"//java/com/google/gerrit/index",
"//java/com/google/gerrit/index/project",
"//java/com/google/gerrit/lifecycle",
"//java/com/google/gerrit/mail",
"//java/com/google/gerrit/metrics",
"//java/com/google/gerrit/server",
"//java/com/google/gerrit/server:module",
"//java/com/google/gerrit/server/api",
"//java/com/google/gerrit/server/audit",
"//java/com/google/gerrit/server/cache/h2",
"//java/com/google/gerrit/server/cache/mem",
"//java/com/google/gerrit/server/logging",
"//java/com/google/gerrit/server/restapi",
"//java/com/google/gerrit/server/schema",
"//java/com/google/gerrit/server/util/time",
"//lib:guava",
"//lib:h2",
"//lib:jgit",
"//lib:jgit-junit",
"//lib:junit",
"//lib/auto:auto-value",
"//lib/auto:auto-value-annotations",
"//lib/flogger:api",
"//lib/guice",
"//lib/guice:guice-servlet",
"//lib/log:impl-log4j",
"//lib/log:log4j",
"//lib/truth",
],
)
java_library(
# This can't be part of gerrit-test-util because of https://github.com/google/guava/issues/2837
name = "assertable-executor",
testonly = True,
srcs = ["AssertableExecutorService.java"],
visibility = ["//visibility:public"],
deps = [
"//lib:guava",
"//lib/truth",
],
)