summaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2016-03-16 09:33:56 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2016-03-16 09:54:13 +0100
commitf29df5da27030596d7d3ef07b4e833bb664cb940 (patch)
treee073c4cab615853eab8b6a3c92dc06abb926a2c3 /sonar-batch/src/test
parent812bbbf8aee19bab8e9cc7d93d450dc5f31e991c (diff)
downloadsonarqube-f29df5da27030596d7d3ef07b4e833bb664cb940.tar.gz
sonarqube-f29df5da27030596d7d3ef07b4e833bb664cb940.zip
SONAR-7235 Improve error message when server public URL is not a valid URL
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java b/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java
index 15685428522..bb54bfb9113 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java
@@ -118,10 +118,10 @@ public class ReportPublisherTest {
public void fail_if_public_url_malformed() throws IOException {
settings.setProperty(CoreProperties.SERVER_BASE_URL, "invalid");
ReportPublisher underTest = new ReportPublisher(settings, wsClient, contextPublisher, reactor, mode, mock(TempFolder.class), new ReportPublisherStep[0]);
-
+
exception.expect(MessageException.class);
exception.expectMessage("Failed to parse public URL set in SonarQube server: invalid");
- underTest.logSuccess("TASK-123");
+ underTest.start();
}
@Test