Merge branch '2.7.x' into 3.0.x
Closes gh-37828
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -137,7 +137,7 @@ class DependencyFilterMojoTests {
|
||||
}
|
||||
|
||||
private static File createArtifactFile(String jarType) {
|
||||
Path jarPath = temp.resolve(UUID.randomUUID().toString() + ".jar");
|
||||
Path jarPath = temp.resolve(UUID.randomUUID() + ".jar");
|
||||
Manifest manifest = new Manifest();
|
||||
manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
|
||||
if (jarType != null) {
|
||||
|
||||
Reference in New Issue
Block a user