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:
parent
07a5d8c91c
commit
a91effcd86
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ NAME
|
|||
${command.name}
|
||||
|
||||
AGE
|
||||
${command.age()}
|
||||
${command.age}
|
||||
|
||||
MESSAGE
|
||||
<@spring.message "hello"/> <@spring.message "world"/>
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ NAME
|
|||
${command.name}
|
||||
|
||||
AGE
|
||||
${command.age()}
|
||||
${command.age}
|
||||
|
||||
MESSAGE
|
||||
<@spring.message "hello"/> <@spring.message "world"/>
|
||||
|
|
Loading…
Reference in New Issue