Skip to content

Commit

Permalink
Delete failing Freemarker test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bclozel authored and snicoll committed Feb 4, 2025
1 parent a4fc68b commit ebd80bd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
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 reactor.test.StepVerifier;

Expand Down Expand Up @@ -125,12 +123,6 @@ private void testMacroOutput(String name, String... contents) throws Exception {

}

@Test
@DisabledForJreRange(min = JRE.JAVA_21)
public void age() throws Exception {
testMacroOutput("AGE", "99");
}

@Test
void message() throws Exception {
testMacroOutput("MESSAGE", "Howdy Mundo");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ test template for FreeMarker macro support
NAME
${command.name}

AGE
${command.age}

MESSAGE
<@spring.message "hello"/> <@spring.message "world"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
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;
Expand Down Expand Up @@ -146,12 +144,6 @@ void testName() throws Exception {
assertThat(getMacroOutput("NAME")).isEqualTo("Darren");
}

@Test
@DisabledForJreRange(min = JRE.JAVA_21)
public void testAge() throws Exception {
assertThat(getMacroOutput("AGE")).isEqualTo("99");
}

@Test
void testMessage() throws Exception {
assertThat(getMacroOutput("MESSAGE")).isEqualTo("Howdy Mundo");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ test template for FreeMarker macro test class
NAME
${command.name}

AGE
${command.age}

MESSAGE
<@spring.message "hello"/> <@spring.message "world"/>

Expand Down

0 comments on commit ebd80bd

Please sign in to comment.