Skip to content

Commit 631e8e0

Browse files
java-team-github-botGuice Team
authored and
Guice Team
committed
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: 621873514
1 parent cc5511b commit 631e8e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_defs.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
"""starlark marcors to generate test suites."""
1615

16+
load("@rules_java//java:defs.bzl", "java_test")
17+
1718
_TEMPLATE = """package {VAR_PACKAGE};
1819
import org.junit.runners.Suite;
1920
import org.junit.runner.RunWith;
@@ -88,8 +89,7 @@ def guice_test_suites(name, deps, srcs = None, args = [], suffix = "", sizes = N
8889
test_classes = test_classes,
8990
package_name = package_name.replace("/", "."),
9091
)
91-
92-
native.java_test(
92+
java_test(
9393
name = "AllTestsSuite" + suffix,
9494
test_class = (package_name + "/" + suite_name).replace("/", "."),
9595
jvm_flags = flags,

0 commit comments

Comments
 (0)