Merge branch '2.3.x'

This commit is contained in:
Phillip Webb
2020-08-19 10:26:25 -07:00

View File

@@ -104,9 +104,9 @@ class ExtractCommandTests {
@Test
void runWithJarFileContainingNoEntriesFails() throws IOException {
File file = new File(this.temp, "empty.jar");
FileWriter writer = new FileWriter(file);
writer.write("text");
writer.flush();
try (FileWriter writer = new FileWriter(file)) {
writer.write("text");
}
given(this.context.getJarFile()).willReturn(file);
given(this.context.getWorkingDir()).willReturn(this.extract);
assertThatIllegalStateException()