aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-11-02 14:45:47 +0000
committerGodin <mandrikov@gmail.com>2010-11-02 14:45:47 +0000
commitb706328db7cb8465fc9a28c8534262385ab67c52 (patch)
tree8f5e52a3995ff0e44390a5536d587f4af1f2af28
parent07b49fe10430ced58675c876a4dea2f03e7dc0a8 (diff)
downloadsonarqube-b706328db7cb8465fc9a28c8534262385ab67c52.tar.gz
sonarqube-b706328db7cb8465fc9a28c8534262385ab67c52.zip
SONAR-1772: Fix integration test
-rw-r--r--tests/integration/tests/maven-projects/SONAR-1772/pom.xml2
-rw-r--r--tests/integration/tests/src/it/integration-tests-backup.xml47
-rw-r--r--tests/integration/tests/src/it/selenium/SONAR-1772.html2
3 files changed, 32 insertions, 19 deletions
diff --git a/tests/integration/tests/maven-projects/SONAR-1772/pom.xml b/tests/integration/tests/maven-projects/SONAR-1772/pom.xml
index c03659a65d7..40993ba0d57 100644
--- a/tests/integration/tests/maven-projects/SONAR-1772/pom.xml
+++ b/tests/integration/tests/maven-projects/SONAR-1772/pom.xml
@@ -21,6 +21,6 @@
</build>
<properties>
- <sonar.profile>Sonar way with Findbugs</sonar.profile>
+ <sonar.profile>SONAR-1772</sonar.profile>
</properties>
</project>
diff --git a/tests/integration/tests/src/it/integration-tests-backup.xml b/tests/integration/tests/src/it/integration-tests-backup.xml
index 81f1f8876da..7657d0c84ac 100644
--- a/tests/integration/tests/src/it/integration-tests-backup.xml
+++ b/tests/integration/tests/src/it/integration-tests-backup.xml
@@ -10,21 +10,20 @@
</property>
</properties>
<profiles>
- <profile>
- <name><![CDATA[SONAR-787-checkstyle-SuppressionCommentFilter]]></name>
- <default-profile><![CDATA[false]]></default-profile>
- <provided><![CDATA[false]]></provided>
- <language><![CDATA[java]]></language>
- <active-rules>
- <active-rule>
- <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck]]></key>
- <plugin><![CDATA[checkstyle]]></plugin>
- <level><![CDATA[ERROR]]></level>
- </active-rule>
- </active-rules>
- <alerts/>
- </profile>
-
+ <profile>
+ <name><![CDATA[SONAR-787-checkstyle-SuppressionCommentFilter]]></name>
+ <default-profile><![CDATA[false]]></default-profile>
+ <provided><![CDATA[false]]></provided>
+ <language><![CDATA[java]]></language>
+ <active-rules>
+ <active-rule>
+ <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck]]></key>
+ <plugin><![CDATA[checkstyle]]></plugin>
+ <level><![CDATA[ERROR]]></level>
+ </active-rule>
+ </active-rules>
+ <alerts/>
+ </profile>
<profile>
<name><![CDATA[SONAR-767-pmd-close-resource-rule]]></name>
<default-profile><![CDATA[false]]></default-profile>
@@ -1973,7 +1972,7 @@
<plugin><![CDATA[checkstyle]]></plugin>
<level><![CDATA[ERROR]]></level>
</active-rule>
- <active-rule>
+ <active-rule>
<key><![CDATA[AvoidDuplicateLiterals]]></key>
<plugin><![CDATA[pmd]]></plugin>
<level><![CDATA[ERROR]]></level>
@@ -1989,5 +1988,19 @@
<active-rules/>
<alerts/>
</profile>
+ <profile>
+ <name><![CDATA[SONAR-1772]]></name>
+ <default-profile><![CDATA[false]]></default-profile>
+ <provided><![CDATA[false]]></provided>
+ <language><![CDATA[java]]></language>
+ <active-rules>
+ <active-rule>
+ <key><![CDATA[NP_DEREFERENCE_OF_READLINE_VALUE]]></key>
+ <plugin><![CDATA[findbugs]]></plugin>
+ <level><![CDATA[ERROR]]></level>
+ </active-rule>
+ </active-rules>
+ <alerts/>
+ </profile>
</profiles>
-</sonar-config> \ No newline at end of file
+</sonar-config>
diff --git a/tests/integration/tests/src/it/selenium/SONAR-1772.html b/tests/integration/tests/src/it/selenium/SONAR-1772.html
index 6cc3947287d..80f4f9fb742 100644
--- a/tests/integration/tests/src/it/selenium/SONAR-1772.html
+++ b/tests/integration/tests/src/it/selenium/SONAR-1772.html
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>assertTextPresent</td>
- <td>profile Sonar way with Findbugs</td>
+ <td>profile SONAR-1772</td>
<td></td>
</tr>
<tr>