aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2015-05-07 19:04:22 +0200
committerDavid Gageot <david@gageot.net>2015-05-07 19:12:29 +0200
commit5a587fb74fd9a8c8839b6f8582f5ff15f5183805 (patch)
treeb0201ec0afc1dad985a53c06c703a429d4bf095b /sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt
parent18834f5bf7f0bdd34912c46a83caaaac70db1e87 (diff)
downloadsonarqube-5a587fb74fd9a8c8839b6f8582f5ff15f5183805.tar.gz
sonarqube-5a587fb74fd9a8c8839b6f8582f5ff15f5183805.zip
Redundant throws clause in tests
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultCharacteristicTest.java8
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/server/internal/DefaultCharacteristicTest.java4
2 files changed, 6 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultCharacteristicTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultCharacteristicTest.java
index 8ab6cec2010..a3bddd6d0a8 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultCharacteristicTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultCharacteristicTest.java
@@ -54,7 +54,7 @@ public class DefaultCharacteristicTest {
}
@Test
- public void set_name_as_key() throws Exception {
+ public void set_name_as_key() {
DefaultCharacteristic characteristic = new DefaultCharacteristic()
.setId(1)
.setName("Compiler related portability", true);
@@ -64,7 +64,7 @@ public class DefaultCharacteristicTest {
}
@Test
- public void add_requirement() throws Exception {
+ public void add_requirement() {
DefaultRequirement requirement = new DefaultRequirement().setRuleKey(RuleKey.of("repo", "rule"));
DefaultCharacteristic characteristic = new DefaultCharacteristic()
@@ -76,7 +76,7 @@ public class DefaultCharacteristicTest {
}
@Test
- public void add_child() throws Exception {
+ public void add_child() {
DefaultCharacteristic root = new DefaultCharacteristic()
.setId(1)
.setKey("REUSABILITY");
@@ -93,7 +93,7 @@ public class DefaultCharacteristicTest {
@Test
- public void is_root() throws Exception {
+ public void is_root() {
DefaultCharacteristic characteristic = new DefaultCharacteristic()
.setId(1)
.setKey("NETWORK_USE")
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/server/internal/DefaultCharacteristicTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/server/internal/DefaultCharacteristicTest.java
index 98514fa2119..9bb3addb0ea 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/server/internal/DefaultCharacteristicTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/server/internal/DefaultCharacteristicTest.java
@@ -81,7 +81,7 @@ public class DefaultCharacteristicTest {
}
@Test
- public void is_root() throws Exception {
+ public void is_root() {
DefaultCharacteristic characteristic = new DefaultCharacteristic()
.setId(1)
.setKey("NETWORK_USE")
@@ -94,7 +94,7 @@ public class DefaultCharacteristicTest {
}
@Test
- public void is_requirement() throws Exception {
+ public void is_requirement() {
DefaultCharacteristic requirement = new DefaultCharacteristic()
.setId(1)
.setRuleKey(RuleKey.of("repo", "rule"))