From 2515f43a1294ebb0f23683183cd1ab23b6d42e31 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 28 Apr 2014 16:01:18 +0200 Subject: SONAR-5111 Create a handler to create java stub ws controllers for rails ws --- .../org/sonar/api/server/ws/RailsHandlerTest.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RailsHandlerTest.java (limited to 'sonar-plugin-api/src/test/java') 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); + } +} -- cgit v1.2.3