]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8574 Fix typo
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 27 Jan 2017 08:20:28 +0000 (09:20 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 30 Jan 2017 12:25:53 +0000 (13:25 +0100)
server/sonar-server/src/main/java/org/sonar/server/ws/RemovedWebServiceHandler.java
server/sonar-server/src/test/java/org/sonar/server/ws/RemovedWebServiceHandlerTest.java

index da2882c8f7ca4971b51791a8b29ff5f8a730c025..8a3700c338926570ce3cadc9ac953b0a7fec2586 100644 (file)
@@ -36,6 +36,6 @@ public enum RemovedWebServiceHandler implements RequestHandler {
 
   @Override
   public void handle(Request request, Response response) throws Exception {
-    throw new ServerException(HTTP_GONE, String.format("The web service '%s' doesn't exists anymore, please read its documentation to use alternatives", request.getPath()));
+    throw new ServerException(HTTP_GONE, String.format("The web service '%s' doesn't exist anymore, please read its documentation to use alternatives", request.getPath()));
   }
 }
index 747747d4a33d12503d26f5aa7bf7c28dfbf07d30..abda43d3b9031c8757673963152ba55dc45fe9b9 100644 (file)
@@ -44,7 +44,7 @@ public class RemovedWebServiceHandlerTest {
       RemovedWebServiceHandler.INSTANCE.handle(request, null);
       fail();
     } catch (ServerException e) {
-      assertThat(e.getMessage()).isEqualTo("The web service '/api/resources/index' doesn't exists anymore, please read its documentation to use alternatives");
+      assertThat(e.getMessage()).isEqualTo("The web service '/api/resources/index' doesn't exist anymore, please read its documentation to use alternatives");
       assertThat(e.httpCode()).isEqualTo(410);
     }
   }