aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-28 16:01:18 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-04-28 16:01:18 +0200
commit2515f43a1294ebb0f23683183cd1ab23b6d42e31 (patch)
tree3e36e30783c691969ae0033fbb47434a557c2cc3 /sonar-plugin-api/src/test/java
parent401dafe8e8b72c2de067168fe282b2df01d48f12 (diff)
downloadsonarqube-2515f43a1294ebb0f23683183cd1ab23b6d42e31.tar.gz
sonarqube-2515f43a1294ebb0f23683183cd1ab23b6d42e31.zip
SONAR-5111 Create a handler to create java stub ws controllers for rails ws
Diffstat (limited to 'sonar-plugin-api/src/test/java')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RailsHandlerTest.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RailsHandlerTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RailsHandlerTest.java
new file mode 100644
index 00000000000..1652a661596
--- /dev/null
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RailsHandlerTest.java
@@ -0,0 +1,31 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+package org.sonar.api.server.ws;
+
+import org.junit.Test;
+
+public class RailsHandlerTest {
+
+ @Test(expected = UnsupportedOperationException.class)
+ public void throw_unsupported_operation_exception() throws Exception {
+ RailsHandler.INSTANCE.handle(null, null);
+ }
+}