aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-bootstrapper
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-25 10:15:23 +0200
committerDavid Gageot <david@gageot.net>2012-05-25 11:17:22 +0200
commit2f751bd1fa0fc9202f73d3ba165af02182e17b0c (patch)
treed1c4dab703f3b62a86503ef5dc154997faa4ebae /sonar-batch-bootstrapper
parent06d5b65b5ef22119ee9e48216c211bbb8832c53e (diff)
downloadsonarqube-2f751bd1fa0fc9202f73d3ba165af02182e17b0c.tar.gz
sonarqube-2f751bd1fa0fc9202f73d3ba165af02182e17b0c.zip
Suppress warnings
Diffstat (limited to 'sonar-batch-bootstrapper')
-rw-r--r--sonar-batch-bootstrapper/src/test/java/org/sonar/batch/bootstrapper/BootstrapperTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-batch-bootstrapper/src/test/java/org/sonar/batch/bootstrapper/BootstrapperTest.java b/sonar-batch-bootstrapper/src/test/java/org/sonar/batch/bootstrapper/BootstrapperTest.java
index 2321af9c15e..8f3cc41871e 100644
--- a/sonar-batch-bootstrapper/src/test/java/org/sonar/batch/bootstrapper/BootstrapperTest.java
+++ b/sonar-batch-bootstrapper/src/test/java/org/sonar/batch/bootstrapper/BootstrapperTest.java
@@ -45,8 +45,10 @@ public class BootstrapperTest {
public void shouldReturnUserAgent() {
Bootstrapper bootstrapper = new Bootstrapper("test/0.1", "http://unknown.foo", new File("target"));
String userAgent = bootstrapper.getUserAgent();
+
assertThat(userAgent.length(), greaterThan(0));
- assertThat(userAgent, allOf(startsWith("sonar-bootstrapper/"), endsWith(" test/0.1")));
+ assertThat(userAgent, startsWith("sonar-bootstrapper/"));
+ assertThat(userAgent, endsWith(" test/0.1"));
}
@Test