|
|
@ -23,8 +23,6 @@ import java.util.List;
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.condition.EnabledForJreRange;
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.condition.JRE;
|
|
|
|
|
|
|
|
import org.junit.jupiter.params.ParameterizedTest;
|
|
|
|
import org.junit.jupiter.params.ParameterizedTest;
|
|
|
|
import org.junit.jupiter.params.provider.MethodSource;
|
|
|
|
import org.junit.jupiter.params.provider.MethodSource;
|
|
|
|
import org.testcontainers.containers.GenericContainer;
|
|
|
|
import org.testcontainers.containers.GenericContainer;
|
|
|
@ -52,7 +50,6 @@ class LoaderIntegrationTests {
|
|
|
|
|
|
|
|
|
|
|
|
@ParameterizedTest
|
|
|
|
@ParameterizedTest
|
|
|
|
@MethodSource("javaRuntimes")
|
|
|
|
@MethodSource("javaRuntimes")
|
|
|
|
@EnabledForJreRange(max = JRE.JAVA_17)
|
|
|
|
|
|
|
|
void readUrlsWithoutWarning(JavaRuntime javaRuntime) {
|
|
|
|
void readUrlsWithoutWarning(JavaRuntime javaRuntime) {
|
|
|
|
try (GenericContainer<?> container = createContainer(javaRuntime)) {
|
|
|
|
try (GenericContainer<?> container = createContainer(javaRuntime)) {
|
|
|
|
container.start();
|
|
|
|
container.start();
|
|
|
@ -81,6 +78,7 @@ class LoaderIntegrationTests {
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.EIGHT));
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.EIGHT));
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.ELEVEN));
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.ELEVEN));
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.SEVENTEEN));
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.SEVENTEEN));
|
|
|
|
|
|
|
|
javaRuntimes.add(JavaRuntime.openJdk(JavaVersion.EIGHTEEN));
|
|
|
|
javaRuntimes.add(JavaRuntime.oracleJdk17());
|
|
|
|
javaRuntimes.add(JavaRuntime.oracleJdk17());
|
|
|
|
return javaRuntimes.stream().filter(JavaRuntime::isCompatible);
|
|
|
|
return javaRuntimes.stream().filter(JavaRuntime::isCompatible);
|
|
|
|
}
|
|
|
|
}
|
|
|
|