Refactor some tests to not use bp2build_avail

Bug: 301312260
Test: presubmits
Change-Id: I67ca45f17d11e9b893fae5f6c6df1239ae4220b6
This commit is contained in:
Chris Parsons
2023-09-21 15:30:27 +00:00
parent f2d858e5ba
commit 4c81ce0307
7 changed files with 21 additions and 33 deletions

View File

@@ -86,13 +86,11 @@ func TestJavaPluginNoSrcs(t *testing.T) {
java_library {
name: "java-lib-1",
srcs: ["b.java"],
bazel_module: { bp2build_available: false },
}
java_library {
name: "java-lib-2",
srcs: ["c.java"],
bazel_module: { bp2build_available: false },
}`,
ExpectedBazelTargets: []string{
MakeBazelTarget("java_plugin", "java-plug-1", AttrNameToString{