|
|
@ -437,10 +437,13 @@ class JarFileTests {
|
|
|
|
while (actualEntries.hasMoreElements()) {
|
|
|
|
while (actualEntries.hasMoreElements()) {
|
|
|
|
JarEntry actualEntry = actualEntries.nextElement();
|
|
|
|
JarEntry actualEntry = actualEntries.nextElement();
|
|
|
|
java.util.jar.JarEntry expectedEntry = expected.getJarEntry(actualEntry.getName());
|
|
|
|
java.util.jar.JarEntry expectedEntry = expected.getJarEntry(actualEntry.getName());
|
|
|
|
assertThat(actualEntry.getCertificates()).as(actualEntry.getName())
|
|
|
|
StreamUtils.drain(expected.getInputStream(expectedEntry));
|
|
|
|
.isEqualTo(expectedEntry.getCertificates());
|
|
|
|
if (!actualEntry.getName().equals("META-INF/MANIFEST.MF")) {
|
|
|
|
assertThat(actualEntry.getCodeSigners()).as(actualEntry.getName())
|
|
|
|
assertThat(actualEntry.getCertificates()).as(actualEntry.getName())
|
|
|
|
.isEqualTo(expectedEntry.getCodeSigners());
|
|
|
|
.isEqualTo(expectedEntry.getCertificates());
|
|
|
|
|
|
|
|
assertThat(actualEntry.getCodeSigners()).as(actualEntry.getName())
|
|
|
|
|
|
|
|
.isEqualTo(expectedEntry.getCodeSigners());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assertThat(stopWatch.getTotalTimeSeconds()).isLessThan(3.0);
|
|
|
|
assertThat(stopWatch.getTotalTimeSeconds()).isLessThan(3.0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|