blob: 7684e5a7d2d4a14d86a9763155faa5765044f74a [file] [log] [blame]
# This file has been automatically generated, please do not modify directly.
load("//tools/base/bazel:bazel.bzl", "kotlin_library", "groovy_library", "kotlin_groovy_library", "fileset")
java_library(
name = "testutils_testlib",
srcs = glob([
"src/test/java/**/*.java",
]),
resource_strip_prefix = "tools/base/testutils/testutils_testlib.resources",
resources = [
"//tools/base/testutils:testutils_testlib.res",
],
deps = [
"@local_jdk//:langtools-neverlink",
"//tools/base/testutils:testutils",
"//tools/base/common:common",
"//tools/idea:lib/guava-18.0",
"//tools/base/annotations:android-annotations",
"//tools/base/common:common_testlib",
"//tools/idea:lib/hamcrest-core-1.3",
"//tools/idea:lib/junit-4.12",
"//prebuilts/tools/common/easymock-tools:easymock-3.1",
"//prebuilts/tools/common/m2:repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5",
"//prebuilts/tools/common/m2:repository/com/google/truth/truth/0.28/truth-0.28",
"//prebuilts/tools/common/m2:repository/com/google/truth/truth/0.28/truth-0.28-sources",
],
javacopts = ["-extra_checks:off"],
visibility = ["//visibility:public"],
)
java_library(
name = "testutils",
srcs = glob([
"src/main/java/**/*.java",
]),
resource_strip_prefix = "tools/base/testutils/testutils.resources",
resources = [
"//tools/base/testutils:testutils.res",
],
deps = [
"@local_jdk//:langtools-neverlink",
"//tools/base/common:common",
"//tools/idea:lib/guava-18.0",
"//tools/base/annotations:android-annotations",
"//tools/idea:lib/hamcrest-core-1.3",
"//tools/idea:lib/junit-4.12",
"//prebuilts/tools/common/easymock-tools:easymock-3.1",
"//prebuilts/tools/common/m2:repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5",
"//prebuilts/tools/common/m2:repository/com/google/truth/truth/0.28/truth-0.28",
"//prebuilts/tools/common/m2:repository/com/google/truth/truth/0.28/truth-0.28-sources",
],
javacopts = ["-extra_checks:off"],
visibility = ["//visibility:public"],
)
java_test(
name = "testutils_tests",
srcs = glob([
]),
runtime_deps = [
":testutils_testlib",
"//tools/base/testutils:testutils",
],
jvm_flags = [
"-Dtest.suite.jar=testutils_testlib.jar",
],
test_class = "com.android.testutils.JarTestSuite",
javacopts = ["-extra_checks:off"],
visibility = ["//visibility:public"],
)
fileset(
name = "testutils.res",
srcs = glob([
"src/main/java/**/*",
],
exclude = [
"**/* *",
"**/*.java",
"**/*.kt",
"**/*.groovy",
"**/*$*",
"**/.DS_Store",
]),
mappings = {
"src/main/java": "testutils.resources",
},
deps = [
"@local_jdk//:langtools-neverlink",
],
)
fileset(
name = "testutils_testlib.res",
srcs = glob([
"src/test/java/**/*",
],
exclude = [
"**/* *",
"**/*.java",
"**/*.kt",
"**/*.groovy",
"**/*$*",
"**/.DS_Store",
]),
mappings = {
"src/test/java": "testutils_testlib.resources",
},
deps = [
"@local_jdk//:langtools-neverlink",
],
)