Merge pull request #21365 from izeye
* pr/21365: Fix JarFileTests.getInputStreamWhenClosed() Closes gh-21365
This commit is contained in:
commit
228703faed
|
@ -193,8 +193,9 @@ class JarFileTests {
|
|||
|
||||
@Test
|
||||
void getInputStreamWhenClosed() throws Exception {
|
||||
ZipEntry entry = this.jarFile.getEntry("1.dat");
|
||||
this.jarFile.close();
|
||||
assertThatZipFileClosedIsThrownBy(() -> this.jarFile.getInputStream(this.jarFile.getEntry("1.dat")));
|
||||
assertThatZipFileClosedIsThrownBy(() -> this.jarFile.getInputStream(entry));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue