@@ -99,10 +99,9 @@ public void testJava17() throws IOException {
9999 </appengine-web-app>
100100 """ );
101101 new AppEngineWebXmlInitialParse (tempFile .toFile ().getAbsolutePath ()).handleRuntimeProperties ();
102- assertFalse (Boolean .getBoolean ("appengine.use.EE8" )); // Default to jetty 9.4 which is EE6
102+ assertTrue (Boolean .getBoolean ("appengine.use.EE8" )); // Default to jetty 12.0 which is EE8
103103 assertFalse (Boolean .getBoolean ("appengine.use.EE10" ));
104104 assertFalse (Boolean .getBoolean ("appengine.use.EE11" ));
105- assertFalse (Boolean .getBoolean ("appengine.use.EE8" ));
106105 assertFalse (Boolean .getBoolean ("appengine.use.jetty121" ));
107106 }
108107
@@ -118,7 +117,7 @@ public void testJava17WithJetty121() throws IOException {
118117 </appengine-web-app>
119118 """ );
120119 new AppEngineWebXmlInitialParse (tempFile .toFile ().getAbsolutePath ()).handleRuntimeProperties ();
121- assertFalse (Boolean .getBoolean ("appengine.use.EE8" ));
120+ assertTrue (Boolean .getBoolean ("appengine.use.EE8" )); // Default to jetty 12.0 which is EE8
122121 assertFalse (Boolean .getBoolean ("appengine.use.EE10" ));
123122 assertFalse (Boolean .getBoolean ("appengine.use.EE11" ));
124123 assertTrue (Boolean .getBoolean ("appengine.use.jetty121" ));
@@ -409,7 +408,7 @@ public void testJava21WithEE11() throws IOException {
409408 }
410409
411410 @ Test
412- public void testJava17WithExperimentEnableJetty12 () throws IOException {
411+ public void testJava17WithJetty12 () throws IOException {
413412 createTempAppEngineWebXml (
414413 """
415414 <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
@@ -418,13 +417,7 @@ public void testJava17WithExperimentEnableJetty12() throws IOException {
418417 """ );
419418 AppEngineWebXmlInitialParse parser =
420419 new AppEngineWebXmlInitialParse (tempFile .toFile ().getAbsolutePath ());
421- parser .setEnvProvider (
422- key -> {
423- if (Objects .equals (key , "EXPERIMENT_ENABLE_JETTY12_FOR_JAVA" )) {
424- return "true" ;
425- }
426- return null ;
427- });
420+
428421 parser .handleRuntimeProperties ();
429422 assertTrue (Boolean .getBoolean ("appengine.use.EE8" ));
430423 assertFalse (Boolean .getBoolean ("appengine.use.EE10" ));
@@ -444,13 +437,6 @@ public void testJava17WithWhitespace() throws IOException {
444437 """ );
445438 AppEngineWebXmlInitialParse parser =
446439 new AppEngineWebXmlInitialParse (tempFile .toFile ().getAbsolutePath ());
447- parser .setEnvProvider (
448- key -> {
449- if (Objects .equals (key , "EXPERIMENT_ENABLE_JETTY12_FOR_JAVA" )) {
450- return "true" ;
451- }
452- return null ;
453- });
454440 parser .handleRuntimeProperties ();
455441 assertTrue (Boolean .getBoolean ("appengine.use.EE8" ));
456442 }
@@ -712,7 +698,7 @@ public void testLogAllFlagsFalse() throws IOException {
712698 createTempAppEngineWebXml (
713699 """
714700 <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
715- <runtime>java17 </runtime>
701+ <runtime>java11 </runtime>
716702 </appengine-web-app>
717703 """ );
718704 new AppEngineWebXmlInitialParse (tempFile .toFile ().getAbsolutePath ()).handleRuntimeProperties ();
@@ -756,7 +742,7 @@ public void testLogNotAllFlagsFalseWhenFlagIsSet() throws IOException {
756742 }
757743
758744 @ Test
759- public void testLogExperimentJetty12 () throws IOException {
745+ public void testLogJetty12 () throws IOException {
760746 Logger logger = Logger .getLogger (AppEngineWebXmlInitialParse .class .getName ());
761747 TestHandler handler = new TestHandler ();
762748 logger .addHandler (handler );
@@ -769,13 +755,7 @@ public void testLogExperimentJetty12() throws IOException {
769755 """ );
770756 AppEngineWebXmlInitialParse parser =
771757 new AppEngineWebXmlInitialParse (tempFile .toFile ().getAbsolutePath ());
772- parser .setEnvProvider (
773- key -> {
774- if (Objects .equals (key , "EXPERIMENT_ENABLE_JETTY12_FOR_JAVA" )) {
775- return "true" ;
776- }
777- return null ;
778- });
758+
779759 parser .handleRuntimeProperties ();
780760 boolean found = false ;
781761 for (LogRecord record : handler .records ) {
0 commit comments