Merge branch '2.7.x' into 3.0.x

Closes gh-37828
This commit is contained in:
Andy Wilkinson
2023-10-11 15:00:24 +01:00
12 changed files with 22 additions and 24 deletions

View File

@@ -82,7 +82,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
@Test
void generateProject() throws Exception {
String fileName = UUID.randomUUID().toString() + ".zip";
String fileName = UUID.randomUUID() + ".zip";
File file = new File(fileName);
assertThat(file).as("file should not exist").doesNotExist();
MockHttpProjectGenerationRequest request = new MockHttpProjectGenerationRequest("application/zip", fileName);
@@ -177,7 +177,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
@Test
void generateProjectAndExtractUnsupportedArchive(@TempDir File tempDir) throws Exception {
String fileName = UUID.randomUUID().toString() + ".zip";
String fileName = UUID.randomUUID() + ".zip";
File file = new File(fileName);
assertThat(file).as("file should not exist").doesNotExist();
try {
@@ -195,7 +195,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
@Test
void generateProjectAndExtractUnknownContentType(@TempDir File tempDir) throws Exception {
String fileName = UUID.randomUUID().toString() + ".zip";
String fileName = UUID.randomUUID() + ".zip";
File file = new File(fileName);
assertThat(file).as("file should not exist").doesNotExist();
try {