]> source.dussan.org Git - sonarqube.git/commitdiff
fix IT
authorsimonbrandhof <simon.brandhof@gmail.com>
Wed, 15 Dec 2010 10:59:45 +0000 (10:59 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Wed, 15 Dec 2010 10:59:45 +0000 (10:59 +0000)
tests/integration/tests/src/it/integration-tests-backup.xml
tests/integration/tests/src/it/java/org/sonar/tests/integration/Struts139Test.java

index 075015591cd980552a787aea55a6c6a605140a42..820563ab954bd19b12d0bfc6b42210d5c0e50782 100644 (file)
           <level><![CDATA[MINOR]]></level>
         </active-rule>
       </active-rules>
+      <alerts/>
     </profile>
   </profiles>
 </sonar-config>
index 12e08db2c1d049b272c5e93e2d2528f479bd4b11..aa6cc2e20e6f491c019eb0513d7d38478242568b 100644 (file)
@@ -76,7 +76,7 @@ public class Struts139Test {
     assertThat(getProjectMeasure(CoreMetrics.VIOLATIONS_KEY).getValue(), closeTo(7726.0, 500.0));
     assertThat(getProjectMeasure(CoreMetrics.BLOCKER_VIOLATIONS_KEY).getValue(), closeTo(0.0, 20.0));
     assertThat(getProjectMeasure(CoreMetrics.CRITICAL_VIOLATIONS_KEY).getValue(), closeTo(0.0, 20.0));
-    assertThat(getProjectMeasure(CoreMetrics.MAJOR_VIOLATIONS_KEY).getValue(), closeTo(2569.0, 200.0));
+    assertThat(getProjectMeasure(CoreMetrics.MAJOR_VIOLATIONS_KEY).getValue(), closeTo(2889.0, 200.0));
     assertThat(getProjectMeasure(CoreMetrics.MINOR_VIOLATIONS_KEY).getValue(), closeTo(0.0, 200.0));
     assertThat(getProjectMeasure(CoreMetrics.INFO_VIOLATIONS_KEY).getValue(), closeTo(5157.0, 20.0));
     assertThat(getProjectMeasure(CoreMetrics.VIOLATIONS_DENSITY_KEY).getValue(), closeTo(84.6, 5.0));