Skip to content

Commit dc501a6

Browse files
hvadehracopybara-github
authored andcommitted
Migrate the JavaImportConfiguredTargetTest.testDisallowsFilesInExports test to Starlark
The test is removed from Bazel and added to rules_java (ignore-relnotes) PiperOrigin-RevId: 756261082 Change-Id: I067402005608984ff58ebe7698db11b47ed8caab
1 parent 94e0b44 commit dc501a6

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
@@ -86,19 +86,6 @@ public void testRequiresJars() throws Exception {
8686
""");
8787
}
8888

89-
@Test
90-
public void testDisallowsFilesInExports() throws Exception {
91-
scratch.file("pkg/bad.jar", "");
92-
checkError(
93-
"pkg",
94-
"rule",
95-
"expected no files",
96-
"""
97-
load("@rules_java//java:defs.bzl", "java_import")
98-
java_import(name = 'rule', jars = ['good.jar'], exports = ['bad.jar'])
99-
""");
100-
}
101-
10289
@Test
10390
public void testDisallowsArbitraryFiles() throws Exception {
10491
scratch.file("badlib/not-a-jar.txt", "foo");

0 commit comments

Comments
 (0)