From 7e244b8e655484ab1535f773a68b3f3c1f4bea4e Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Thu, 4 Apr 2024 19:16:16 -0700 Subject: [PATCH] Add `load()` statements for the builtin Bazel java rules Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`. PiperOrigin-RevId: 622039796 --- testing.bzl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testing.bzl b/testing.bzl index 026cdcb13..89450efc4 100644 --- a/testing.bzl +++ b/testing.bzl @@ -13,9 +13,10 @@ # limitations under the License. # From: https://github.com/google/guice/blob/master/test_defs.bzl - """starlark macros to generate test suites.""" +load("@rules_java//java:defs.bzl", "java_test") + _TEMPLATE = """package {VAR_PACKAGE}; import org.junit.runners.Suite; import org.junit.runner.RunWith; @@ -84,7 +85,7 @@ def junit4_test_suites( package_name = package_name.replace("/", "."), ) - native.java_test( + java_test( name = "AllTestsSuite", test_class = (package_name + "/" + suite_name).replace("/", "."), srcs = [":" + suite_name],