Esempio n. 1
0
 private void checkManifestConnection(URL url) throws Exception {
   final URLConnection urlConnection = url.openConnection();
   final JarURLConnection jarURLConnection = (JarURLConnection) urlConnection;
   final Manifest manifest = jarURLConnection.getManifest();
   Assert.assertEquals("1.0", ManifestU.getAttribute(manifest, "Manifest-Version"));
   Assert.assertNotNull(ManifestU.getImplementationBuild(manifest));
 }
Esempio n. 2
0
 private void checkManifestJar(URL url) throws Exception {
   final File file = URLCodec.toFile(url);
   final JarFile jarFile = new JarFile(file);
   final Manifest manifest = jarFile.getManifest();
   Assert.assertEquals("1.0", ManifestU.getAttribute(manifest, "Manifest-Version"));
   Assert.assertNotNull(ManifestU.getImplementationBuild(manifest));
 }