Merge branch '3.0.x' into 3.1.x

Closes gh-37661
This commit is contained in:
Andy Wilkinson
2023-10-03 10:57:28 +01:00
17 changed files with 31 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.boot.cli.command.status.ExitStatus;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.fail;
import static org.assertj.core.api.Assertions.fail;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.assertArg;
import static org.mockito.ArgumentMatchers.isNull;
@@ -192,7 +192,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
}
@Test
void generateProjectAndExtractUnknownContentType(@TempDir File tempDir) throws Exception {
void generateProjectAndExtractUnknownContentType(@TempDir File tempDir) {
String fileName = UUID.randomUUID().toString() + ".zip";
File file = new File(fileName);
assertThat(file).as("file should not exist").doesNotExist();
@@ -204,7 +204,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
assertThat(file).as("file should have been saved instead").exists();
}
catch (Exception ex) {
fail(ex);
fail(null, ex);
}
finally {
assertThat(file.delete()).as("failed to delete test file").isTrue();