Delete failing Freemarker test

This test was already ignored as of Java 21 because of a Java behavior
change, and now it started failing as of 17.0.14.
This commit removes the test entirely.
This commit is contained in:
Brian Clozel 2025-01-29 15:23:54 +01:00 committed by Stéphane Nicoll
parent a4fc68b8e8
commit ebd80bdd6c
4 changed files with 0 additions and 22 deletions

View File

@ -28,8 +28,6 @@ import java.util.Map;
import freemarker.template.Configuration; import freemarker.template.Configuration;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledForJreRange;
import org.junit.jupiter.api.condition.JRE;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import reactor.test.StepVerifier; import reactor.test.StepVerifier;
@ -125,12 +123,6 @@ class FreeMarkerMacroTests {
} }
@Test
@DisabledForJreRange(min = JRE.JAVA_21)
public void age() throws Exception {
testMacroOutput("AGE", "99");
}
@Test @Test
void message() throws Exception { void message() throws Exception {
testMacroOutput("MESSAGE", "Howdy Mundo"); testMacroOutput("MESSAGE", "Howdy Mundo");

View File

@ -6,9 +6,6 @@ test template for FreeMarker macro support
NAME NAME
${command.name} ${command.name}
AGE
${command.age}
MESSAGE MESSAGE
<@spring.message "hello"/> <@spring.message "world"/> <@spring.message "hello"/> <@spring.message "world"/>

View File

@ -31,8 +31,6 @@ import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledForJreRange;
import org.junit.jupiter.api.condition.JRE;
import org.springframework.beans.testfixture.beans.TestBean; import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
@ -146,12 +144,6 @@ public class FreeMarkerMacroTests {
assertThat(getMacroOutput("NAME")).isEqualTo("Darren"); assertThat(getMacroOutput("NAME")).isEqualTo("Darren");
} }
@Test
@DisabledForJreRange(min = JRE.JAVA_21)
public void testAge() throws Exception {
assertThat(getMacroOutput("AGE")).isEqualTo("99");
}
@Test @Test
void testMessage() throws Exception { void testMessage() throws Exception {
assertThat(getMacroOutput("MESSAGE")).isEqualTo("Howdy Mundo"); assertThat(getMacroOutput("MESSAGE")).isEqualTo("Howdy Mundo");

View File

@ -6,9 +6,6 @@ test template for FreeMarker macro test class
NAME NAME
${command.name} ${command.name}
AGE
${command.age}
MESSAGE MESSAGE
<@spring.message "hello"/> <@spring.message "world"/> <@spring.message "hello"/> <@spring.message "world"/>