]> source.dussan.org Git - sonarqube.git/commitdiff
Computation - add some tests and filter ComputationStep by project qualifier
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 3 Feb 2015 08:54:36 +0000 (09:54 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 5 Feb 2015 15:46:29 +0000 (16:46 +0100)
server/sonar-server/src/test/java/org/sonar/server/computation/db/AnalysisReportDaoTest.java

index 9cab6044c2a0f1b313f1c97be93591d411090c59..e0f74762a67a2b1efdd64582e753f4b94751e50d 100644 (file)
@@ -88,6 +88,9 @@ public class AnalysisReportDaoTest {
     session.commit();
 
     db.assertDbUnit(getClass(), "insert-result.xml", "analysis_reports");
+    // update dto with generated id
+    assertThat(report1.getId()).isNotNull();
+    assertThat(report2.getId()).isNotNull();
   }
 
   @Test