aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectIssuesDashboardTest.java2
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/notifications/alerts/NewAlertsTest.java2
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzerTest.java12
-rw-r--r--plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java8
4 files changed, 12 insertions, 12 deletions
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectIssuesDashboardTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectIssuesDashboardTest.java
index 28924a13293..716a43843b6 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectIssuesDashboardTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectIssuesDashboardTest.java
@@ -42,7 +42,7 @@ public class ProjectIssuesDashboardTest {
ProjectIssuesDashboard template;
@Before
- public void setUp() throws Exception {
+ public void setUp() {
IssueFilterDao issueFilterDao = new IssueFilterDao(dbTester.myBatis());
template = new ProjectIssuesDashboard(issueFilterDao);
}
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/notifications/alerts/NewAlertsTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/notifications/alerts/NewAlertsTest.java
index dd35f5871cc..4dab1794650 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/notifications/alerts/NewAlertsTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/notifications/alerts/NewAlertsTest.java
@@ -39,7 +39,7 @@ public class NewAlertsTest {
NewAlerts dispatcher = new NewAlerts(notificationManager);
@Test
- public void should_not_dispatch_if_not_alerts_notification() throws Exception {
+ public void should_not_dispatch_if_not_alerts_notification() {
Notification notification = new Notification("other-notif");
dispatcher.performDispatch(notification, context);
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzerTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzerTest.java
index b0efe896194..75297f6578f 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzerTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzerTest.java
@@ -78,7 +78,7 @@ public class NewCoverageFileAnalyzerTest {
}
@Test
- public void shouldDoNothingIfNoScmData() throws ParseException {
+ public void shouldDoNothingIfNoScmData() {
when(context.getMeasure(CoreMetrics.COVERAGE_LINE_HITS_DATA))
.thenReturn(new Measure(CoreMetrics.COVERAGE_LINE_HITS_DATA, "1=10"));
@@ -87,7 +87,7 @@ public class NewCoverageFileAnalyzerTest {
}
@Test
- public void shouldDoNothingIfNoCoverageData() throws ParseException {
+ public void shouldDoNothingIfNoCoverageData() {
writer.writeComponentChangesets(BatchReport.Changesets.newBuilder()
.setComponentRef(1)
.addChangeset(Changeset.newBuilder()
@@ -102,7 +102,7 @@ public class NewCoverageFileAnalyzerTest {
}
@Test
- public void shouldGetNewLines() throws ParseException {
+ public void shouldGetNewLines() {
when(context.getMeasure(CoreMetrics.COVERAGE_LINE_HITS_DATA)).thenReturn(
new Measure(CoreMetrics.COVERAGE_LINE_HITS_DATA, "10=2;11=3"));
writer.writeComponentChangesets(BatchReport.Changesets.newBuilder()
@@ -148,7 +148,7 @@ public class NewCoverageFileAnalyzerTest {
}
@Test
- public void shouldGetNewConditions() throws ParseException {
+ public void shouldGetNewConditions() {
when(context.getMeasure(CoreMetrics.COVERAGE_LINE_HITS_DATA)).thenReturn(
new Measure(CoreMetrics.COVERAGE_LINE_HITS_DATA, "10=2;11=3"));
when(context.getMeasure(CoreMetrics.CONDITIONS_BY_LINE)).thenReturn(
@@ -198,7 +198,7 @@ public class NewCoverageFileAnalyzerTest {
}
@Test
- public void shouldNotGetNewConditionsWhenNewLineHasNoConditions() throws ParseException {
+ public void shouldNotGetNewConditionsWhenNewLineHasNoConditions() {
when(context.getMeasure(CoreMetrics.COVERAGE_LINE_HITS_DATA)).thenReturn(
new Measure(CoreMetrics.COVERAGE_LINE_HITS_DATA, "10=2;11=3"));
when(context.getMeasure(CoreMetrics.CONDITIONS_BY_LINE)).thenReturn(
@@ -236,7 +236,7 @@ public class NewCoverageFileAnalyzerTest {
}
@Test
- public void shouldLeaveNullValueWhenNothingHasChanged() throws Exception {
+ public void shouldLeaveNullValueWhenNothingHasChanged() {
when(context.getMeasure(CoreMetrics.COVERAGE_LINE_HITS_DATA)).thenReturn(
new Measure(CoreMetrics.COVERAGE_LINE_HITS_DATA, "2=1;3=1"));
diff --git a/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java b/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java
index cd7113e44e0..02c43eb00d2 100644
--- a/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java
+++ b/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java
@@ -95,7 +95,7 @@ public class EmailNotificationChannelTest {
}
@Test
- public void shouldThrowAnExceptionWhenUnableToSendTestEmail() throws Exception {
+ public void shouldThrowAnExceptionWhenUnableToSendTestEmail() {
configure();
server.stop();
@@ -108,7 +108,7 @@ public class EmailNotificationChannelTest {
}
@Test
- public void shouldNotSendEmailWhenHostnameNotConfigured() throws Exception {
+ public void shouldNotSendEmailWhenHostnameNotConfigured() {
EmailMessage emailMessage = new EmailMessage()
.setTo("user@nowhere")
.setSubject("Foo")
@@ -176,7 +176,7 @@ public class EmailNotificationChannelTest {
}
@Test
- public void shouldNotThrowAnExceptionWhenUnableToSendEmail() throws Exception {
+ public void shouldNotThrowAnExceptionWhenUnableToSendEmail() {
configure();
server.stop();
@@ -188,7 +188,7 @@ public class EmailNotificationChannelTest {
}
@Test
- public void shouldSendTestEmailWithSTARTTLS() throws Exception {
+ public void shouldSendTestEmailWithSTARTTLS() {
server.getServer().setEnableTLS(true);
server.getServer().setRequireTLS(true);
configure();