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:
@@ -28,6 +28,8 @@ 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 org.springframework.beans.testfixture.beans.TestBean;
|
import org.springframework.beans.testfixture.beans.TestBean;
|
||||||
@@ -116,6 +118,7 @@ public class FreeMarkerMacroTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@DisabledForJreRange(min = JRE.JAVA_21)
|
||||||
public void age() throws Exception {
|
public void age() throws Exception {
|
||||||
assertThat(getMacroOutput("AGE")).containsExactly("99");
|
assertThat(getMacroOutput("AGE")).containsExactly("99");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ NAME
|
|||||||
${command.name}
|
${command.name}
|
||||||
|
|
||||||
AGE
|
AGE
|
||||||
${command.age()}
|
${command.age}
|
||||||
|
|
||||||
MESSAGE
|
MESSAGE
|
||||||
<@spring.message "hello"/> <@spring.message "world"/>
|
<@spring.message "hello"/> <@spring.message "world"/>
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ 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;
|
||||||
@@ -145,6 +147,7 @@ public class FreeMarkerMacroTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@DisabledForJreRange(min = JRE.JAVA_21)
|
||||||
public void testAge() throws Exception {
|
public void testAge() throws Exception {
|
||||||
assertThat(getMacroOutput("AGE")).isEqualTo("99");
|
assertThat(getMacroOutput("AGE")).isEqualTo("99");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ NAME
|
|||||||
${command.name}
|
${command.name}
|
||||||
|
|
||||||
AGE
|
AGE
|
||||||
${command.age()}
|
${command.age}
|
||||||
|
|
||||||
MESSAGE
|
MESSAGE
|
||||||
<@spring.message "hello"/> <@spring.message "world"/>
|
<@spring.message "hello"/> <@spring.message "world"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user