Skip to content

Commit

Permalink
Add load() statements for the builtin Bazel java rules
Browse files Browse the repository at this point in the history
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`.

PiperOrigin-RevId: 621168102
  • Loading branch information
java-team-github-bot authored and Guice Team committed Apr 4, 2024
1 parent cc5511b commit 9e4e3f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""starlark marcors 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;
Expand Down Expand Up @@ -88,8 +89,7 @@ def guice_test_suites(name, deps, srcs = None, args = [], suffix = "", sizes = N
test_classes = test_classes,
package_name = package_name.replace("/", "."),
)

native.java_test(
java_test(
name = "AllTestsSuite" + suffix,
test_class = (package_name + "/" + suite_name).replace("/", "."),
jvm_flags = flags,
Expand Down

0 comments on commit 9e4e3f2

Please sign in to comment.