Skip to content

Commit 25d6609

Browse files
hvadehracopybara-github
authored andcommitted
Migrate the JavaImportConfiguredTargetTest.testDuplicateJarsThroughFilegroup test to Starlark
The test is removed from Bazel and added to rules_java (ignore-relnotes) PiperOrigin-RevId: 756316477 Change-Id: Icfb9b32b46cb070f8a89e573aaaf559fd34ddf79
1 parent e1eef9f commit 25d6609

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/test/java/com/google/devtools/build/lib/view/java/JavaImportConfiguredTargetTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,4 @@ public void testDuplicateJars() throws Exception {
319319
"filegroup(name='jars', srcs=['a.jar'])",
320320
"java_import(name = 'ji-with-dupe', jars = ['a.jar', 'a.jar'])");
321321
}
322-
323-
@Test
324-
public void testDuplicateJarsThroughFilegroup() throws Exception {
325-
checkError(
326-
"ji",
327-
"ji-with-dupe-through-fg",
328-
// error:
329-
"in jars attribute of java_import rule //ji:ji-with-dupe-through-fg: a.jar is a duplicate",
330-
// build file
331-
"load('@rules_java//java:defs.bzl', 'java_import')",
332-
"filegroup(name='jars', srcs=['a.jar'])",
333-
"java_import(name = 'ji-with-dupe-through-fg', jars = ['a.jar', ':jars'])");
334-
}
335322
}

0 commit comments

Comments
 (0)