aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/test
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2018-02-09 09:48:19 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-09 09:50:33 -0800
commit345dbca75bf66e928cd559d2f9c56bb6093f00f8 (patch)
tree85b2625a133470338a93d69ace15b90006bbfd73 /third_party/ijar/test
parent47f567739920505c120ab0b7775c4cf5e69d6b30 (diff)
Internal change
PiperOrigin-RevId: 185153485
Diffstat (limited to 'third_party/ijar/test')
-rw-r--r--third_party/ijar/test/IjarTests.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/third_party/ijar/test/IjarTests.java b/third_party/ijar/test/IjarTests.java
index d07b37e3d2..4e0fb5d839 100644
--- a/third_party/ijar/test/IjarTests.java
+++ b/third_party/ijar/test/IjarTests.java
@@ -30,10 +30,8 @@ import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
-import java.util.jar.Attributes;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
-import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import javax.annotation.processing.AbstractProcessor;
@@ -276,15 +274,4 @@ public class IjarTests {
assertThat(new String(lib.get("module-info.class"), UTF_8)).isEqualTo("hello");
assertThat(new String(lib.get("foo/module-info.class"), UTF_8)).isEqualTo("goodbye");
}
-
- @Test
- public void testTargetLabel() throws Exception {
- try (JarFile jf =
- new JarFile("third_party/ijar/test/interface_ijar_testlib_with_target_label.jar")) {
- Manifest manifest = jf.getManifest();
- Attributes attributes = manifest.getMainAttributes();
- assertThat(attributes.getValue("Target-Label")).isEqualTo("//foo:foo");
- assertThat(attributes.getValue("Injecting-Rule-Kind")).isEqualTo("foo_library");
- }
- }
}