diff options
author | David Gageot <david@gageot.net> | 2015-05-13 11:41:01 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2015-05-13 15:13:54 +0200 |
commit | ce770ba72f1ac8d06ee031ed7b198408cc721e95 (patch) | |
tree | bf189d7c9bd4107f22e561b5963212761992543a /sonar-core | |
parent | 29926971d0c6a28fab96438304a7b5fc1945d135 (diff) | |
download | sonarqube-ce770ba72f1ac8d06ee031ed7b198408cc721e95.tar.gz sonarqube-ce770ba72f1ac8d06ee031ed7b198408cc721e95.zip |
Remove redundant throws
Diffstat (limited to 'sonar-core')
4 files changed, 7 insertions, 7 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/IsAliveMapperTest.java b/sonar-core/src/test/java/org/sonar/core/persistence/IsAliveMapperTest.java index ff5b27a0271..4cf93908b7e 100644 --- a/sonar-core/src/test/java/org/sonar/core/persistence/IsAliveMapperTest.java +++ b/sonar-core/src/test/java/org/sonar/core/persistence/IsAliveMapperTest.java @@ -38,18 +38,18 @@ public class IsAliveMapperTest { IsAliveMapper underTest; @Before - public void setUp() throws Exception { + public void setUp() { session = dbTester.myBatis().openSession(false); underTest = session.getMapper(IsAliveMapper.class); } @After - public void tearDown() throws Exception { + public void tearDown() { session.close(); } @Test - public void isAlive_works_for_current_vendors() throws Exception { + public void isAlive_works_for_current_vendors() { assertThat(underTest.isAlive()).isEqualTo(IsAliveMapper.IS_ALIVE_RETURNED_VALUE); } } diff --git a/sonar-core/src/test/java/org/sonar/core/platform/ComponentKeysTest.java b/sonar-core/src/test/java/org/sonar/core/platform/ComponentKeysTest.java index 431890bc012..bf8bd8dda9d 100644 --- a/sonar-core/src/test/java/org/sonar/core/platform/ComponentKeysTest.java +++ b/sonar-core/src/test/java/org/sonar/core/platform/ComponentKeysTest.java @@ -38,7 +38,7 @@ public class ComponentKeysTest { } @Test - public void generate_key_of_object() throws Exception { + public void generate_key_of_object() { assertThat(keys.of(new FakeComponent())).isEqualTo("org.sonar.core.platform.ComponentKeysTest.FakeComponent-fake"); } diff --git a/sonar-core/src/test/java/org/sonar/core/platform/PluginInfoTest.java b/sonar-core/src/test/java/org/sonar/core/platform/PluginInfoTest.java index 02cdea2aebe..28b33ae338b 100644 --- a/sonar-core/src/test/java/org/sonar/core/platform/PluginInfoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/platform/PluginInfoTest.java @@ -190,7 +190,7 @@ public class PluginInfoTest { } @Test - public void create_from_file() throws Exception { + public void create_from_file() { File checkstyleJar = FileUtils.toFile(getClass().getResource("/org/sonar/core/plugins/sonar-checkstyle-plugin-2.8.jar")); PluginInfo checkstyleInfo = PluginInfo.create(checkstyleJar); @@ -207,7 +207,7 @@ public class PluginInfoTest { assertThat(pluginInfo.toString()).isEqualTo("[java / 1.1 / SHA1]"); } - PluginInfo withMinSqVersion(@Nullable String version) throws IOException { + PluginInfo withMinSqVersion(@Nullable String version) { PluginInfo pluginInfo = new PluginInfo("foo"); if (version != null) { pluginInfo.setMinimalSqVersion(Version.create(version)); diff --git a/sonar-core/src/test/java/org/sonar/core/platform/PluginLoaderTest.java b/sonar-core/src/test/java/org/sonar/core/platform/PluginLoaderTest.java index c32fc2f711a..e2da9f4c85f 100644 --- a/sonar-core/src/test/java/org/sonar/core/platform/PluginLoaderTest.java +++ b/sonar-core/src/test/java/org/sonar/core/platform/PluginLoaderTest.java @@ -43,7 +43,7 @@ public class PluginLoaderTest { public TemporaryFolder temp = new TemporaryFolder(); @Test - public void load_and_unload_plugins() throws Exception { + public void load_and_unload_plugins() { File checkstyleJar = FileUtils.toFile(getClass().getResource("/org/sonar/core/plugins/sonar-checkstyle-plugin-2.8.jar")); PluginInfo checkstyleInfo = PluginInfo.create(checkstyleJar); |