Align JavaVersion.NINE name with JDK versioning

See gh-17611
This commit is contained in:
dreis2211
2019-07-23 17:03:27 +02:00
committed by Stephane Nicoll
parent 2e0ad19d8d
commit c8097692ea
2 changed files with 4 additions and 4 deletions

View File

@@ -80,14 +80,14 @@ class ConditionalOnJavaTests {
void equalOrNewerMessage() {
ConditionOutcome outcome = this.condition.getMatchOutcome(Range.EQUAL_OR_NEWER, JavaVersion.NINE,
JavaVersion.EIGHT);
assertThat(outcome.getMessage()).isEqualTo("@ConditionalOnJava (1.8 or newer) found 1.9");
assertThat(outcome.getMessage()).isEqualTo("@ConditionalOnJava (1.8 or newer) found 9");
}
@Test
void olderThanMessage() {
ConditionOutcome outcome = this.condition.getMatchOutcome(Range.OLDER_THAN, JavaVersion.NINE,
JavaVersion.EIGHT);
assertThat(outcome.getMessage()).isEqualTo("@ConditionalOnJava (older than 1.8) found 1.9");
assertThat(outcome.getMessage()).isEqualTo("@ConditionalOnJava (older than 1.8) found 9");
}
@Test

View File

@@ -38,9 +38,9 @@ public enum JavaVersion {
EIGHT("1.8", Optional.class, "empty"),
/**
* Java 1.9.
* Java 9.
*/
NINE("1.9", Optional.class, "stream"),
NINE("9", Optional.class, "stream"),
/**
* Java 10.