package net.trajano.ms.common.test;

import java.util.jar.Manifest;

import org.junit.Assert;
import org.junit.Test;

import net.trajano.ms.common.internal.BuildInfoResource;

public class ManiftestTest {

    @Test
    public void testManifest() throws Exception {

        final Manifest mf = new Manifest(Thread.currentThread().getContextClassLoader().getResourceAsStream("META-INF/MANIFEST.MF"));
        Assert.assertTrue(mf.getMainAttributes().size() > 0);
    }

    @Test
    public void testManifestFromResource() throws Exception {

        final BuildInfoResource buildInfoResource = new BuildInfoResource();
        buildInfoResource.init();
        Assert.assertNotNull(buildInfoResource.getManifestAsJson());
        Assert.assertNotNull(buildInfoResource.getManifest());
    }
}

@@ -26,24 +26,69 @@
 mmon.test;%0A%0A
+import static org.junit.Assert.assertFalse;%0A%0A
 import java.
@@ -451,24 +451,18 @@
     
-A
+a
 ssert
-.assertTru
+Fals
 e(mf
@@ -486,18 +486,17 @@
 s().
-size() %3E 0
+isEmpty()
 );%0A 

simplify unit test