mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge pull request #32489 from izeye
* pr/32489: Polish JavaVersionTests.currentJavaVersionNineteen() Closes gh-32489
This commit is contained in:
commit
0c5d0ac717
@ -17,7 +17,6 @@
|
|||||||
package org.springframework.boot.system;
|
package org.springframework.boot.system;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.condition.EnabledIf;
|
|
||||||
import org.junit.jupiter.api.condition.EnabledOnJre;
|
import org.junit.jupiter.api.condition.EnabledOnJre;
|
||||||
import org.junit.jupiter.api.condition.JRE;
|
import org.junit.jupiter.api.condition.JRE;
|
||||||
|
|
||||||
@ -93,13 +92,9 @@ class JavaVersionTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@EnabledIf("java19")
|
@EnabledOnJre(JRE.JAVA_19)
|
||||||
void currentJavaVersionNineteen() {
|
void currentJavaVersionNineteen() {
|
||||||
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.NINETEEN);
|
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.NINETEEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean java19() {
|
|
||||||
return "19".equals(System.getProperty("java.version"));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user