Ignore some FreeMarker tests for JDK21

This reverts commit 07a5d8c91 and instead disables the relevant
FreeMarker tests for JDK21+ runs.
This commit is contained in:
Brian Clozel 2023-05-11 17:36:22 +02:00
parent 07a5d8c91c
commit a91effcd86
4 changed files with 8 additions and 2 deletions

View File

@ -28,6 +28,8 @@ import java.util.Map;
import freemarker.template.Configuration;
import org.junit.jupiter.api.BeforeEach;
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 org.springframework.beans.testfixture.beans.TestBean;
@ -116,6 +118,7 @@ public class FreeMarkerMacroTests {
}
@Test
@DisabledForJreRange(min = JRE.JAVA_21)
public void age() throws Exception {
assertThat(getMacroOutput("AGE")).containsExactly("99");
}

View File

@ -7,7 +7,7 @@ NAME
${command.name}
AGE
${command.age()}
${command.age}
MESSAGE
<@spring.message "hello"/> <@spring.message "world"/>

View File

@ -31,6 +31,8 @@ import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletResponse;
import org.junit.jupiter.api.BeforeEach;
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.core.io.ClassPathResource;
@ -145,6 +147,7 @@ public class FreeMarkerMacroTests {
}
@Test
@DisabledForJreRange(min = JRE.JAVA_21)
public void testAge() throws Exception {
assertThat(getMacroOutput("AGE")).isEqualTo("99");
}

View File

@ -7,7 +7,7 @@ NAME
${command.name}
AGE
${command.age()}
${command.age}
MESSAGE
<@spring.message "hello"/> <@spring.message "world"/>