diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-12 21:56:52 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-12 21:56:52 +0200 |
commit | 01b02a217c413cde5d971b22fdf0405a02fb8c8b (patch) | |
tree | f41d8bf4771f89ee86ac823a9e435dffc1a21461 /sonar-batch/src/test | |
parent | 5d445ea4f67e0467b796267f0768eccd4e6141f5 (diff) | |
download | sonarqube-01b02a217c413cde5d971b22fdf0405a02fb8c8b.tar.gz sonarqube-01b02a217c413cde5d971b22fdf0405a02fb8c8b.zip |
SONAR-2329 NonUniqueResultException occurs when analyzing both a maven module and its parent
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/phases/UpdateStatusJobTest.java | 4 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/shouldNotEnableSnapshotWhenNotLatest-result.xml (renamed from sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml) | 0 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/shouldNotEnableSnapshotWhenNotLatest.xml (renamed from sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot.xml) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/phases/UpdateStatusJobTest.java b/sonar-batch/src/test/java/org/sonar/batch/phases/UpdateStatusJobTest.java index e6680f5fb3b..320db8e9608 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/phases/UpdateStatusJobTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/phases/UpdateStatusJobTest.java @@ -43,8 +43,8 @@ public class UpdateStatusJobTest extends AbstractDbUnitTestCase { } @Test - public void lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot() { - assertAnalysis(6, "lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot"); + public void shouldNotEnableSnapshotWhenNotLatest() { + assertAnalysis(6, "shouldNotEnableSnapshotWhenNotLatest"); } private void assertAnalysis(int snapshotId, String fixture) { diff --git a/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/shouldNotEnableSnapshotWhenNotLatest-result.xml index ef665b1aa91..ef665b1aa91 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/shouldNotEnableSnapshotWhenNotLatest-result.xml diff --git a/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot.xml b/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/shouldNotEnableSnapshotWhenNotLatest.xml index 2315b5d8d6a..2315b5d8d6a 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/phases/UpdateStatusJobTest/shouldNotEnableSnapshotWhenNotLatest.xml |