aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-08-02 12:41:34 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-08-02 12:41:34 +0200
commitfde5d14d74d838648bbdef5fe8004e3b9132e996 (patch)
treec916f7cd53474217c1399e1706464768587f57db
parent8f3f017bfcd3bea852c20fa2e2ab583c203032ad (diff)
downloadsonarqube-fde5d14d74d838648bbdef5fe8004e3b9132e996.tar.gz
sonarqube-fde5d14d74d838648bbdef5fe8004e3b9132e996.zip
Disable the unit test EmailNotificationChannelTest on Mac OS
-rw-r--r--plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/EmailNotificationChannelTest.java3
1 files changed, 3 insertions, 0 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 18c1e238de5..1446e7d0b8f 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
@@ -22,12 +22,14 @@ package org.sonar.plugins.emailnotifications;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.IOException;
import java.net.ServerSocket;
+import org.apache.commons.lang.SystemUtils;
import org.apache.commons.mail.EmailException;
import org.junit.After;
import org.junit.Before;
@@ -49,6 +51,7 @@ public class EmailNotificationChannelTest {
@BeforeClass
public static void selectPort() {
+ assumeThat(SystemUtils.IS_OS_MAC_OSX, is(false));
port = getNextAvailablePort();
}