aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2015-07-07 11:04:36 +0200
committerDavid Gageot <david@gageot.net>2015-07-07 11:36:26 +0200
commitf0390ff8452ea1aecf060e70d27e21e1c04629a7 (patch)
treede04b6e5d166c3f6f892fa8d74508a8552d2fe49 /sonar-core
parent0159164dba722d784ecd98fb94b80ff63a50649b (diff)
downloadsonarqube-f0390ff8452ea1aecf060e70d27e21e1c04629a7.tar.gz
sonarqube-f0390ff8452ea1aecf060e70d27e21e1c04629a7.zip
FIX Redundant throws clause
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java12
-rw-r--r--sonar-core/src/test/java/org/sonar/core/platform/PluginClassloaderFactoryTest.java6
-rw-r--r--sonar-core/src/test/java/org/sonar/core/platform/PluginInfoTest.java2
-rw-r--r--sonar-core/src/test/java/org/sonar/core/rule/RuleKeyFunctionsTest.java4
4 files changed, 12 insertions, 12 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java b/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java
index 79a77fbd9e2..681c2d34935 100644
--- a/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java
@@ -159,7 +159,7 @@ public class TrackerTest {
}
@Test
- public void do_not_fail_if_base_issue_without_line() throws Exception {
+ public void do_not_fail_if_base_issue_without_line() {
FakeInput baseInput = new FakeInput("H1", "H2");
Issue base = baseInput.createIssueOnLine(1, RULE_SYSTEM_PRINT, "msg1");
@@ -172,7 +172,7 @@ public class TrackerTest {
}
@Test
- public void do_not_fail_if_raw_issue_without_line() throws Exception {
+ public void do_not_fail_if_raw_issue_without_line() {
FakeInput baseInput = new FakeInput("H1", "H2");
Issue base = baseInput.createIssue(RULE_SYSTEM_PRINT, "msg1");
@@ -185,7 +185,7 @@ public class TrackerTest {
}
@Test
- public void do_not_fail_if_raw_line_does_not_exist() throws Exception {
+ public void do_not_fail_if_raw_line_does_not_exist() {
FakeInput baseInput = new FakeInput();
FakeInput rawInput = new FakeInput("H1").addIssue(new Issue(200, "H200", RULE_SYSTEM_PRINT, "msg"));
@@ -198,7 +198,7 @@ public class TrackerTest {
* SONAR-3072
*/
@Test
- public void recognize_blocks_1() throws Exception {
+ public void recognize_blocks_1() {
FakeInput baseInput = FakeInput.createForSourceLines(
"package example1;",
"",
@@ -257,7 +257,7 @@ public class TrackerTest {
* SONAR-3072
*/
@Test
- public void recognize_blocks_2() throws Exception {
+ public void recognize_blocks_2() {
FakeInput baseInput = FakeInput.createForSourceLines(
"package example2;",
"",
@@ -298,7 +298,7 @@ public class TrackerTest {
}
@Test
- public void recognize_blocks_3() throws Exception {
+ public void recognize_blocks_3() {
FakeInput baseInput = FakeInput.createForSourceLines(
"package sample;",
"",
diff --git a/sonar-core/src/test/java/org/sonar/core/platform/PluginClassloaderFactoryTest.java b/sonar-core/src/test/java/org/sonar/core/platform/PluginClassloaderFactoryTest.java
index 9b5f6cf2dc5..62d41a14a3f 100644
--- a/sonar-core/src/test/java/org/sonar/core/platform/PluginClassloaderFactoryTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/platform/PluginClassloaderFactoryTest.java
@@ -43,7 +43,7 @@ public class PluginClassloaderFactoryTest {
PluginClassloaderFactory factory = new PluginClassloaderFactory(temp);
@Test
- public void create_isolated_classloader() throws Exception {
+ public void create_isolated_classloader() {
PluginClassloaderDef def = basePluginDef();
Map<PluginClassloaderDef, ClassLoader> map = factory.create(asList(def));
@@ -61,7 +61,7 @@ public class PluginClassloaderFactoryTest {
}
@Test
- public void create_classloader_compatible_with_with_old_api_dependencies() throws Exception {
+ public void create_classloader_compatible_with_with_old_api_dependencies() {
PluginClassloaderDef def = basePluginDef();
def.setCompatibilityMode(true);
ClassLoader classLoader = factory.create(asList(def)).get(def);
@@ -75,7 +75,7 @@ public class PluginClassloaderFactoryTest {
}
@Test
- public void classloader_exports_resources_to_other_classloaders() throws Exception {
+ public void classloader_exports_resources_to_other_classloaders() {
PluginClassloaderDef baseDef = basePluginDef();
PluginClassloaderDef dependentDef = dependentPluginDef();
Map<PluginClassloaderDef, ClassLoader> map = factory.create(asList(baseDef, dependentDef));
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 2b02b48d42f..35893ede34e 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
@@ -209,7 +209,7 @@ public class PluginInfoTest {
* it as base plugin anymore
*/
@Test
- public void l10n_plugins_should_not_extend_english_plugin() throws Exception {
+ public void l10n_plugins_should_not_extend_english_plugin() {
PluginInfo pluginInfo = new PluginInfo("l10nfr").setBasePlugin("l10nen");
assertThat(pluginInfo.getBasePlugin()).isNull();
diff --git a/sonar-core/src/test/java/org/sonar/core/rule/RuleKeyFunctionsTest.java b/sonar-core/src/test/java/org/sonar/core/rule/RuleKeyFunctionsTest.java
index cf430a18265..46ac1d819ba 100644
--- a/sonar-core/src/test/java/org/sonar/core/rule/RuleKeyFunctionsTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/rule/RuleKeyFunctionsTest.java
@@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class RuleKeyFunctionsTest {
@Test
- public void stringToRuleKey() throws Exception {
+ public void stringToRuleKey() {
Collection<String> strings = Arrays.asList("js:S001", "java:S002");
List<RuleKey> keys = from(strings).transform(RuleKeyFunctions.stringToRuleKey()).toList();
@@ -40,7 +40,7 @@ public class RuleKeyFunctionsTest {
}
@Test
- public void on_static_methods() throws Exception {
+ public void on_static_methods() {
assertThat(TestUtils.hasOnlyPrivateConstructors(RuleKeyFunctions.class)).isTrue();
}
}