Commit 5f3fff64 authored by Stephane Nicoll's avatar Stephane Nicoll

Disable tests that are failing on Java 13

Hazelcast YAML support does not work with Java 13 so this commit
disables relevant tests when Java 13 is detected

See https://github.com/hazelcast/hazelcast/issues/15348

See gh-17607
parent 42075ddf
...@@ -23,6 +23,8 @@ import com.hazelcast.config.QueueConfig; ...@@ -23,6 +23,8 @@ import com.hazelcast.config.QueueConfig;
import com.hazelcast.core.Hazelcast; import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance; import com.hazelcast.core.HazelcastInstance;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnJre;
import org.junit.jupiter.api.condition.JRE;
import org.springframework.beans.factory.BeanCreationException; import org.springframework.beans.factory.BeanCreationException;
import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.AutoConfigurations;
...@@ -68,6 +70,7 @@ class HazelcastAutoConfigurationServerTests { ...@@ -68,6 +70,7 @@ class HazelcastAutoConfigurationServerTests {
} }
@Test @Test
@DisabledOnJre(JRE.JAVA_13)
void systemPropertyWithYaml() { void systemPropertyWithYaml() {
this.contextRunner this.contextRunner
.withSystemProperties(HazelcastServerConfiguration.CONFIG_SYSTEM_PROPERTY .withSystemProperties(HazelcastServerConfiguration.CONFIG_SYSTEM_PROPERTY
...@@ -88,6 +91,7 @@ class HazelcastAutoConfigurationServerTests { ...@@ -88,6 +91,7 @@ class HazelcastAutoConfigurationServerTests {
} }
@Test @Test
@DisabledOnJre(JRE.JAVA_13)
void explicitConfigFileWithYaml() { void explicitConfigFileWithYaml() {
this.contextRunner this.contextRunner
.withPropertyValues("spring.hazelcast.config=org/springframework/boot/autoconfigure/hazelcast/" .withPropertyValues("spring.hazelcast.config=org/springframework/boot/autoconfigure/hazelcast/"
...@@ -106,6 +110,7 @@ class HazelcastAutoConfigurationServerTests { ...@@ -106,6 +110,7 @@ class HazelcastAutoConfigurationServerTests {
} }
@Test @Test
@DisabledOnJre(JRE.JAVA_13)
void explicitConfigUrlWithYaml() { void explicitConfigUrlWithYaml() {
this.contextRunner this.contextRunner
.withPropertyValues("spring.hazelcast.config=classpath:org/springframework/" .withPropertyValues("spring.hazelcast.config=classpath:org/springframework/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment