aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-01-05 08:43:18 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-01-05 11:45:24 +0100
commit72014388c69d60f8f167c53d892a9d60212c515d (patch)
tree332959532785dfeab622527cf46de2db7f4fe1fa /sonar-batch
parent1fc88c2c9114999f7635df19d6d33e04df95b0f6 (diff)
downloadsonarqube-72014388c69d60f8f167c53d892a9d60212c515d.tar.gz
sonarqube-72014388c69d60f8f167c53d892a9d60212c515d.zip
Revert "Revert "SONAR-5911 persist issues on server side""
This reverts commit e6bf968753bf2ec666aff3d802fa23c40ead8832.
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/issue/IssuePersister.java2
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/issue/IssuePersisterTest.java10
2 files changed, 4 insertions, 8 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/issue/IssuePersister.java b/sonar-batch/src/main/java/org/sonar/batch/issue/IssuePersister.java
index e1ca3f3b1c5..1abf3ca1f23 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/issue/IssuePersister.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/issue/IssuePersister.java
@@ -49,6 +49,6 @@ public class IssuePersister implements ScanPersister {
return;
}
Iterable<DefaultIssue> issues = issueCache.all();
- storage.save(issues);
+ // storage.save(issues);
}
}
diff --git a/sonar-batch/src/test/java/org/sonar/batch/issue/IssuePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/issue/IssuePersisterTest.java
index eb0950ac88d..a48e54a9312 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/issue/IssuePersisterTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/issue/IssuePersisterTest.java
@@ -28,11 +28,7 @@ import org.sonar.core.persistence.AbstractDaoTestCase;
import java.util.Arrays;
import java.util.List;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.*;
public class IssuePersisterTest extends AbstractDaoTestCase {
@@ -53,10 +49,10 @@ public class IssuePersisterTest extends AbstractDaoTestCase {
}
@Test
- public void should_persist_all_issues() throws Exception {
+ public void should_not_persist_issues_anymore() throws Exception {
persister.persist();
- verify(storage, times(1)).save(issues);
+ verify(storage, never()).save(issues);
}
@Test