mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
This commit is contained in:
parent
746cc0f70b
commit
915eaf3447
@ -170,9 +170,13 @@ public class JarFileTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getSize() throws Exception {
|
public void getSize() throws Exception {
|
||||||
try (ZipFile zip = new ZipFile(this.rootJarFile)) {
|
ZipFile zip = new ZipFile(this.rootJarFile);
|
||||||
|
try {
|
||||||
assertThat(this.jarFile.size()).isEqualTo(zip.size());
|
assertThat(this.jarFile.size()).isEqualTo(zip.size());
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
zip.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user