Browse Source

Disable StandardScriptFactoryTests on Java 15+

This commit disables StandardScriptFactoryTests on Java 15 or higher
since the Nashorn JavaScript engine is no longer part of the JDK.
pull/24989/head
Sam Brannen 5 years ago
parent
commit
71ed8143a1
  1. 5
      spring-context/src/test/java/org/springframework/scripting/support/StandardScriptFactoryTests.java

5
spring-context/src/test/java/org/springframework/scripting/support/StandardScriptFactoryTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -19,6 +19,7 @@ package org.springframework.scripting.support; @@ -19,6 +19,7 @@ package org.springframework.scripting.support;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledForJreRange;
import org.springframework.aop.support.AopUtils;
import org.springframework.aop.target.dynamic.Refreshable;
@ -27,6 +28,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext; @@ -27,6 +28,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.scripting.Messenger;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.condition.JRE.JAVA_15;
/**
* {@link StandardScriptFactory} (lang:std) tests for JavaScript.
@ -34,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat; @@ -34,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Juergen Hoeller
* @since 4.2
*/
@DisabledForJreRange(min = JAVA_15)
public class StandardScriptFactoryTests {
@Test

Loading…
Cancel
Save