Issue #5492 - Updating jetty-start property test expectations
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
1b15c1e4a3
commit
7ed68d0681
|
@ -1507,9 +1507,9 @@ public class StartArgs
|
|||
properties.setProperty("java.version.platform", Integer.toString(ver.getPlatform()), source);
|
||||
|
||||
// features built into java.
|
||||
// TODO: Remove in Jetty 10+
|
||||
// In Jetty 10+ these will always be true, but still need to stick around for users that
|
||||
// want to move between Jetty 9.4.x and 10.0.x+
|
||||
properties.setProperty("runtime.feature.alpn", Boolean.toString(isMethodAvailable(javax.net.ssl.SSLParameters.class, "getApplicationProtocols", null)), source);
|
||||
// TODO: Remove in Jetty 10+
|
||||
properties.setProperty("runtime.feature.jpms", Boolean.toString(isClassAvailable("java.lang.ModuleLayer")), source);
|
||||
|
||||
// @deprecated - below will be removed in Jetty 10.x
|
||||
|
|
|
@ -143,6 +143,7 @@ public class ConfigurationAssert
|
|||
"jetty.base.uri".equals(name) ||
|
||||
"user.dir".equals(name) ||
|
||||
prop.source.equals(Props.ORIGIN_SYSPROP) ||
|
||||
name.startsWith("runtime.feature.") ||
|
||||
name.startsWith("java."))
|
||||
{
|
||||
// strip these out from assertion, to make assertions easier.
|
||||
|
|
|
@ -225,8 +225,11 @@ public class MainTest
|
|||
{
|
||||
Path distPath = MavenTestingUtils.getTestResourceDir("dist-home").toPath().toRealPath();
|
||||
Path homePath = MavenTestingUtils.getTargetTestingPath().resolve("dist home with spaces");
|
||||
IO.copy(distPath.toFile(), homePath.toFile());
|
||||
Files.createFile(homePath.resolve("lib/a library.jar"));
|
||||
if (!Files.exists(homePath))
|
||||
{
|
||||
IO.copy(distPath.toFile(), homePath.toFile());
|
||||
Files.createFile(homePath.resolve("lib/a library.jar"));
|
||||
}
|
||||
|
||||
List<String> cmdLineArgs = new ArrayList<>();
|
||||
cmdLineArgs.add("user.dir=" + homePath);
|
||||
|
|
Loading…
Reference in New Issue