Skip to content

Commit 9e22929

Browse files
hvadehracopybara-github
authored andcommitted
Migrate the JavaImportConfiguredTargetTest.testExposesJavaProvider test to Starlark
The test is removed from Bazel and added to rules_java (ignore-relnotes) PiperOrigin-RevId: 756239088 Change-Id: I15d79faeb865e47ab502b18149d32a2a8ac4c978
1 parent b5f9f95 commit 9e22929

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,6 @@ public void setCommandLineFlags() throws Exception {
5858

5959
@Before
6060
public final void writeBuildFile() throws Exception {
61-
scratch.file(
62-
"java/jarlib/BUILD",
63-
"""
64-
load("@rules_java//java:defs.bzl", "java_import")
65-
java_import(
66-
name = "libraryjar",
67-
jars = ["library.jar"],
68-
)
69-
70-
java_import(
71-
name = "libraryjar_with_srcjar",
72-
jars = ["library.jar"],
73-
srcjar = "library.srcjar",
74-
)
75-
""");
76-
7761
scratch.overwriteFile(
7862
"tools/allowlists/java_import_exports/BUILD",
7963
"""
@@ -438,15 +422,6 @@ public void testDuplicateJarsThroughFilegroup() throws Exception {
438422
"java_import(name = 'ji-with-dupe-through-fg', jars = ['a.jar', ':jars'])");
439423
}
440424

441-
@Test
442-
public void testExposesJavaProvider() throws Exception {
443-
ConfiguredTarget jarLib = getConfiguredTarget("//java/jarlib:libraryjar");
444-
JavaCompilationArgsProvider compilationArgsProvider =
445-
JavaInfo.getProvider(JavaCompilationArgsProvider.class, jarLib);
446-
assertThat(prettyArtifactNames(compilationArgsProvider.runtimeJars()))
447-
.containsExactly("java/jarlib/library.jar");
448-
}
449-
450425
@Test
451426
public void testIjarCanBeDisabled() throws Exception {
452427
useConfiguration("--nouse_ijars");

0 commit comments

Comments
 (0)