Commit bb57c7ea authored by Phillip Webb's avatar Phillip Webb

Merge branch '2.3.x'

parents bd5266b9 8722c2c5
...@@ -104,9 +104,9 @@ class ExtractCommandTests { ...@@ -104,9 +104,9 @@ class ExtractCommandTests {
@Test @Test
void runWithJarFileContainingNoEntriesFails() throws IOException { void runWithJarFileContainingNoEntriesFails() throws IOException {
File file = new File(this.temp, "empty.jar"); File file = new File(this.temp, "empty.jar");
FileWriter writer = new FileWriter(file); try (FileWriter writer = new FileWriter(file)) {
writer.write("text"); writer.write("text");
writer.flush(); }
given(this.context.getJarFile()).willReturn(file); given(this.context.getJarFile()).willReturn(file);
given(this.context.getWorkingDir()).willReturn(this.extract); given(this.context.getWorkingDir()).willReturn(this.extract);
assertThatIllegalStateException() assertThatIllegalStateException()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment