diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2024-03-27 16:40:16 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-04-02 20:02:42 +0000 |
commit | 472bb6484765a2b5c6e36b2c77f84d071690a5fa (patch) | |
tree | 62cf230cfb4e18161e8aad607b2b0f86b4a8fbc6 /server/sonar-webserver-core | |
parent | 2918fd86b5dbf184ee127938b45abfb84ad4d1c3 (diff) | |
download | sonarqube-472bb6484765a2b5c6e36b2c77f84d071690a5fa.tar.gz sonarqube-472bb6484765a2b5c6e36b2c77f84d071690a5fa.zip |
SONAR-21908 Replace usage of LTS to LTA
Diffstat (limited to 'server/sonar-webserver-core')
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java index 57549c5fc6f..63ec4321e42 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java @@ -20,10 +20,10 @@ package org.sonar.server.platform; import java.util.Optional; -import org.sonar.api.Startable; -import org.sonar.api.utils.MessageException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.sonar.api.Startable; +import org.sonar.api.utils.MessageException; import org.sonar.server.platform.db.migration.version.DatabaseVersion; import static org.sonar.server.log.ServerProcessLogging.STARTUP_LOGGER_NAME; @@ -48,7 +48,7 @@ public class DatabaseServerCompatibility implements Startable { if (status == DatabaseVersion.Status.REQUIRES_UPGRADE) { Optional<Long> currentVersion = this.version.getVersion(); if (currentVersion.isPresent() && currentVersion.get() < DatabaseVersion.MIN_UPGRADE_VERSION) { - throw MessageException.of("The version of SonarQube is too old. Please upgrade to the Long Term Support version first."); + throw MessageException.of("The version of SonarQube is too old. Please upgrade to the Long-Term Active version first."); } String msg = "The database must be manually upgraded. Please backup the database and browse /setup. " diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java index 76a489f09c9..022bc4716ee 100644 --- a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java +++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java @@ -49,14 +49,14 @@ public class DatabaseServerCompatibilityTest { } @Test - public void fail_if_requires_firstly_to_upgrade_to_lts() { + public void fail_if_requires_firstly_to_upgrade_to_lta() { DatabaseVersion version = mock(DatabaseVersion.class); when(version.getStatus()).thenReturn(DatabaseVersion.Status.REQUIRES_UPGRADE); when(version.getVersion()).thenReturn(Optional.of(12L)); var compatibility = new DatabaseServerCompatibility(version); assertThatThrownBy(compatibility::start) .isInstanceOf(MessageException.class) - .hasMessage("The version of SonarQube is too old. Please upgrade to the Long Term Support version first."); + .hasMessage("The version of SonarQube is too old. Please upgrade to the Long-Term Active version first."); } @Test |