aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-01-23 20:10:47 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-01-23 20:16:02 +0100
commit08b5a7226458ebdfb46da424f9d68ad5841c927b (patch)
tree5c33f07e59c1b1342f24adab3ea3dafbad40a794 /plugins/sonar-squid-java-plugin/src
parentc65905d4c3bc59739032032db56e4e993fe57b37 (diff)
downloadsonarqube-08b5a7226458ebdfb46da424f9d68ad5841c927b.tar.gz
sonarqube-08b5a7226458ebdfb46da424f9d68ad5841c927b.zip
remove unused class from squid java plugin
Diffstat (limited to 'plugins/sonar-squid-java-plugin/src')
-rw-r--r--plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/BasicBridge.java62
-rw-r--r--plugins/sonar-squid-java-plugin/src/test/java/org/sonar/plugins/squid/bridges/BasicBridgeTest.java53
2 files changed, 0 insertions, 115 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/BasicBridge.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/BasicBridge.java
deleted file mode 100644
index 9331d9c09b7..00000000000
--- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/BasicBridge.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2009 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar 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.
- *
- * Sonar 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 Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.plugins.squid.bridges;
-
-import org.sonar.api.resources.Project;
-import org.sonar.api.resources.Resource;
-import org.sonar.java.api.JavaClass;
-import org.sonar.java.api.JavaMethod;
-import org.sonar.squid.api.*;
-
-public abstract class BasicBridge extends Bridge {
-
- protected BasicBridge(boolean needsBytecode) {
- super(needsBytecode);
- }
-
- @Override
- public final void onProject(SourceProject squidProject, Project sonarProject) {
- onResource(squidProject, sonarProject);
- }
-
- @Override
- public final void onPackage(SourcePackage squidPackage, Resource sonarPackage) {
- onResource(squidPackage, sonarPackage);
- }
-
- @Override
- public final void onFile(SourceFile squidFile, Resource sonarFile) {
- onResource(squidFile, sonarFile);
- }
-
- @Override
- public final void onClass(SourceClass squidClass, JavaClass sonarClass) {
- onResource(squidClass, sonarClass);
- }
-
- @Override
- public final void onMethod(SourceMethod squidMethod, JavaMethod sonarMethod) {
- onResource(squidMethod, sonarMethod);
- }
-
- protected void onResource(SourceCode squidResource, Resource sonarResource) {
-
- }
-}
diff --git a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/plugins/squid/bridges/BasicBridgeTest.java b/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/plugins/squid/bridges/BasicBridgeTest.java
deleted file mode 100644
index ca8f7c93240..00000000000
--- a/plugins/sonar-squid-java-plugin/src/test/java/org/sonar/plugins/squid/bridges/BasicBridgeTest.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2009 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar 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.
- *
- * Sonar 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 Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.plugins.squid.bridges;
-
-import org.junit.Test;
-import org.sonar.api.resources.Resource;
-import org.sonar.squid.api.SourceCode;
-
-import static org.mockito.Mockito.spy;
-import static org.mockito.Mockito.verify;
-import static org.mockito.internal.verification.VerificationModeFactory.times;
-
-public class BasicBridgeTest {
-
- @Test
- public void executeOnAllScopes() {
- BasicBridge bridge = new FakeBasicBridge();
- BasicBridge spy = spy(bridge);
-
- spy.onProject(null, null);
- spy.onPackage(null, null);
- spy.onFile(null, null);
-
- verify(spy, times(3)).onResource(null, null);
- }
-}
-
-class FakeBasicBridge extends BasicBridge {
- protected FakeBasicBridge() {
- super(false);
- }
-
- @Override
- public void onResource(SourceCode squidResource, Resource sonarResource) {
- }
-} \ No newline at end of file