Add Java 15 to JavaVersion enum

See gh-21691
pull/21732/head
dreis2211 5 years ago committed by Andy Wilkinson
parent 8fb7a6cace
commit 85a6686cae

@ -66,7 +66,12 @@ public enum JavaVersion {
/** /**
* Java 14. * Java 14.
*/ */
FOURTEEN("14", MethodHandles.Lookup.class, "hasFullPrivilegeAccess"); FOURTEEN("14", MethodHandles.Lookup.class, "hasFullPrivilegeAccess"),
/**
* Java 15.
*/
FIFTEEN("15", CharSequence.class, "isEmpty");
private final String name; private final String name;

@ -121,4 +121,10 @@ class JavaVersionTests {
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.FOURTEEN); assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.FOURTEEN);
} }
@Test
@EnabledOnJre(JRE.JAVA_15)
void currentJavaVersionFifteen() {
assertThat(JavaVersion.getJavaVersion()).isEqualTo(JavaVersion.FIFTEEN);
}
} }

Loading…
Cancel
Save