|
5 | 5 | import static io.takari.maven.testing.TestResources.create; |
6 | 6 | import static org.junit.Assert.assertEquals; |
7 | 7 | import static org.junit.Assert.assertFalse; |
8 | | -import static org.junit.Assert.assertNotNull; |
9 | 8 | import static org.junit.Assert.assertNull; |
10 | 9 | import static org.junit.Assert.assertTrue; |
11 | 10 | import static org.junit.Assert.fail; |
@@ -105,8 +104,6 @@ public void jarCreation() throws Exception { |
105 | 104 | if (manifestEntry != null) { |
106 | 105 | InputStream is = zip1.getInputStream(manifestEntry); |
107 | 106 | Manifest p = new Manifest(is); |
108 | | - assertNotNull(p.getMainAttributes().getValue("Built-By")); |
109 | | - assertNotNull(p.getMainAttributes().getValue("Build-Jdk")); |
110 | 107 | assertEquals("1.0", p.getMainAttributes().getValue("Manifest-Version")); |
111 | 108 | assertEquals("test", p.getMainAttributes().getValue("Implementation-Title")); |
112 | 109 | assertEquals("1.0", p.getMainAttributes().getValue("Implementation-Version")); |
@@ -286,8 +283,6 @@ public void testCustomManifestEntries() throws Exception { |
286 | 283 | try (JarFile jar = new JarFile(new File(basedir, "target/test-1.0.jar"))) { |
287 | 284 | Manifest mf = jar.getManifest(); |
288 | 285 | Attributes main = mf.getMainAttributes(); |
289 | | - assertNotNull(main.getValue("Built-By")); |
290 | | - assertNotNull(main.getValue("Build-Jdk")); |
291 | 286 | assertEquals("1.0", main.getValue("Manifest-Version")); |
292 | 287 | assertEquals("test", main.getValue("Implementation-Title")); |
293 | 288 | assertEquals("1.0", main.getValue("Implementation-Version")); |
|
0 commit comments