Enable KotlinScriptTemplateTests with Java 19

No support yet for Java 21.

Closes gh-29249
This commit is contained in:
Sébastien Deleuze 2023-06-06 15:49:04 +02:00
parent 717915e6ac
commit 66a1be2d86
2 changed files with 4 additions and 4 deletions

View File

@ -33,14 +33,14 @@ import org.springframework.web.testfixture.http.server.reactive.MockServerHttpRe
import org.springframework.web.testfixture.server.MockServerWebExchange; import org.springframework.web.testfixture.server.MockServerWebExchange;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.condition.JRE.JAVA_19; import static org.junit.jupiter.api.condition.JRE.JAVA_20;
/** /**
* Unit tests for Kotlin script templates running on Kotlin JSR-223 support. * Unit tests for Kotlin script templates running on Kotlin JSR-223 support.
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
*/ */
@DisabledForJreRange(min = JAVA_19, disabledReason = "Kotlin doesn't support Java 19+ yet") @DisabledForJreRange(min = JAVA_20, disabledReason = "Kotlin doesn't support Java 20+ yet")
public class KotlinScriptTemplateTests { public class KotlinScriptTemplateTests {
@Test @Test

View File

@ -35,7 +35,7 @@ import org.springframework.web.testfixture.servlet.MockHttpServletResponse;
import org.springframework.web.testfixture.servlet.MockServletContext; import org.springframework.web.testfixture.servlet.MockServletContext;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.condition.JRE.JAVA_19; import static org.junit.jupiter.api.condition.JRE.JAVA_20;
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.mock;
/** /**
@ -44,7 +44,7 @@ import static org.mockito.Mockito.mock;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Sam Brannen * @author Sam Brannen
*/ */
@DisabledForJreRange(min = JAVA_19, disabledReason = "Kotlin doesn't support Java 19+ yet") @DisabledForJreRange(min = JAVA_20, disabledReason = "Kotlin doesn't support Java 20+ yet")
class KotlinScriptTemplateTests { class KotlinScriptTemplateTests {
private WebApplicationContext webAppContext = mock(); private WebApplicationContext webAppContext = mock();