1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Description:
# Tests for tools for working with Java source code
package(default_visibility = ["//src:__subpackages__"])
filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//src/java_tools/buildjar:__pkg__"],
)
java_test(
name = "BazelJavaCompilerTest",
size = "small",
srcs = ["BazelJavaCompilerTest.java"],
data = [
"//third_party/java/jdk/langtools:javac_jar",
],
jvm_flags = [
# Simulates how Bazel invokes JavaBuilder
"-Xbootclasspath/p:$(location //third_party/java/jdk/langtools:javac_jar)",
],
tags = ["jdk8"],
test_class = "com.google.devtools.build.java.bazel.BazelJavaCompilerTest",
deps = [
"//src/java_tools/buildjar/java/com/google/devtools/build/java/bazel:BazelJavaCompiler",
"//third_party:guava",
"//third_party:junit4",
"//third_party:truth",
],
)
test_suite(name = "all_tests")
|