aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-email-notifications-plugin/src
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 /plugins/sonar-email-notifications-plugin/src
parent18834f5bf7f0bdd34912c46a83caaaac70db1e87 (diff)
downloadsonarqube-5a587fb74fd9a8c8839b6f8582f5ff15f5183805.tar.gz
sonarqube-5a587fb74fd9a8c8839b6f8582f5ff15f5183805.zip
Redundant throws clause in tests
Diffstat (limited to 'plugins/sonar-email-notifications-plugin/src')
-rw-r--r--plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java8
1 files changed, 4 insertions, 4 deletions
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();