aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-23 22:11:53 +0200
committerDavid Gageot <david@gageot.net>2012-05-23 22:13:25 +0200
commitfe9e4f3eea867948e25642c24d0ff376907a3f2a (patch)
tree4d1b06a17ff5a2d8862a4d0374cfad7b0c1d03af /sonar-batch
parent81ea266ad20bfad846ee3f96d9ea064fdd70f627 (diff)
downloadsonarqube-fe9e4f3eea867948e25642c24d0ff376907a3f2a.tar.gz
sonarqube-fe9e4f3eea867948e25642c24d0ff376907a3f2a.zip
Fix violations, simplify code and improve documentation
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchExtensionInstallerTest.java2
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/bootstrap/DatabaseBatchCompatibilityTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchExtensionInstallerTest.java b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchExtensionInstallerTest.java
index 8fa44b14fbb..7230e87f561 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchExtensionInstallerTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchExtensionInstallerTest.java
@@ -116,7 +116,7 @@ public class BatchExtensionInstallerTest {
@Override
public Object provide() {
- return Arrays.asList(BatchService.class, ServerService.class);
+ return Arrays.<Object> asList(BatchService.class, ServerService.class);
}
}
diff --git a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/DatabaseBatchCompatibilityTest.java b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/DatabaseBatchCompatibilityTest.java
index 4c023921487..eb2c719a8ee 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/DatabaseBatchCompatibilityTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/DatabaseBatchCompatibilityTest.java
@@ -110,7 +110,7 @@ public class DatabaseBatchCompatibilityTest {
@Test
public void shouldFailIfCantGetServerId() throws Exception {
- when(remoteServerMetadata.getServerId()).thenThrow(IOException.class);
+ when(remoteServerMetadata.getServerId()).thenThrow(new IOException());
thrown.expect(SonarException.class);
thrown.expectMessage("Impossible to get the ID of the remote server: http://localhost:9000");