See gh-37745
This commit is contained in:
Johnny Lim
2023-10-07 14:05:47 +09:00
committed by Andy Wilkinson
parent 5a1abb76f7
commit 303015ea2d
10 changed files with 15 additions and 15 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.exists()).as("file should not exist").isFalse();
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.exists()).as("file should not exist").isFalse();
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.exists()).as("file should not exist").isFalse();
try {