blob: 0094bd6a93b35064be7fe40cb2f6e1696a3a0980 [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library")
load("//tools/bzl:junit.bzl", "junit_tests")
ABSTRACT_QUERY_TEST = [
"AbstractQueryGroupsTest.java",
"AbstractFakeQueryGroupsTest.java",
]
java_library(
name = "abstract_query_tests",
testonly = True,
srcs = ABSTRACT_QUERY_TEST,
visibility = ["//visibility:public"],
runtime_deps = ["//java/com/google/gerrit/lucene"],
deps = [
"//java/com/google/gerrit/entities",
"//java/com/google/gerrit/extensions:api",
"//java/com/google/gerrit/index",
"//java/com/google/gerrit/index/testing",
"//java/com/google/gerrit/lifecycle",
"//java/com/google/gerrit/server",
"//java/com/google/gerrit/server/schema",
"//java/com/google/gerrit/testing:gerrit-test-util",
"//lib:guava",
"//lib:jgit",
"//lib/guice",
"//lib/truth",
"//lib/truth:truth-java8-extension",
],
)
junit_tests(
name = "lucene_query_test",
size = "large",
srcs = glob(
["LuceneQueryGroupsTest.java"],
),
visibility = ["//visibility:public"],
deps = [
":abstract_query_tests",
"//java/com/google/gerrit/server",
"//java/com/google/gerrit/testing:gerrit-test-util",
"//lib:jgit",
"//lib/guice",
],
)
junit_tests(
name = "fake_query_test",
size = "large",
srcs = glob(
["FakeQueryGroupsTest.java"],
),
visibility = ["//visibility:public"],
deps = [
":abstract_query_tests",
"//java/com/google/gerrit/server",
"//java/com/google/gerrit/testing:gerrit-test-util",
"//lib:jgit",
"//lib/guice",
],
)