diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-07 14:22:42 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-07 14:23:02 +0100 |
commit | ebee9e8be46ed85227fb4ded4afb34f12d6d465f (patch) | |
tree | c8f55ce23f817dc961979f14cc3cbb7fc92c197f /tests | |
parent | c1904d3f5fd44873a8ef2b6d097d4bcb731b92a7 (diff) | |
download | sonarqube-ebee9e8be46ed85227fb4ded4afb34f12d6d465f.tar.gz sonarqube-ebee9e8be46ed85227fb4ded4afb34f12d6d465f.zip |
Move integration & volume tests
Diffstat (limited to 'tests')
494 files changed, 0 insertions, 25240 deletions
diff --git a/tests/integration/checkstyle-extensions/checkstyle-extensions.xml b/tests/integration/checkstyle-extensions/checkstyle-extensions.xml deleted file mode 100644 index 3419181c828..00000000000 --- a/tests/integration/checkstyle-extensions/checkstyle-extensions.xml +++ /dev/null @@ -1,16 +0,0 @@ -<rules>
- <rule> - <key>org.sonar.it.checkstyle.MethodsCountCheck</key>
- <name>Methods Count Check</name>
- <configKey>Checker/TreeWalker/org.sonar.it.checkstyle.MethodsCountCheck</configKey>
- <category name="Usability"/>
- <description>Count methods.</description>
- <param> - <key>minMethodsCount</key> - <description>Le nombre minimum de méthodes. 10 par défaut.</description>
- - <!-- defaultValue is no more used since sonar 1.5. We keep it in this file to test backward compatibility -->
- <defaultValue>10</defaultValue>
- </param>
- </rule>
- </rules>
\ No newline at end of file diff --git a/tests/integration/checkstyle-extensions/pom.xml b/tests/integration/checkstyle-extensions/pom.xml deleted file mode 100644 index 6b5d4ed9342..00000000000 --- a/tests/integration/checkstyle-extensions/pom.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>integration</artifactId> - <version>2.6-SNAPSHOT</version> - </parent> - <artifactId>checkstyle-extensions</artifactId> - <name>Sonar :: Integration Tests :: Checkstyle Extensions</name> - - <dependencies> - <dependency> - <groupId>checkstyle</groupId> - <artifactId>checkstyle</artifactId> - <version>5.1</version> - </dependency> - - <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - <version>1.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.7</version> - <scope>test</scope> - </dependency> - </dependencies> -</project>
\ No newline at end of file diff --git a/tests/integration/checkstyle-extensions/src/main/java/org/sonar/it/checkstyle/MethodsCountCheck.java b/tests/integration/checkstyle-extensions/src/main/java/org/sonar/it/checkstyle/MethodsCountCheck.java deleted file mode 100644 index b82a6a98d17..00000000000 --- a/tests/integration/checkstyle-extensions/src/main/java/org/sonar/it/checkstyle/MethodsCountCheck.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.sonar.it.checkstyle; - -import com.puppycrawl.tools.checkstyle.api.Check; -import com.puppycrawl.tools.checkstyle.api.DetailAST; -import com.puppycrawl.tools.checkstyle.api.TokenTypes; - -public class MethodsCountCheck extends Check { - - private int minMethodsCount = 1; - - private int methodsCount = 0; - private DetailAST classAST = null; - - public void setMinMethodsCount(int minMethodsCount) { - this.minMethodsCount = minMethodsCount; - } - - public int[] getDefaultTokens() { - return new int[]{TokenTypes.CLASS_DEF, TokenTypes.METHOD_DEF}; - } - - public void beginTree(DetailAST rootAST) { - methodsCount = 0; - classAST = null; - } - - public void visitToken(DetailAST ast) { - //ensure this is an unit test. - if ( ast.getType() == TokenTypes.CLASS_DEF ) { - classAST = ast; - - } else if ( ast.getType() == TokenTypes.METHOD_DEF ) { - methodsCount++; - } - } - - public void finishTree(DetailAST rootAST) { - super.finishTree(rootAST); - if (classAST != null && methodsCount < minMethodsCount) { - log(classAST.getLineNo(), classAST.getColumnNo(), "Too few methods (" + methodsCount + ") in class" ); - } - } -} diff --git a/tests/integration/pmd-extensions/pmd-extensions.xml b/tests/integration/pmd-extensions/pmd-extensions.xml deleted file mode 100644 index 720108e5d2b..00000000000 --- a/tests/integration/pmd-extensions/pmd-extensions.xml +++ /dev/null @@ -1,38 +0,0 @@ -<rules>
- <rule> - <key>MaximumMethodsCountCheck</key>
- <name>Maximum Methods Count Check</name>
- <configKey>rulesets/extensions.xml/MaximumMethodsCountCheck</configKey>
- <category name="Usability"/>
- <description>Maximum number of methods authorised</description>
- <param> - <key>maxAuthorisedMethodsCount</key>
- <description>Maximum number of methods authorised. Default is 2.</description>
- </param>
- </rule>
- <rule> - <key>AvoidIfWithoutBrace</key>
- <name>Avoid if without using brace</name>
- <configKey>rulesets/extensions.xml/AvoidIfWithoutBrace</configKey>
- <category name="Usability"/>
- <description></description>
- </rule> - <rule> - <key>PreventUseOfEmptyClass</key> - <priority>MAJOR</priority> - <name><![CDATA[Prevent use of EmptyClass]]></name> - <configKey><![CDATA[net.sourceforge.pmd.rules.XPathRule]]></configKey> - <category name="Maintainability"/> - <description></description> - <param> - <key>xpath</key> - <description><![CDATA[XPath expressions.]]></description> - <defaultValue>//VariableDeclarator[../Type/ReferenceType/ClassOrInterfaceType[@Image='EmptyClass']]</defaultValue> - </param> - <param> - <key>message</key> - <description><![CDATA[Message to display when a violation occurs.]]></description> - <defaultValue>Prevent use of EmptyClass class</defaultValue> - </param> - </rule>
- </rules>
\ No newline at end of file diff --git a/tests/integration/pmd-extensions/pom.xml b/tests/integration/pmd-extensions/pom.xml deleted file mode 100644 index 36da9e00a54..00000000000 --- a/tests/integration/pmd-extensions/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>integration</artifactId> - <version>2.6-SNAPSHOT</version> - </parent> - - <artifactId>pmd-extensions</artifactId> - <name>Sonar :: Integration Tests :: PMD Extensions</name> - <description>Samples of PMD extensions</description> - - <dependencies> - <dependency> - <groupId>pmd</groupId> - <artifactId>pmd</artifactId> - <version>4.1</version> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - </plugins> - </build> -</project>
\ No newline at end of file diff --git a/tests/integration/pmd-extensions/src/main/java/org/sonar/it/pmd/MaximumMethodsCountCheck.java b/tests/integration/pmd-extensions/src/main/java/org/sonar/it/pmd/MaximumMethodsCountCheck.java deleted file mode 100644 index 2d8abb00f49..00000000000 --- a/tests/integration/pmd-extensions/src/main/java/org/sonar/it/pmd/MaximumMethodsCountCheck.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.sonar.it.pmd; - -import java.util.ArrayList; -import java.util.List; -import net.sourceforge.pmd.AbstractRule; -import net.sourceforge.pmd.ast.ASTClassOrInterfaceBody; -import net.sourceforge.pmd.ast.ASTMethodDeclaration; -import net.sourceforge.pmd.properties.IntegerProperty; - -public class MaximumMethodsCountCheck extends AbstractRule { - - private static final IntegerProperty propertyDescriptor = new IntegerProperty( - "maxAuthorisedMethodsCount", "Maximum number of methods authorised", 2, 1.0f); - - public Object visit(ASTClassOrInterfaceBody node, Object data) { - List<ASTMethodDeclaration> methods = new ArrayList<ASTMethodDeclaration>(); - methods = (List<ASTMethodDeclaration>)node.findChildrenOfType(ASTMethodDeclaration.class); - - if (methods.size() > getIntProperty(propertyDescriptor)) { - addViolation(data, node); - } - return super.visit(node,data); - } - -} diff --git a/tests/integration/pmd-extensions/src/main/resources/rulesets/extensions.xml b/tests/integration/pmd-extensions/src/main/resources/rulesets/extensions.xml deleted file mode 100644 index 6997ed4406b..00000000000 --- a/tests/integration/pmd-extensions/src/main/resources/rulesets/extensions.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0"?> -<ruleset name="PMD extensions" - xmlns="http://pmd.sf.net/ruleset/1.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" - xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> - <rule name="MaximumMethodsCountCheck" - message="Avoid too many methods" - class="org.sonar.it.pmd.MaximumMethodsCountCheck"> - <description> - Avoid too many methods - </description> - <priority>3</priority> - <properties> - <property name="maxAuthorisedMethodsCount" description="Maximum number of methods authorised" value="3"/> - </properties> - <example> - <![CDATA[ - // too many methods! - public void doSomething() {} - public void doSomething2() {} - public void doSomething3() {} - public void doSomething4() {} - - ]]> - </example> - </rule> - <rule name="AvoidIfWithoutBrace" - message="Avoid if without using brace" - class="net.sourceforge.pmd.rules.XPathRule"> - <description> - Avoid if without using brace - </description> - <properties> - <property name="xpath"> - <value> - <![CDATA[ - //IfStatement[not(Statement/Block)] - ]]> - </value> - </property> - </properties> - <example> - <![CDATA[ - // don't do this! - if (true) - test = "test"; - ]]> - </example> - </rule> -</ruleset>
\ No newline at end of file diff --git a/tests/integration/pom.xml b/tests/integration/pom.xml deleted file mode 100644 index 4b48d4b1682..00000000000 --- a/tests/integration/pom.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar</artifactId> - <version>2.6-SNAPSHOT</version> - <relativePath>../..</relativePath> - </parent> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>integration</artifactId> - <packaging>pom</packaging> - <name>Sonar :: Integration Tests</name> - - <modules> - <module>sonar-it-reference-plugin</module> - <module>checkstyle-extensions</module> - <module>pmd-extensions</module> - <module>tests</module> - </modules> - <build> - <plugins> - <plugin> - <artifactId>maven-deploy-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - </plugins> - </build> - -</project>
\ No newline at end of file diff --git a/tests/integration/sonar-it-reference-plugin/pom.xml b/tests/integration/sonar-it-reference-plugin/pom.xml deleted file mode 100644 index 27d50c1734b..00000000000 --- a/tests/integration/sonar-it-reference-plugin/pom.xml +++ /dev/null @@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>integration</artifactId> - <version>2.6-SNAPSHOT</version> - </parent> - - <artifactId>sonar-it-reference-plugin</artifactId> - <name>Sonar :: Integration Tests :: Reference Plugin</name> - <packaging>sonar-plugin</packaging> - <description>My Sonar plugin</description> - - <licenses> - <license> - <name>LGPL 3</name> - </license> - </licenses> - - <organization> - <name>SonarSource</name> - <url>http://www.sonarsource.org</url> - </organization> - - <dependencies> - <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-plugin-api</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-gwt-api</artifactId> - <version>${project.version}</version> - <scope>provided</scope> - </dependency> - - - <!-- required dependencies which are not provided by sonar --> - <dependency> - <groupId>commons-i18n</groupId> - <artifactId>commons-i18n</artifactId> - <version>0.5</version> - </dependency> - - <!-- external dependencies --> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-project</artifactId> - <version>2.0.7</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-plugin-api</artifactId> - <version>2.0.7</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-core</artifactId> - <version>2.0.7</version> - <scope>provided</scope> - </dependency> - - <!-- only for GWT extensions --> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>2.0.3</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-incubator</artifactId> - <version>2.0.1</version> - <scope>provided</scope> - </dependency> - - <!-- unit tests --> - <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-testing-harness</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-packaging-maven-plugin</artifactId> - <version>1.0</version> - <extensions>true</extensions> - <configuration> - <pluginClass>itests.ITestsPlugin</pluginClass> - </configuration> - </plugin> - - <plugin> - <!-- build GWT extensions --> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>1.2</version> - <executions> - <execution> - <configuration> - <modules> - <module>itests.resourcetab.GwtSampleResourceTab</module> - <module>itests.page.GwtModule</module> - </modules> - <webappDirectory>${project.build.directory}/classes</webappDirectory> - - <!-- do not break on two lines --> - <extraJvmArgs>-Xmx512m -Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory</extraJvmArgs> - </configuration> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <!-- Java 1.5 --> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - </plugins> - </build> -</project> diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ExcludedResourceFilter.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ExcludedResourceFilter.java deleted file mode 100644 index 4c045cdb3b9..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ExcludedResourceFilter.java +++ /dev/null @@ -1,13 +0,0 @@ -package itests; - -import org.apache.commons.lang.StringUtils; -import org.sonar.api.batch.ResourceFilter; -import org.sonar.api.resources.Resource; -import org.sonar.api.resources.Scopes; - -public final class ExcludedResourceFilter implements ResourceFilter { - - public boolean isIgnored(Resource resource) { - return Scopes.isFile(resource) && StringUtils.contains(resource.getName(), "ExcludedByFilter"); - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java deleted file mode 100644 index 3d727a9ce01..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests; - -import itests.footer.SampleFooter; -import itests.languages.LanguageWithoutRulesEngine; -import itests.page.GwtSamplePage; -import itests.page.RubyApiTestsPage; -import itests.resourcetab.SampleResourceTab; -import itests.ws.RubyWebService; -import org.sonar.api.Plugin; - -import java.util.ArrayList; -import java.util.List; - -public class ITestsPlugin implements Plugin { - - public String getKey() { - return "it"; - } - - public String getName() { - return "Integration tests"; - } - - public String getDescription() { - return "Integration tests"; - } - - public List getExtensions() { - List extensions = new ArrayList(); - - extensions.add(SampleSensor.class); - extensions.add(LanguageWithoutRulesEngine.class); - extensions.add(ServerSideExtensionUsingExternalDependency.class); - extensions.add(ExcludedResourceFilter.class); - - // web - extensions.add(SampleResourceTab.class); - extensions.add(SampleFooter.class); - extensions.add(GwtSamplePage.class); - extensions.add(RubyApiTestsPage.class); - - // web service - extensions.add(RubyWebService.class); - - return extensions; - } - - @Override - public String toString() { - return getKey(); - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/SampleSensor.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/SampleSensor.java deleted file mode 100644 index 0ec5c71953b..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/SampleSensor.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests; - -import org.apache.commons.i18n.bundles.MessageBundle; -import org.sonar.api.batch.Sensor; -import org.sonar.api.batch.SensorContext; -import org.sonar.api.resources.Project; - -public class SampleSensor implements Sensor { - public boolean shouldExecuteOnProject(Project project) { - return true; - } - - public void analyse(Project project, SensorContext context) { - System.out.println(" Check usage of plugin dependencies (new feature since sonar 2.2)"); - - - System.out.print("Loading external dependency from " + getClass().getName() + ": "); - MessageBundle bundle = new MessageBundle("12345"); - System.out.println("OK"); - - System.out.print(" Plugin isolation (can not access other plugin classes): "); - try { - Class.forName("org.sonar.plugins.checkstyle.CheckstyleSensor"); - System.out.println("KO"); - - } catch (ClassNotFoundException e) { - System.out.println("OK"); - } - } - - @Override - public String toString() { - return getClass().getSimpleName(); - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ServerSideExtensionUsingExternalDependency.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ServerSideExtensionUsingExternalDependency.java deleted file mode 100644 index 53d241c0651..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ServerSideExtensionUsingExternalDependency.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests; - -import org.apache.commons.i18n.bundles.MessageBundle; -import org.sonar.api.ServerExtension; - -public class ServerSideExtensionUsingExternalDependency implements ServerExtension { - - public ServerSideExtensionUsingExternalDependency() { - System.out.print("Loading external dependency from " + getClass().getName() + ": "); - MessageBundle bundle = new MessageBundle("12345"); - System.out.println("OK"); - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/footer/SampleFooter.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/footer/SampleFooter.java deleted file mode 100644 index 32895e87e11..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/footer/SampleFooter.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.footer; - -import org.sonar.api.web.Footer; - -public class SampleFooter implements Footer { - public String getHtml() { - return "<div style='background-color: #111;color: #efefef;text-align=left;padding: 5px 10px;'>Sample footer</div>"; - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/languages/LanguageWithoutRulesEngine.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/languages/LanguageWithoutRulesEngine.java deleted file mode 100644 index b4951db60ba..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/languages/LanguageWithoutRulesEngine.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.languages; - -import org.sonar.api.database.model.ResourceModel; -import org.sonar.api.resources.AbstractLanguage; - -public class LanguageWithoutRulesEngine extends AbstractLanguage { - private static final String[] SUFFIXES = new String[]{"unknown"}; - - public LanguageWithoutRulesEngine() { - super("lwre", "Language without rules engine"); - } - - public ResourceModel getParent(ResourceModel resource) { - return null; - } - - public boolean matchExclusionPattern(ResourceModel resource, String wildcardPattern) { - return false; - } - - public String[] getFileSuffixes() { - return SUFFIXES; - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/GwtSamplePage.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/GwtSamplePage.java deleted file mode 100644 index 9b208ef9682..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/GwtSamplePage.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.page; - -import itests.page.client.GwtModule; -import org.sonar.api.web.GwtPage; -import org.sonar.api.web.NavigationSection; - -@NavigationSection({NavigationSection.HOME}) -public class GwtSamplePage extends GwtPage { - - public String getGwtId() { - return GwtModule.GWT_ID; - } - - public String getTitle() { - return "GWT sample"; - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/RubyApiTestsPage.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/RubyApiTestsPage.java deleted file mode 100644 index f39c949411a..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/RubyApiTestsPage.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.page; - -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.NavigationSection; -import org.sonar.api.web.RubyRailsPage; -import org.sonar.api.web.UserRole; - -@NavigationSection({NavigationSection.HOME}) -@UserRole(UserRole.USER) -public class RubyApiTestsPage extends AbstractRubyTemplate implements RubyRailsPage { - - public String getTitle() { - return "Ruby API tests"; - } - - @Override - public String getTemplatePath() { - return "/itests/page/ruby_api_tests_page.html.erb"; - } - - public String getId() { - return this.getClass().getName(); - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/client/GwtModule.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/client/GwtModule.java deleted file mode 100644 index 19aa9c2e820..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/page/client/GwtModule.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.page.client; - -import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.Widget; -import org.sonar.gwt.ui.Page; - -public class GwtModule extends Page { - - public static final String GWT_ID = "itests.page.GwtModule"; - - @Override - protected Widget doOnModuleLoad() { - return new Label("this is a GWT sample"); - } -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/resourcetab/SampleResourceTab.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/resourcetab/SampleResourceTab.java deleted file mode 100644 index 5e875599f6a..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/resourcetab/SampleResourceTab.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.resourcetab; - -import itests.resourcetab.client.GwtSampleResourceTab; -import org.sonar.api.web.GwtPage; -import org.sonar.api.web.NavigationSection; -import org.sonar.api.web.UserRole; - -@UserRole(UserRole.USER) -@NavigationSection(NavigationSection.RESOURCE_TAB) -public class SampleResourceTab extends GwtPage { - public String getTitle() { - return "Tab Sample"; - } - - public String getGwtId() { - return GwtSampleResourceTab.GWT_ID; - } -}
\ No newline at end of file diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/resourcetab/client/GwtSampleResourceTab.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/resourcetab/client/GwtSampleResourceTab.java deleted file mode 100644 index efeb007d801..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/resourcetab/client/GwtSampleResourceTab.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.resourcetab.client; - -import com.google.gwt.user.client.ui.HTML; -import com.google.gwt.user.client.ui.Widget; -import org.sonar.gwt.ui.Page; -import org.sonar.wsclient.services.Resource; - -public class GwtSampleResourceTab extends Page { - public static final String GWT_ID = "itests.resourcetab.GwtSampleResourceTab"; - - @Override - protected Widget doOnResourceLoad(Resource resource) { - return new HTML("This is a sample of viewer"); - } - -}
\ No newline at end of file diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ws/RubyWebService.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ws/RubyWebService.java deleted file mode 100644 index 9cd876435b0..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ws/RubyWebService.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package itests.ws; - -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.RubyRailsWebservice; - -public class RubyWebService extends AbstractRubyTemplate implements RubyRailsWebservice { - - @Override - public String getTemplatePath() { - return "/itests/ws/ruby_ws_controller.rb"; - } - - public String getId() { - return "RubyWebService"; - } - -} diff --git a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/page/GwtModule.gwt.xml b/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/page/GwtModule.gwt.xml deleted file mode 100644 index 9046f23e85e..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/page/GwtModule.gwt.xml +++ /dev/null @@ -1,10 +0,0 @@ -<module> - - <inherits name='com.google.gwt.user.User'/> - <inherits name="com.google.gwt.json.JSON"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="org.sonar.Sonar"/> - - <entry-point class='itests.page.client.GwtModule'/> - -</module> diff --git a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/page/ruby_api_tests_page.html.erb b/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/page/ruby_api_tests_page.html.erb deleted file mode 100644 index 8326ef10ebf..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/page/ruby_api_tests_page.html.erb +++ /dev/null @@ -1,34 +0,0 @@ -<h1>Ruby API tests</h1> - - -<% success=true %> - -<% if logged_in? %> - <h2>User Properties</h2> - <ul id="user_properties"> - <% - current_user.set_property({:prop_key => 'foo', :text_value => 'bar'}) - test=current_user.property_value('foo')=='bar' - success&=test - %> - <li>create: <%= 'OK' if test -%></li> - - <% - current_user.delete_property('foo') - test=current_user.property('foo').nil? - success&=test - %> - <li>delete: <%= 'OK' if test -%></li> - - <% - current_user.set_property({:prop_key => 'foo', :text_value => 'bar'}) - current_user.set_property({:prop_key => 'foo', :text_value => 'newbar'}) - test=current_user.property_value('foo')=='newbar' - success&=test - %> - <li>update: <%= 'OK' if test -%></li> - </ul> -<% end %> - -<br/> -<p>Result: <span id="result"><%= success ? 'OK' : 'FAIL' %></span></p>
\ No newline at end of file diff --git a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/resourcetab/GwtSampleResourceTab.gwt.xml b/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/resourcetab/GwtSampleResourceTab.gwt.xml deleted file mode 100644 index 5c6f660ab10..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/resourcetab/GwtSampleResourceTab.gwt.xml +++ /dev/null @@ -1,10 +0,0 @@ -<module> - - <inherits name='com.google.gwt.user.User'/> - <inherits name="com.google.gwt.json.JSON"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="org.sonar.Sonar"/> - - <entry-point class='itests.resourcetab.client.GwtSampleResourceTab'/> - -</module> diff --git a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/resourcetab/public/sample.html b/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/resourcetab/public/sample.html deleted file mode 100644 index 6aecf69f757..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/resourcetab/public/sample.html +++ /dev/null @@ -1,37 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/html4/loose.dtd"> - -<html> -<head> - <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <title>Metrics</title> - <link href="http://localhost:9000/dev/stylesheets/reset-fonts-grids-2.2.2.css" media="all" rel="Stylesheet" type="text/css" /> - <link href="http://localhost:9000/dev/stylesheets/style.css" media="all" rel="Stylesheet" type="text/css" /> - <link href="http://localhost:9000/dev/stylesheets/style-gwt.css" media="all" rel="Stylesheet" type="text/css" /> - <script src="http://localhost:9000/dev/javascripts/application.js" type="text/javascript"></script> - <script src="http://localhost:9000/dev/javascripts/prototype.js" type="text/javascript"></script> - <script src="http://localhost:9000/dev/javascripts/scriptaculous.js" type="text/javascript"></script> -</head> - -<body> -<script type="text/javascript"> -var config = { - "sonar_url": "http://localhost:9000/dev", - "sourceviewer_source_key": "org.sonar.samples:main-sample:org.sonar.samples.ClassUnderTest" -}; -var sourceviewers = { - "Sample": "itests.sourceviewer.GwtSampleSourceViewer" -}; -</script> -<div class="error" id="error" style="display:none"><span id="errormsg"></span> [<a href="#" onclick="javascript:$('error').hide();return false;">hide</a>]</div> -<div class="warning" id="warning" style="display:none"><span id="warningmsg"></span> [<a href="#" onclick="javascript:$('warning').hide();return false;">hide</a>]</div> -<div class="notice" id="info" style="display:none"><span id="infomsg"></span> [<a href="#" onclick="javascript:$('info').hide();return false;">hide</a>]</div> - - -<a href="#" onclick="load_itests_sourceviewer_GwtSampleSourceViewer();">load source</a> - - -<div id="sourceviewers"></div> -<script type="text/javascript" language="javascript" src="itests.sourceviewer.GwtSampleSourceViewer.nocache.js"></script> -</body> -</html>
\ No newline at end of file diff --git a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/ws/ruby_ws_controller.rb b/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/ws/ruby_ws_controller.rb deleted file mode 100644 index 40ad00c5424..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/resources/itests/ws/ruby_ws_controller.rb +++ /dev/null @@ -1,32 +0,0 @@ -# -# Sonar, open source software quality management tool. -# Copyright (C) 2008-2011 SonarSource -# mailto:contact AT sonarsource DOT com -# -# Sonar is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 3 of the License, or (at your option) any later version. -# -# Sonar is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with Sonar; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 -# -class Api::RubyWebServiceController < Api::RestController - - def custom_method - render :text => "Custom method output" - end - - private - - def rest_call - render :text => "Rest method output" - end - -end
\ No newline at end of file diff --git a/tests/integration/sonar-it-reference-plugin/src/main/resources/static/file.html b/tests/integration/sonar-it-reference-plugin/src/main/resources/static/file.html deleted file mode 100644 index 5ae990c1af3..00000000000 --- a/tests/integration/sonar-it-reference-plugin/src/main/resources/static/file.html +++ /dev/null @@ -1,5 +0,0 @@ -<html>
-<body>
-Text from static resource
-</body>
-</html>
diff --git a/tests/integration/tests/build.xml b/tests/integration/tests/build.xml deleted file mode 100644 index 75bad16d20f..00000000000 --- a/tests/integration/tests/build.xml +++ /dev/null @@ -1,194 +0,0 @@ -<project name="Integration tests" basedir="."> - <property environment="env"/> - <property name="projects.dir" value="${basedir}/custom-projects"/> - - <target name="prepare-extensions" depends="build-extensions"> - <delete dir="${basedir}/target/extensions"/> - <mkdir dir="${basedir}/target/extensions"/> - <copy todir="${basedir}/target/extensions/rules/checkstyle" overwrite="true" verbose="true" flatten="true"> - <fileset dir="${basedir}/../checkstyle-extensions"> - <include name="checkstyle-extensions.xml"/> - <include name="target/checkstyle-extensions-*.jar"/> - </fileset> - </copy> - <copy todir="${basedir}/target/extensions/rules/pmd" overwrite="true" verbose="true" flatten="true"> - <fileset dir="${basedir}/../pmd-extensions"> - <include name="pmd-extensions.xml"/> - <include name="target/pmd-extensions-*.jar"/> - </fileset> - </copy> - <copy todir="${basedir}/target/extensions/plugins" flatten="true"> - <fileset dir="${basedir}/target/sonar-basic-sample-plugin/target/"> - <include name="sonar-basic-sample-plugin-*-SNAPSHOT.jar"/> - </fileset> - <fileset dir="${basedir}/target/sonar-gwt-sample-plugin/target/"> - <include name="sonar-gwt-sample-plugin-*-SNAPSHOT.jar"/> - </fileset> - <fileset dir="${basedir}/../sonar-it-reference-plugin/"> - <include name="target/sonar-it-reference-plugin-*-SNAPSHOT.jar"/> - </fileset> - </copy> - </target> - - <target name="build-extensions"> - <mkdir dir="${basedir}/target"/> - - <mvn dir="target" - args="archetype:generate -B -DarchetypeGroupId=org.codehaus.sonar.archetypes -DarchetypeArtifactId=sonar-basic-plugin-archetype -DarchetypeVersion=${sonar.runtimeVersion} -DgroupId=com.mycompany.sonar -DartifactId=sonar-basic-sample-plugin -Dversion=0.1-SNAPSHOT"/> - <mvn args="install" dir="${basedir}/target/sonar-basic-sample-plugin"/> - - <mvn dir="target" - args="archetype:generate -B -DarchetypeGroupId=org.codehaus.sonar.archetypes -DarchetypeArtifactId=sonar-gwt-plugin-archetype -DarchetypeVersion=${sonar.runtimeVersion} -DgroupId=com.mycompany.sonar -DartifactId=sonar-gwt-sample-plugin -Dversion=0.1-SNAPSHOT"/> - - <mvn args="install" dir="${basedir}/target/sonar-gwt-sample-plugin"/> - </target> - - - <target name="analyze-custom-projects" - depends="ant-static,ant-dynamic-clover,ant-dynamic-cobertura,ant-dynamic-junit,deprecated-sonar-light,struts,timemachine,violations-timemachine,reuse-coverage-reports"/> - - <target name="ant-static"> - <execant dir="${projects.dir}/ant-static/"/> - <mvnsonar pom="${projects.dir}/ant-static/pom.xml"/> - </target> - <target name="ant-dynamic-clover"> - <execant dir="${projects.dir}/ant-dynamic-clover/"/> - <mvnsonar pom="${projects.dir}/ant-dynamic-clover/pom.xml"/> - </target> - <target name="ant-dynamic-cobertura"> - <execant dir="${projects.dir}/ant-dynamic-cobertura/"/> - <mvnsonar pom="${projects.dir}/ant-dynamic-cobertura/pom.xml"/> - </target> - <target name="ant-dynamic-junit"> - <execant dir="${projects.dir}/ant-dynamic-junit/"/> - <mvnsonar pom="${projects.dir}/ant-dynamic-junit/pom.xml"/> - </target> - <target name="deprecated-sonar-light"> - <execant dir="${projects.dir}/deprecated-sonar-light/"/> - <mvnsonar pom="${projects.dir}/deprecated-sonar-light/pom.xml"/> - </target> - <target name="reuse-coverage-reports"> - <mvn args="clean install" dir="${projects.dir}/reuse-coverage-reports/" failonerror="false"/> - <mvnsonar pom="${projects.dir}/reuse-coverage-reports/pom.xml"/> - </target> - - <target name="struts"> - <mvn - args="scm:checkout -DconnectionUrl=scm:svn:http://svn.apache.org/repos/asf/struts/struts1/tags/STRUTS_1_3_9 -DcheckoutDirectory=struts-1.3.9" - dir="${projects.dir}"/> - <mvn args="clean install -DskipTests" dir="${projects.dir}/struts-1.3.9"/> - <mvnsonar pom="${projects.dir}/struts-1.3.9/pom.xml"/> - </target> - - <target name="timemachine"> - <mvn args="clean install -DskipTests" dir="${projects.dir}/timemachine"/> - - <!-- last : 1.0-SNAPSHOT --> - <mvnsonar failonerror="false" pom="${projects.dir}/timemachine/pom.xml"/> - - <!-- past revisions --> - <mvnsonar failonerror="false" - args="-Dsonar.projectDate=2007-03-12 -Dsonar.projectVersion=0.5-SNAPSHOT" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar failonerror="false" - args="-Dsonar.projectDate=2007-04-20 -Dsonar.projectVersion=0.5" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar args="-Dsonar.projectDate=2007-10-20 -Dsonar.projectVersion=0.6" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar args="-Dsonar.projectDate=2007-12-10 -Dsonar.projectVersion=0.7" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar args="-Dsonar.projectDate=2008-02-07 -Dsonar.projectVersion=0.8" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar failonerror="false" - args="-Dsonar.projectDate=2008-04-15 -Dsonar.projectVersion=0.8" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar failonerror="false" - args="-Dsonar.projectDate=2008-11-27 -Dsonar.projectVersion=0.9" - pom="${projects.dir}/timemachine/pom.xml"/> - <mvnsonar failonerror="false" - args="-Dsonar.projectDate=2008-10-19 -Dsonar.projectVersion=0.9" - pom="${projects.dir}/timemachine/pom.xml"/> - </target> - - <target name="violations-timemachine"> - <mvn args="clean install -DskiptTests" dir="${projects.dir}/violations-timemachine/v1"/> - <mvnsonar failonerror="false" - pom="${projects.dir}/violations-timemachine/v1/pom.xml"/> - - <mvn args="clean install -DskiptTests" dir="${projects.dir}/violations-timemachine/v2"/> - <mvnsonar failonerror="false" - pom="${projects.dir}/violations-timemachine/v2/pom.xml"/> - </target> - - <target name="big-project"> - <exec executable="ruby" failonerror="true" dir="${projects.dir}/big-project"> - <arg line="generate-sources.rb 20 50"/> - </exec> - <mvn dir="${projects.dir}/big-project" args="clean install -DskipTests"/> - <mvnsonar pom="${projects.dir}/big-project/pom.xml" args="-Dcpd.skip=true"/> - <delete dir="${projects.dir}/big-project/src/main/java"/> - </target> - - <target name="huge-project"> - <exec executable="ruby" failonerror="true" dir="${projects.dir}/big-project"> - <arg line="generate-sources.rb 50 500"/> - </exec> - <mvn dir="${projects.dir}/big-project" args="clean install -DskipTests"/> - <mvnsonar pom="${projects.dir}/big-project/pom.xml" args="-Dcpd.skip=true"/> - <delete dir="${projects.dir}/big-project/src/main/java"/> - </target> - - <macrodef name="execant"> - <attribute name="failonerror" default="true"/> - <attribute name="dir"/> - - <sequential> - <exec dir="@{dir}" failonerror="@{failonerror}" executable="${env.ANT_HOME}/bin/ant.bat" osfamily="Windows"> - </exec> - <exec dir="@{dir}" failonerror="@{failonerror}" executable="${env.ANT_HOME}/bin/ant" osfamily="unix"> - </exec> - </sequential> - </macrodef> - - <macrodef name="mvn"> - <attribute name="failonerror" default="true"/> - <attribute name="args" default=""/> - <attribute name="dir"/> - - <sequential> - <echo>Executing ${maven.home}/bin/mvn @{args}</echo> - <exec dir="@{dir}" failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows"> - <arg line="@{args} -B -e"/> - </exec> - <exec dir="@{dir}" failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix"> - <arg line="@{args} -B -e"/> - </exec> - </sequential> - </macrodef> - - <macrodef name="mvnsonar"> - <attribute name="failonerror" default="true"/> - <attribute name="args" default=""/> - <attribute name="pom"/> - - <sequential> - <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows"> - <arg line="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-2:sonar @{args} -B -e"/> - <arg line="-f @{pom}"/> - <arg value='-Dsonar.jdbc.url="${sonar.jdbc.url}"'/> - <arg value="-Dsonar.jdbc.driver=${sonar.jdbc.driver}"/> - <arg value="-Dsonar.jdbc.username=${sonar.jdbc.username}"/> - <arg value="-Dsonar.jdbc.password=${sonar.jdbc.password}"/> - </exec> - <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix"> - <arg line="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-2:sonar @{args} -B -e"/> - <arg line="-f @{pom}"/> - <arg value='-Dsonar.jdbc.url=${sonar.jdbc.url}'/> - <arg value="-Dsonar.jdbc.driver=${sonar.jdbc.driver}"/> - <arg value="-Dsonar.jdbc.username=${sonar.jdbc.username}"/> - <arg value="-Dsonar.jdbc.password=${sonar.jdbc.password}"/> - </exec> - </sequential> - </macrodef> - -</project> diff --git a/tests/integration/tests/custom-projects/.gitignore b/tests/integration/tests/custom-projects/.gitignore deleted file mode 100644 index d3a4bc7c1de..00000000000 --- a/tests/integration/tests/custom-projects/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -ant-dynamic-clover/.clover/ -ant-dynamic-clover/build/ -ant-dynamic-cobertura/build/ -ant-dynamic-cobertura/cobertura.ser -ant-dynamic-cobertura/reports/ -ant-dynamic-junit/build/ -ant-dynamic-junit/reports/ -ant-static/build/ -deprecated-sonar-light/build/ -struts-1.3.9/ diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/build.xml b/tests/integration/tests/custom-projects/ant-dynamic-clover/build.xml deleted file mode 100644 index 6b6be48f764..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/build.xml +++ /dev/null @@ -1,83 +0,0 @@ -<project name="ant-dynamic-clover" default="all" basedir="."> - <description> - money build file - </description> - - <property name="src" location="src/main/java"/> - <property name="test.src" location="src/test/java"/> - <property name="app.build" location="build/app"/> - <property name="test.build" location="build/test"/> - <property name="test.result" location="build/testresult"/> - <property name="junit.jar" location="${basedir}/lib/junit-3.8.2.jar"/> - - <path id="clover.classpath"> - <fileset dir="lib/clover"> - <include name="*.jar"/> - <include name="clover.license"/> - </fileset> - </path> - - <property name="clover.jar" location="${basedir}/lib/clover/clover.jar"/> - <taskdef resource="cloverlib.xml" classpath="${clover.jar}"/> - - <target name="with.clover"> - <clover-setup/> - </target> - - <target name="clover.xml" depends="with.clover"> - <mkdir dir="build/reports"/> - <clover-report> - <current outfile="build/reports/coverage.xml"> - <format type="xml"/> - </current> - </clover-report> - </target> - - <target name="clover.html" depends="with.clover"> - <mkdir dir="build/reports"/> - <clover-html-report outdir="build/reports"/> - </target> - - <path id="build.classpath"> - <pathelement path="${junit.jar}"/> - <pathelement path="${app.build}"/> - <path refid="clover.classpath"/> - </path> - - <path id="testbuild.classpath"> - <path refid="build.classpath"/> - <pathelement path="${test.build}"/> - </path> - - - <target name="code.compile" - description="Creates ${app.build} directory and compiles sources from ${src} to ${app.build}"> - <mkdir dir="${app.build}"/> - <javac srcdir="${src}" destdir="${app.build}" classpathref="build.classpath" source="1.4" fork="true" /> - </target> - - <target name="test.compile" depends="code.compile" - description="Creates ${test.build} directory and compiles sources from ${test.src} to ${test.build}"> - <mkdir dir="${test.build}"/> - <javac srcdir="${test.src}" - destdir="${test.build}" - classpathref="testbuild.classpath" source="1.4" fork="true"/> - </target> - - <target name="test.run" depends="with.clover,test.compile" description="Runs the tests"> - <mkdir dir="${test.result}"/> - <junit printsummary="true" showoutput="true" fork="true" forkmode="once"> - <classpath refid="testbuild.classpath"/> - <formatter type="xml"/> - <batchtest fork="yes" todir="${test.result}"> - <fileset dir="${test.src}" includes="**/*Test.java"/> - </batchtest> - </junit> - </target> - - <target name="clean"> - <delete dir="build"/> - </target> - - <target name="all" depends="clean,test.run,clover.xml,clover.html"/> -</project> diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/clover/clover.jar b/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/clover/clover.jar Binary files differdeleted file mode 100644 index a4ea600ee64..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/clover/clover.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/clover/clover.license b/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/clover/clover.license deleted file mode 100644 index d0adeaf4c93..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/clover/clover.license +++ /dev/null @@ -1,5 +0,0 @@ -opmOXvoSTwRurJtdPUPnnqXUoPxgewBKvhvFsQghghMpHN -mi2KCHwAl26X>gPZJcsdXAvR2KEZT5o>pDZqs>VNq7CbJD -OomqxtmMpmQQorqpnOqWVrrrQONpmONrNRUVuWTtSWSoop -qqnmqmUUnooqqonommmmmUUnooqqonommmmmUUJlkXoUUn -mmmm diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/cpl-v10.html b/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/cpl-v10.html deleted file mode 100644 index 36aa208d4a2..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/cpl-v10.html +++ /dev/null @@ -1,125 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> -<HTML> -<HEAD> -<TITLE>Common Public License - v 1.0</TITLE> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -</HEAD> - -<BODY BGCOLOR="#FFFFFF" VLINK="#800000"> - - -<P ALIGN="CENTER"><B>Common Public License - v 1.0</B> -<P><B></B><FONT SIZE="3"></FONT> -<P><FONT SIZE="3"></FONT><FONT SIZE="2">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.</FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"><B>1. DEFINITIONS</B></FONT> -<P><FONT SIZE="2">"Contribution" means:</FONT> - -<UL><FONT SIZE="2">a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and<BR CLEAR="LEFT"> -b) in the case of each subsequent Contributor:</FONT></UL> - - -<UL><FONT SIZE="2">i) changes to the Program, and</FONT></UL> - - -<UL><FONT SIZE="2">ii) additions to the Program;</FONT></UL> - - -<UL><FONT SIZE="2">where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. </FONT><FONT SIZE="2">A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. </FONT><FONT SIZE="2">Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. </FONT></UL> - -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">"Contributor" means any person or entity that distributes the Program.</FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. </FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2">"Program" means the Contributions distributed in accordance with this Agreement.</FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.</FONT> -<P><FONT SIZE="2"><B></B></FONT> -<P><FONT SIZE="2"><B>2. GRANT OF RIGHTS</B></FONT> - -<UL><FONT SIZE="2"></FONT><FONT SIZE="2">a) </FONT><FONT SIZE="2">Subject to the terms of this Agreement, each Contributor hereby grants</FONT><FONT SIZE="2"> Recipient a non-exclusive, worldwide, royalty-free copyright license to</FONT><FONT SIZE="2" COLOR="#FF0000"> </FONT><FONT SIZE="2">reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.</FONT></UL> - - -<UL><FONT SIZE="2"></FONT></UL> - - -<UL><FONT SIZE="2"></FONT><FONT SIZE="2">b) Subject to the terms of this Agreement, each Contributor hereby grants </FONT><FONT SIZE="2">Recipient a non-exclusive, worldwide,</FONT><FONT SIZE="2" COLOR="#008000"> </FONT><FONT SIZE="2">royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. </FONT></UL> - - -<UL><FONT SIZE="2"></FONT></UL> - - -<UL><FONT SIZE="2">c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.</FONT></UL> - - -<UL><FONT SIZE="2"></FONT></UL> - - -<UL><FONT SIZE="2">d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. </FONT></UL> - - -<UL><FONT SIZE="2"></FONT></UL> - -<P><FONT SIZE="2"><B>3. REQUIREMENTS</B></FONT> -<P><FONT SIZE="2"><B></B>A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:</FONT> - -<UL><FONT SIZE="2">a) it complies with the terms and conditions of this Agreement; and</FONT></UL> - - -<UL><FONT SIZE="2">b) its license agreement:</FONT></UL> - - -<UL><FONT SIZE="2">i) effectively disclaims</FONT><FONT SIZE="2"> on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; </FONT></UL> - - -<UL><FONT SIZE="2">ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; </FONT></UL> - - -<UL><FONT SIZE="2">iii)</FONT><FONT SIZE="2"> states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and</FONT></UL> - - -<UL><FONT SIZE="2">iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.</FONT><FONT SIZE="2" COLOR="#0000FF"> </FONT><FONT SIZE="2" COLOR="#FF0000"></FONT></UL> - - -<UL><FONT SIZE="2" COLOR="#FF0000"></FONT><FONT SIZE="2"></FONT></UL> - -<P><FONT SIZE="2">When the Program is made available in source code form:</FONT> - -<UL><FONT SIZE="2">a) it must be made available under this Agreement; and </FONT></UL> - - -<UL><FONT SIZE="2">b) a copy of this Agreement must be included with each copy of the Program. </FONT></UL> - -<P><FONT SIZE="2"></FONT><FONT SIZE="2" COLOR="#0000FF"><STRIKE></STRIKE></FONT> -<P><FONT SIZE="2" COLOR="#0000FF"><STRIKE></STRIKE></FONT><FONT SIZE="2">Contributors may not remove or alter any copyright notices contained within the Program. </FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. </FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"><B>4. COMMERCIAL DISTRIBUTION</B></FONT> -<P><FONT SIZE="2">Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.</FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.</FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2" COLOR="#0000FF"></FONT> -<P><FONT SIZE="2" COLOR="#0000FF"></FONT><FONT SIZE="2"><B>5. NO WARRANTY</B></FONT> -<P><FONT SIZE="2">EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is</FONT><FONT SIZE="2"> solely responsible for determining the appropriateness of using and distributing </FONT><FONT SIZE="2">the Program</FONT><FONT SIZE="2"> and assumes all risks associated with its exercise of rights under this Agreement</FONT><FONT SIZE="2">, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, </FONT><FONT SIZE="2">programs or equipment, and unavailability or interruption of operations</FONT><FONT SIZE="2">. </FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2"><B>6. DISCLAIMER OF LIABILITY</B></FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2">EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES </FONT><FONT SIZE="2">(INCLUDING WITHOUT LIMITATION LOST PROFITS),</FONT><FONT SIZE="2"> HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"><B>7. GENERAL</B></FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2">If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.</FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. </FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. </FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2">Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to </FONT><FONT SIZE="2">publish new versions (including revisions) of this Agreement from time to </FONT><FONT SIZE="2">time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. </FONT><FONT SIZE="2">Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new </FONT><FONT SIZE="2">version. </FONT><FONT SIZE="2">Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, </FONT><FONT SIZE="2">by implication, estoppel or otherwise</FONT><FONT SIZE="2">.</FONT><FONT SIZE="2"> All rights in the Program not expressly granted under this Agreement are reserved.</FONT> -<P><FONT SIZE="2"></FONT> -<P><FONT SIZE="2">This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.</FONT> -<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT> -<P><FONT SIZE="2"></FONT> - -</BODY> - -</HTML>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/junit-3.8.2.jar b/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/junit-3.8.2.jar Binary files differdeleted file mode 100644 index c8f711d050e..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/lib/junit-3.8.2.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/pom.xml b/tests/integration/tests/custom-projects/ant-dynamic-clover/pom.xml deleted file mode 100644 index f580e840ddc..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ -<!-- this maven file is used by sonar only. Project is built with ant (see build.xml). -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>ant-dynamic-clover</artifactId>
- <name>ant-dynamic-clover</name>
- <version>1.0</version>
-
- <properties>
- <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
- <sonar.core.codeCoveragePlugin>clover</sonar.core.codeCoveragePlugin>
- <sonar.clover.reportPath>build/reports/coverage.xml</sonar.clover.reportPath>
- <sonar.surefire.reportsPath>build/testresult</sonar.surefire.reportsPath>
- </properties>
-
- <build>
- <sourceDirectory>src/main/java</sourceDirectory>
-
- <!-- ant compiles sources into this directory -->
- <outputDirectory>build/app</outputDirectory>
-
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <failOnError>false</failOnError>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <!--
- Findbugs needs the auxiliary classpath to get results as accurate as possible. It avoids getting warnings like :
-
- The following classes needed for analysis were missing:
- junit.framework.TestCase
- -->
- <dependencies>
- <dependency>
- <groupId>deps</groupId>
- <artifactId>dep1</artifactId>
- <version>0.1</version>
- <scope>system</scope>
- <systemPath>${basedir}/lib/junit-3.8.2.jar</systemPath>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/IMoney.java b/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/IMoney.java deleted file mode 100644 index 21aab99bacd..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/IMoney.java +++ /dev/null @@ -1,49 +0,0 @@ -//package junit.samples.money; -package com.cenqua.samples.money; - -/** - * The common interface for simple Monies and MoneyBags - */ -public interface IMoney { - /** - * Adds a money to this money. - */ - public abstract IMoney add(IMoney m); - - /** - * Adds a simple Money to this money. This is a helper method for - * implementing double dispatch - */ - public abstract IMoney addMoney(Money m); - - /** - * Adds a MoneyBag to this money. This is a helper method for - * implementing double dispatch - */ - public abstract IMoney addMoneyBag(MoneyBag s); - - /** - * Tests whether this money is zero - */ - public abstract boolean isZero(); - - /** - * Multiplies a money by the given factor. - */ - public abstract IMoney multiply(int factor); - - /** - * Negates this money. - */ - public abstract IMoney negate(); - - /** - * Subtracts a money from this money. - */ - public abstract IMoney subtract(IMoney m); - - /** - * Append this to a MoneyBag m. - */ - public abstract void appendTo(MoneyBag m); -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/Money.java b/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/Money.java deleted file mode 100644 index 7e41cf5aa52..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/Money.java +++ /dev/null @@ -1,86 +0,0 @@ -//package junit.samples.money; -package com.cenqua.samples.money; - -/** - * A simple Money. - */ -public class Money implements IMoney { - - private int fAmount; - private String fCurrency; - - /** - * Constructs a money from the given amount and currency. - */ - public Money(int amount, String currency) { - fAmount = amount; - fCurrency = currency; - } - - /** - * Adds a money to this money. Forwards the request to the addMoney helper. - */ - public IMoney add(IMoney m) { - return m.addMoney(this); - } - - public IMoney addMoney(Money m) { - if (m.currency().equals(currency())) - return new Money(amount() + m.amount(), currency()); - return MoneyBag.create(this, m); - } - - public IMoney addMoneyBag(MoneyBag s) { - return s.addMoney(this); - } - - public int amount() { - return fAmount; - } - - public String currency() { - return fCurrency; - } - - public boolean equals(Object anObject) { - if (isZero()) - if (anObject instanceof IMoney) - return ((IMoney) anObject).isZero(); - if (anObject instanceof Money) { - Money aMoney = (Money) anObject; - return aMoney.currency().equals(currency()) - && amount() == aMoney.amount(); - } - return false; - } - - public int hashCode() { - return fCurrency.hashCode() + fAmount; - } - - public boolean isZero() { - return amount() == 0; - } - - public IMoney multiply(int factor) { - return new Money(amount() * factor, currency()); - } - - public IMoney negate() { - return new Money(-amount(), currency()); - } - - public IMoney subtract(IMoney m) { - return add(m.negate()); - } - - public String toString() { - StringBuffer buffer = new StringBuffer(); - buffer.append("[" + amount() + " " + currency() + "]"); - return buffer.toString(); - } - - public /*this makes no sense*/ void appendTo(MoneyBag m) { - m.appendMoney(this); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/MoneyBag.java b/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/MoneyBag.java deleted file mode 100644 index 354f1d7c32e..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/main/java/com/cenqua/samples/money/MoneyBag.java +++ /dev/null @@ -1,148 +0,0 @@ -//package junit.samples.money; -package com.cenqua.samples.money; - -import java.util.*; - -/** - * A MoneyBag defers exchange rate conversions. For example adding - * 12 Swiss Francs to 14 US Dollars is represented as a bag - * containing the two Monies 12 CHF and 14 USD. Adding another - * 10 Swiss francs gives a bag with 22 CHF and 14 USD. Due to - * the deferred exchange rate conversion we can later value a - * MoneyBag with different exchange rates. - * <p/> - * A MoneyBag is represented as a list of Monies and provides - * different constructors to create a MoneyBag. - */ -class MoneyBag implements IMoney { - private Vector fMonies = new Vector(5); - - static IMoney create(IMoney m1, IMoney m2) { - MoneyBag result = new MoneyBag(); - m1.appendTo(result); - m2.appendTo(result); - return result.simplify(); - } - - public IMoney add(IMoney m) { - return m.addMoneyBag(this); - } - - public IMoney addMoney(Money m) { - return MoneyBag.create(m, this); - } - - public IMoney addMoneyBag(MoneyBag s) { - return MoneyBag.create(s, this); - } - - void appendBag(MoneyBag aBag) { - for (Enumeration e = aBag.fMonies.elements(); e.hasMoreElements();) - appendMoney((Money) e.nextElement()); - } - - void appendMoney(Money aMoney) { - if (aMoney.isZero()) return; - IMoney old = findMoney(aMoney.currency()); - if (old == null) { - fMonies.addElement(aMoney); - return; - } - fMonies.removeElement(old); - IMoney sum = old.add(aMoney); - if (sum.isZero()) - return; - fMonies.addElement(sum); - } - - public boolean equals(Object anObject) { - if (isZero()) - if (anObject instanceof IMoney) - return ((IMoney) anObject).isZero(); - - if (anObject instanceof MoneyBag) { - MoneyBag aMoneyBag = (MoneyBag) anObject; - if (aMoneyBag.fMonies.size() != fMonies.size()) - return false; - - for (Enumeration e = fMonies.elements(); e.hasMoreElements();) { - Money m = (Money) e.nextElement(); - if (!aMoneyBag.contains(m)) - return false; - } - return true; - } - return false; - } - - private Money findMoney(String currency) { - for (Enumeration e = fMonies.elements(); e.hasMoreElements();) { - Money m = (Money) e.nextElement(); - if (m.currency().equals(currency)) - return m; - } - return null; - } - - private boolean contains(Money m) { - Money found = findMoney(m.currency()); - if (found == null) return false; - return found.amount() == m.amount(); - } - - public int hashCode() { - int hash = 0; - for (Enumeration e = fMonies.elements(); e.hasMoreElements();) { - Object m = e.nextElement(); - hash ^= m.hashCode(); - } - return hash; - } - - public boolean isZero() { - return fMonies.size() == 0; - } - - public IMoney multiply(int factor) { - MoneyBag result = new MoneyBag(); - if (factor != 0) { - for (Enumeration e = fMonies.elements(); e.hasMoreElements();) { - Money m = (Money) e.nextElement(); - result.appendMoney((Money) m.multiply(factor)); - } - } - return result; - } - - public IMoney negate() { - MoneyBag result = new MoneyBag(); - for (Enumeration e = fMonies.elements(); e.hasMoreElements();) { - Money m = (Money) e.nextElement(); - result.appendMoney((Money) m.negate()); - } - return result; - } - - private IMoney simplify() { - if (fMonies.size() == 1) - return (IMoney) fMonies.elements().nextElement(); - return this; - } - - public IMoney subtract(IMoney m) { - return add(m.negate()); - } - - public String toString() { - StringBuffer buffer = new StringBuffer(); - buffer.append("{"); - for (Enumeration e = fMonies.elements(); e.hasMoreElements();) - buffer.append(e.nextElement()); - buffer.append("}"); - return buffer.toString(); - } - - public void appendTo(MoneyBag m) { - m.appendBag(this); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/test/java/com/cenqua/samples/money/MoneyBagTest.java b/tests/integration/tests/custom-projects/ant-dynamic-clover/src/test/java/com/cenqua/samples/money/MoneyBagTest.java deleted file mode 100644 index 1da75a987f1..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/test/java/com/cenqua/samples/money/MoneyBagTest.java +++ /dev/null @@ -1,174 +0,0 @@ -//package junit.samples.money; -package com.cenqua.samples.money; - -import junit.framework.TestCase; - - -public class MoneyBagTest extends TestCase { - private Money f12CHF; - private Money f14CHF; - private Money f7USD; - private Money f21USD; - - private IMoney fMB1; - private IMoney fMB2; - - public static void main(String args[]) { - junit.textui.TestRunner.run(MoneyBagTest.class); - } - - protected void setUp() { - f12CHF = new Money(12, "CHF"); - f14CHF = new Money(14, "CHF"); - f7USD = new Money(7, "USD"); - f21USD = new Money(21, "USD"); - - fMB1 = MoneyBag.create(f12CHF, f7USD); - fMB2 = MoneyBag.create(f14CHF, f21USD); - } - - protected void tearDown() throws Exception { - // call toString, guranteed to be only called from here. - // this is for testing, coverage by test. - fMB1.toString(); - } - - public void testBagMultiply() { - // {[12 CHF][7 USD]} *2 == {[24 CHF][14 USD]} - IMoney expected = MoneyBag.create(new Money(24, "CHF"), new Money(14, "USD")); - assertEquals(expected, fMB1.multiply(2)); - assertEquals(fMB1, fMB1.multiply(1)); - assertTrue(fMB1.multiply(0).isZero()); - } - - public void testBagNegate() { - // {[12 CHF][7 USD]} negate == {[-12 CHF][-7 USD]} - IMoney expected = MoneyBag.create(new Money(-12, "CHF"), new Money(-7, "USD")); - assertEquals(expected, fMB1.negate()); - } - - public void testBagSimpleAdd() { - // {[12 CHF][7 USD]} + [14 CHF] == {[26 CHF][7 USD]} - IMoney expected = MoneyBag.create(new Money(26, "CHF"), new Money(7, "USD")); - assertEquals(expected, fMB1.add(f14CHF)); - } - - public void testBagSubtract() { - // {[12 CHF][7 USD]} - {[14 CHF][21 USD] == {[-2 CHF][-14 USD]} - IMoney expected = MoneyBag.create(new Money(-2, "CHF"), new Money(-14, "USD")); - assertEquals(expected, fMB1.subtract(fMB2)); - } - - public void testBagSumAdd() { - // {[12 CHF][7 USD]} + {[14 CHF][21 USD]} == {[26 CHF][28 USD]} - IMoney expected = MoneyBag.create(new Money(26, "CHF"), new Money(28, "USD")); - assertEquals(expected, fMB1.add(fMB2)); - } - - public void testIsZero() { - assertTrue(fMB1.subtract(fMB1).isZero()); - assertTrue(MoneyBag.create(new Money(0, "CHF"), new Money(0, "USD")).isZero()); - } - - public void testMixedSimpleAdd() { - // [12 CHF] + [7 USD] == {[12 CHF][7 USD]} - IMoney expected = MoneyBag.create(f12CHF, f7USD); - assertEquals(expected, f12CHF.add(f7USD)); - } - - public void testBagNotEquals() { - IMoney bag = MoneyBag.create(f12CHF, f7USD); - assertFalse(bag.equals(new Money(12, "DEM").add(f7USD))); - } - - public void testMoneyBagEquals() { - assertTrue(!fMB1.equals(null)); - - assertEquals(fMB1, fMB1); - IMoney equal = MoneyBag.create(new Money(12, "CHF"), new Money(7, "USD")); - assertTrue(fMB1.equals(equal)); - assertTrue(!fMB1.equals(f12CHF)); - assertTrue(!f12CHF.equals(fMB1)); - assertTrue(!fMB1.equals(fMB2)); - } - - public void testMoneyBagHash() { - IMoney equal = MoneyBag.create(new Money(12, "CHF"), new Money(7, "USD")); - assertEquals(fMB1.hashCode(), equal.hashCode()); - } - - public void testMoneyEquals() { - assertTrue(!f12CHF.equals(null)); - Money equalMoney = new Money(12, "CHF"); - assertEquals(f12CHF, f12CHF); - assertEquals(f12CHF, equalMoney); - assertEquals(f12CHF.hashCode(), equalMoney.hashCode()); - assertTrue(!f12CHF.equals(f14CHF)); - } - - public void testMoneyHash() { - assertTrue(!f12CHF.equals(null)); - Money equal = new Money(12, "CHF"); - assertEquals(f12CHF.hashCode(), equal.hashCode()); - } - - public void testSimplify() { - IMoney money = MoneyBag.create(new Money(26, "CHF"), new Money(28, "CHF")); - assertEquals(new Money(54, "CHF"), money); - } - - public void testNormalize2() { - // {[12 CHF][7 USD]} - [12 CHF] == [7 USD] - Money expected = new Money(7, "USD"); - assertEquals(expected, fMB1.subtract(f12CHF)); - } - - public void testNormalize3() { - // {[12 CHF][7 USD]} - {[12 CHF][3 USD]} == [4 USD] - IMoney ms1 = MoneyBag.create(new Money(12, "CHF"), new Money(3, "USD")); - Money expected = new Money(4, "USD"); - assertEquals(expected, fMB1.subtract(ms1)); - } - - public void testNormalize4() { - // [12 CHF] - {[12 CHF][3 USD]} == [-3 USD] - IMoney ms1 = MoneyBag.create(new Money(12, "CHF"), new Money(3, "USD")); - Money expected = new Money(-3, "USD"); - assertEquals(expected, f12CHF.subtract(ms1)); - } - - public void testPrint() { - assertEquals("[12 CHF]", f12CHF.toString()); - } - - public void testSimpleAdd() { - // [12 CHF] + [14 CHF] == [26 CHF] - Money expected = new Money(26, "CHF"); - assertEquals(expected, f12CHF.add(f14CHF)); - } - - public void testSimpleBagAdd() { - // [14 CHF] + {[12 CHF][7 USD]} == {[26 CHF][7 USD]} - IMoney expected = MoneyBag.create(new Money(26, "CHF"), new Money(7, "USD")); - assertEquals(expected, f14CHF.add(fMB1)); - } - - public void testSimpleMultiply() { - // [14 CHF] *2 == [28 CHF] - Money expected = new Money(28, "CHF"); - assertEquals(expected, f14CHF.multiply(2)); - } - - public void testSimpleNegate() { - // [14 CHF] negate == [-14 CHF] - Money expected = new Money(-14, "CHF"); - assertEquals(expected, f14CHF.negate()); - } - - public void testSimpleSubtract() { - // [14 CHF] - [12 CHF] == [2 CHF] - Money expected = new Money(2, "CHF"); - assertEquals(expected, f14CHF.subtract(f12CHF)); - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/test/java/com/cenqua/samples/money/MoneyTest.java b/tests/integration/tests/custom-projects/ant-dynamic-clover/src/test/java/com/cenqua/samples/money/MoneyTest.java deleted file mode 100644 index e352457a0fa..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-clover/src/test/java/com/cenqua/samples/money/MoneyTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.cenqua.samples.money; - -import junit.framework.TestCase; - -/** - * This is a trivial test which only tests the Money class. - * If you modify the MoneyBag class, and run Clover with optimization, this test will not be run. - */ -public class MoneyTest extends TestCase { - - public void testAdd() throws InterruptedException { - Money tenEuro = new Money(10, "EURO"); - assertEquals(10, tenEuro.amount()); - assertEquals("EURO", tenEuro.currency()); - System.out.println("Tests taking too long? Try clover's test optimization."); - Thread.sleep(3000); - } - -} diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/build.xml b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/build.xml deleted file mode 100644 index 1415ca282cf..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/build.xml +++ /dev/null @@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-
-<project name="ant-dynamic-cobertura" default="coverage" basedir=".">
-
- <property name="src.dir" value="src"/>
- <property name="lib.dir" value="lib"/>
- <property name="lib.cobertura.dir" value="${lib.dir}/cobertura"/>
- <property name="build.dir" value="build"/>
- <property name="classes.dir" value="${build.dir}/classes"/>
- <property name="classes.instrumented.dir" value="${build.dir}/instrumented"/>
- <property name="reports.dir" value="reports"/>
- <property name="reports.junit.xml.dir" value="${reports.dir}/junit/xml"/>
- <property name="reports.junit.html.dir" value="${reports.dir}/junit/html"/>
- <property name="reports.cobertura.xml.dir" value="${reports.dir}/cobertura/xml"/>
- <property name="reports.cobertura.html.dir" value="${reports.dir}/cobertura/html"/>
-
- <path id="classpath">
- <fileset dir="${lib.dir}" includes="*.jar"/>
- </path>
-
- <path id="cobertura.classpath">
- <fileset dir="${lib.cobertura.dir}">
- <include name="*.jar" />
- </fileset> - </path>
-
- <taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>
- - <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"> - <classpath> - <path refid="classpath"/> - </classpath> - </taskdef> - - <taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator"> - <classpath> - <path refid="classpath"/> - </classpath> - </taskdef> -
- <target name="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${classes.dir}" />
- <mkdir dir="${classes.instrumented.dir}" />
- <mkdir dir="${reports.dir}" />
- <mkdir dir="${reports.junit.xml.dir}" />
- <mkdir dir="${reports.junit.html.dir}" />
- <mkdir dir="${reports.cobertura.xml.dir}" />
- <mkdir dir="${reports.cobertura.html.dir}" />
- </target>
-
-
-
- <target name="compile" depends="init">
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true"/>
- </target>
-
- <target name="instrument" depends="init,compile">
- <!--
- Remove the coverage data file and any old instrumentation.
- -->
- <delete file="cobertura.ser"/>
- <delete dir="${classes.instrumented.dir}" />
-
- <cobertura-instrument todir="${classes.instrumented.dir}">
- <fileset dir="${classes.dir}">
- <!--
- Instrument all the application classes, but
- don't instrument the test classes.
- -->
- <include name="**/*.class" />
- <exclude name="**/*Test.class" />
- </fileset>
- </cobertura-instrument>
- </target>
-
- <target name="test" depends="init,compile">
- <junit fork="yes" dir="${basedir}" failureProperty="test.failed">
- <!--
- Note the classpath order: instrumented classes are before the
- original (uninstrumented) classes. This is important.
- -->
- <classpath location="${classes.instrumented.dir}" />
- <classpath location="${classes.dir}" />
-
- <!--
- The instrumented classes reference classes used by the
- Cobertura runtime, so Cobertura and its dependencies
- must be on your classpath.
- -->
- <classpath refid="cobertura.classpath" />
- <classpath refid="classpath" />
-
- <formatter type="xml" />
- <batchtest todir="${reports.junit.xml.dir}">
- <fileset dir="${src.dir}">
- <include name="**/*Test.java" />
- </fileset>
- </batchtest>
- </junit>
-
- <junitreport todir="${reports.junit.html.dir}">
- <fileset dir="${reports.junit.xml.dir}">
- <include name="TEST-*.xml" />
- </fileset>
- <report format="frames" todir="${reports.junit.html.dir}" /> - </junitreport>
- </target>
-
- <target name="coverage-report">
- <!--
- Generate an XML file containing the coverage data using
- the "srcdir" attribute.
- -->
- <cobertura-report srcdir="${src.dir}" destdir="${reports.cobertura.xml.dir}" format="xml" />
- </target>
-
- <target name="alternate-coverage-report">
- <!--
- Generate a series of HTML files containing the coverage
- data in a user-readable form using nested source filesets.
- -->
- <cobertura-report destdir="${reports.cobertura.html.dir}">
- <fileset dir="${src.dir}">
- <include name="**/*.java"/>
- </fileset>
- </cobertura-report>
- </target>
-
- <target name="clean" description="Remove all files created by the build/test process.">
- <delete dir="${build.dir}" />
- <delete dir="${instrumented.dir}" />
- <delete dir="${reports.dir}" />
- <delete file="cobertura.log" />
- <delete file="cobertura.ser" />
- </target>
-
- <target name="coverage" depends="compile,instrument,test,coverage-report,alternate-coverage-report" description="Compile, instrument ourself, run the tests and generate JUnit and coverage reports."/>
-
-</project>
diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/asm-3.0.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/asm-3.0.jar Binary files differdeleted file mode 100644 index 112f5bd4aec..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/asm-3.0.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/asm-tree-3.0.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/asm-tree-3.0.jar Binary files differdeleted file mode 100644 index 2a4b20856c0..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/asm-tree-3.0.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/cobertura.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/cobertura.jar Binary files differdeleted file mode 100644 index 5cabbf258cf..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/cobertura.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/jakarta-oro-2.0.8.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/jakarta-oro-2.0.8.jar Binary files differdeleted file mode 100644 index 23488d2600f..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/jakarta-oro-2.0.8.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/jakarta-oro-license.txt b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/jakarta-oro-license.txt deleted file mode 100644 index 100f86b44d2..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/jakarta-oro-license.txt +++ /dev/null @@ -1,53 +0,0 @@ -/* ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Apache" and "Apache Software Foundation", "Jakarta-Oro"
- * must not be used to endorse or promote products derived from this
- * software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * or "Jakarta-Oro", nor may "Apache" or "Jakarta-Oro" appear in their
- * name, without prior written permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/log4j-1.2.9.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/log4j-1.2.9.jar Binary files differdeleted file mode 100644 index a6568b01a21..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/log4j-1.2.9.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/log4j-license.txt b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/log4j-license.txt deleted file mode 100644 index 030564fc133..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/cobertura/log4j-license.txt +++ /dev/null @@ -1,48 +0,0 @@ -/*
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "log4j" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * on behalf of the Apache Software Foundation. For more information on the
- * Apache Software Foundation, please see <http://www.apache.org/>.
- *
- */
diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/junit-3.8.2.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/junit-3.8.2.jar Binary files differdeleted file mode 100644 index c8f711d050e..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/junit-3.8.2.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/log4j-1.2.13.jar b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/log4j-1.2.13.jar Binary files differdeleted file mode 100644 index dde9972109d..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/lib/log4j-1.2.13.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/pom.xml b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/pom.xml deleted file mode 100644 index f22d23ff120..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ -<!-- this maven file is used by sonar only. Project is built with ant (see build.xml). -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>ant-dynamic-cobertura</artifactId>
- <name>ant-dynamic-cobertura</name>
- <version>1.0</version>
-
- <build>
- <sourceDirectory>src</sourceDirectory>
-
- <!-- ant compiles sources into this directory -->
- <outputDirectory>build/classes</outputDirectory>
-
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <failOnError>false</failOnError>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <!--
- Findbugs needs the auxiliary classpath to get results as accurate as possible. It avoids getting warnings like :
-
- The following classes needed for analysis were missing:
- junit.framework.TestCase
- -->
- <dependencies>
- <dependency>
- <groupId>deps</groupId>
- <artifactId>dep1</artifactId>
- <version>0.1</version>
- <scope>system</scope>
- <systemPath>${basedir}/lib/log4j-1.2.13.jar</systemPath>
- </dependency>
- <dependency>
- <groupId>deps</groupId>
- <artifactId>dep2</artifactId>
- <version>0.1</version>
- <scope>system</scope>
- <systemPath>${basedir}/lib/junit-3.8.2.jar</systemPath>
- </dependency>
- </dependencies>
-
- <properties>
- <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
- <sonar.exclusions>**/*Test.java</sonar.exclusions>
- <sonar.cobertura.reportPath>reports/cobertura/xml/coverage.xml</sonar.cobertura.reportPath>
- <sonar.surefire.reportsPath>reports/junit/xml</sonar.surefire.reportsPath>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/FailTest.java b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/FailTest.java deleted file mode 100644 index d75067caf7f..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/FailTest.java +++ /dev/null @@ -1,10 +0,0 @@ -public class FailTest extends junit.framework.TestCase {
-
- public void testNothing() {
- }
-
- public void testWillAlwaysFail() {
- fail("An error message");
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/ant/HelloWorld.java b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/ant/HelloWorld.java deleted file mode 100644 index 6c9c7a9be3a..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/ant/HelloWorld.java +++ /dev/null @@ -1,28 +0,0 @@ -package ant;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.BasicConfigurator;
-import java.util.Vector;
-
-public class HelloWorld {
- static Logger logger = Logger.getLogger(HelloWorld.class);
-
- public static void main(String[] args) {
- BasicConfigurator.configure();
- logger.info("Hello World"); // the old SysO-statement
-
- String temp = new String();
- Vector<String> v = new Vector<String>();
- }
-
- public Object clone() {
- return new HelloWorld();
- }
- public boolean equals(Object o) {
- return true;
- }
-
- public boolean Equals(Object o) {
- return true;
- }
-}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/ant/HelloWorldTest.java b/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/ant/HelloWorldTest.java deleted file mode 100644 index 891a5bd9962..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-cobertura/src/ant/HelloWorldTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package ant;
-
-public class HelloWorldTest extends junit.framework.TestCase {
-
- public void testClone() {
- HelloWorld hello = new HelloWorld();
- assertEquals(hello, hello.clone());
- }
-
- public void testWillAlwaysFail() {
- fail("An error message");
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/build.xml b/tests/integration/tests/custom-projects/ant-dynamic-junit/build.xml deleted file mode 100644 index 72a7217740a..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/build.xml +++ /dev/null @@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<project name="ant-dynamic-junit" default="all" basedir="."> - - <property name="src.dir" value="src"/> - <property name="test.dir" value="test"/> - <property name="lib.dir" value="lib"/> - <property name="build.dir" value="build"/> - <property name="classes.main.dir" value="${build.dir}/classes"/> - <property name="classes.test.dir" value="${build.dir}/test"/> - <property name="reports.dir" value="reports"/> - <property name="reports.junit.xml.dir" value="${reports.dir}/junit/xml"/> - <property name="reports.junit.html.dir" value="${reports.dir}/junit/html"/> - - <path id="classpath"> - <fileset dir="${lib.dir}" includes="*.jar"/> - </path> - - <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"> - <classpath> - <path refid="classpath"/> - </classpath> - </taskdef> - - <taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator"> - <classpath> - <path refid="classpath"/> - </classpath> - </taskdef> - - <target name="init"> - <mkdir dir="${build.dir}"/> - <mkdir dir="${classes.main.dir}"/> - <mkdir dir="${classes.test.dir}"/> - <mkdir dir="${reports.dir}"/> - <mkdir dir="${reports.junit.xml.dir}"/> - <mkdir dir="${reports.junit.html.dir}"/> - </target> - - <target name="compile" depends="init"> - <javac srcdir="${src.dir}" destdir="${classes.main.dir}" classpathref="classpath" fork="true"/> - <javac srcdir="${test.dir}" destdir="${classes.test.dir}" fork="true"> - <classpath location="${classes.main.dir}"/> - <classpath refid="classpath"/> - </javac> - </target> - - <target name="test" depends="init,compile"> - <junit fork="yes" dir="${basedir}" failureProperty="test.failed"> - <classpath> - <pathelement location="${classes.main.dir}"/> - <pathelement location="${classes.test.dir}"/> - <fileset dir="${lib.dir}" includes="*.jar"/> - </classpath> - - <formatter type="xml"/> - <batchtest todir="${reports.junit.xml.dir}"> - <fileset dir="${test.dir}"> - <include name="**/*Test.java"/> - </fileset> - </batchtest> - </junit> - - <junitreport todir="${reports.junit.html.dir}"> - <fileset dir="${reports.junit.xml.dir}"> - <include name="TEST-*.xml"/> - </fileset> - <report format="frames" todir="${reports.junit.html.dir}"/> - </junitreport> - </target> - - - <target name="clean" description="Remove all files created by the build/test process."> - <delete dir="${build.dir}"/> - <delete dir="${reports.dir}"/> - <delete dir="target"/> - </target> - - <target name="all" depends="clean,compile,test"/> - -</project> diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/lib/junit-3.8.2.jar b/tests/integration/tests/custom-projects/ant-dynamic-junit/lib/junit-3.8.2.jar Binary files differdeleted file mode 100644 index c8f711d050e..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/lib/junit-3.8.2.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/lib/log4j-1.2.13.jar b/tests/integration/tests/custom-projects/ant-dynamic-junit/lib/log4j-1.2.13.jar Binary files differdeleted file mode 100644 index dde9972109d..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/lib/log4j-1.2.13.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/pom.xml b/tests/integration/tests/custom-projects/ant-dynamic-junit/pom.xml deleted file mode 100644 index cda311eeedf..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ -<!-- this maven file is used by sonar only. Project is built with ant (see build.xml). --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>ant-dynamic-junit</artifactId> - <name>ant-dynamic-junit</name> - <version>1.0</version> - - <build> - <sourceDirectory>src</sourceDirectory> - <testSourceDirectory>test</testSourceDirectory> - - <!-- ant compiles sources into this directory --> - <outputDirectory>build/classes</outputDirectory> - <testOutputDirectory>build/test</testOutputDirectory> - - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - <failOnError>false</failOnError> - <excludes><exclude>**/*</exclude></excludes> - </configuration> - </plugin> - </plugins> - </build> - - <!-- - Findbugs needs the auxiliary classpath to get results as accurate as possible. It avoids getting warnings like : - - The following classes needed for analysis were missing: - junit.framework.TestCase - --> - <dependencies> - <dependency> - <groupId>deps</groupId> - <artifactId>dep1</artifactId> - <version>0.1</version> - <scope>system</scope> - <systemPath>${basedir}/lib/log4j-1.2.13.jar</systemPath> - </dependency> - <dependency> - <groupId>deps</groupId> - <artifactId>dep2</artifactId> - <version>0.1</version> - <scope>system</scope> - <systemPath>${basedir}/lib/junit-3.8.2.jar</systemPath> - </dependency> - </dependencies> - - <properties> - <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> - <sonar.surefire.reportsPath>reports/junit/xml</sonar.surefire.reportsPath> - </properties> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/src/ant/HelloWorld.java b/tests/integration/tests/custom-projects/ant-dynamic-junit/src/ant/HelloWorld.java deleted file mode 100644 index 6c9c7a9be3a..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/src/ant/HelloWorld.java +++ /dev/null @@ -1,28 +0,0 @@ -package ant;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.BasicConfigurator;
-import java.util.Vector;
-
-public class HelloWorld {
- static Logger logger = Logger.getLogger(HelloWorld.class);
-
- public static void main(String[] args) {
- BasicConfigurator.configure();
- logger.info("Hello World"); // the old SysO-statement
-
- String temp = new String();
- Vector<String> v = new Vector<String>();
- }
-
- public Object clone() {
- return new HelloWorld();
- }
- public boolean equals(Object o) {
- return true;
- }
-
- public boolean Equals(Object o) {
- return true;
- }
-}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java b/tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java deleted file mode 100644 index 7cdd82548ee..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java +++ /dev/null @@ -1,10 +0,0 @@ -public class FailTest extends junit.framework.TestCase { - - public void testNothing() { - } - - public void testWillAlwaysFail() { - fail("An error message"); - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java b/tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java deleted file mode 100644 index 47ae3adeb1d..00000000000 --- a/tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package ant; - -public class HelloWorldTest extends junit.framework.TestCase { - - public void testClone() { - HelloWorld hello = new HelloWorld(); - assertEquals(hello, hello.clone()); - } - - public void testWillAlwaysFail() { - fail("An error message"); - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-static/build.xml b/tests/integration/tests/custom-projects/ant-static/build.xml deleted file mode 100644 index c49b8a9ca8a..00000000000 --- a/tests/integration/tests/custom-projects/ant-static/build.xml +++ /dev/null @@ -1,45 +0,0 @@ -<project name="ant-static" basedir="." default="all">
- <property environment="env"/>
-
- <property name="src.dir" value="src"/>
-
- <property name="build.dir" value="build"/>
- <property name="classes.dir" value="${build.dir}/classes"/>
- <property name="jar.dir" value="${build.dir}/jar"/>
-
- <property name="lib.dir" value="lib"/>
-
- <path id="classpath">
- <fileset dir="${lib.dir}" includes="**/*.jar"/>
- </path>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="compile">
- <mkdir dir="${classes.dir}"/>
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true" />
- </target>
-
- <target name="jar" depends="compile">
- <mkdir dir="${jar.dir}"/>
- <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">
- </jar>
- </target>
-
- <target name="junit" depends="jar">
- <junit printsummary="yes">
- <classpath>
- <path refid="classpath"/>
- <path refid="application"/>
- </classpath>
-
- <batchtest fork="yes">
- <fileset dir="${src.dir}" includes="*Test.java"/>
- </batchtest>
- </junit>
- </target>
-
- <target name="all" depends="clean,jar"/>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-static/lib/log4j-1.2.13.jar b/tests/integration/tests/custom-projects/ant-static/lib/log4j-1.2.13.jar Binary files differdeleted file mode 100644 index dde9972109d..00000000000 --- a/tests/integration/tests/custom-projects/ant-static/lib/log4j-1.2.13.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/ant-static/pom.xml b/tests/integration/tests/custom-projects/ant-static/pom.xml deleted file mode 100644 index f4f4375e0a7..00000000000 --- a/tests/integration/tests/custom-projects/ant-static/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ -<!-- this maven file is used by sonar only. Project is built with ant (see build.xml). -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>ant-static</artifactId>
- <name>ant-static</name>
- <version>1.0</version>
- <description>Static analysis of Ant project</description>
-
- <build>
- <sourceDirectory>src</sourceDirectory>
-
- <!-- ant compiles sources into this directory -->
- <outputDirectory>build/classes</outputDirectory>
-
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <failOnError>false</failOnError>
- <excludes><exclude>**/*</exclude></excludes>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
-
- <!--
- Findbugs needs the auxiliary classpath to get results as accurate as possible. It avoids getting warnings like :
-
- The following classes needed for analysis were missing:
- junit.framework.TestCase
- -->
- <dependencies>
- <dependency>
- <groupId>deps</groupId>
- <artifactId>dep1</artifactId>
- <version>0.1</version>
- <scope>system</scope>
- <systemPath>${basedir}/lib/log4j-1.2.13.jar</systemPath>
- </dependency>
- </dependencies>
-
- <properties>
- <sonar.dynamicAnalysis>false</sonar.dynamicAnalysis>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-static/src/ant/HelloWorld.java b/tests/integration/tests/custom-projects/ant-static/src/ant/HelloWorld.java deleted file mode 100644 index 6c9c7a9be3a..00000000000 --- a/tests/integration/tests/custom-projects/ant-static/src/ant/HelloWorld.java +++ /dev/null @@ -1,28 +0,0 @@ -package ant;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.BasicConfigurator;
-import java.util.Vector;
-
-public class HelloWorld {
- static Logger logger = Logger.getLogger(HelloWorld.class);
-
- public static void main(String[] args) {
- BasicConfigurator.configure();
- logger.info("Hello World"); // the old SysO-statement
-
- String temp = new String();
- Vector<String> v = new Vector<String>();
- }
-
- public Object clone() {
- return new HelloWorld();
- }
- public boolean equals(Object o) {
- return true;
- }
-
- public boolean Equals(Object o) {
- return true;
- }
-}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/big-project/generate-sources.rb b/tests/integration/tests/custom-projects/big-project/generate-sources.rb deleted file mode 100644 index 719b8b1387f..00000000000 --- a/tests/integration/tests/custom-projects/big-project/generate-sources.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'fileutils.rb' - -class GenerateSources - - def initialize - FileUtils.remove_dir "src/main/java", true - end - - def template - if @template.nil? - @template = '' - f = File.open("template.java", "r") - f.each_line do |line| - @template += line - end - end - @template - end - - def sources(package_name, class_name) - template.gsub(/#PACKAGE/,package_name).gsub(/#CLASS/, class_name) - end - - def generate(package_name, class_name) - content=sources(package_name, class_name) - dir="src/main/java/" + package_name.gsub(/\./, '/') - save(dir, "#{class_name}.java", content) - end - - private - def save(dir, filename,content) - FileUtils::mkdir_p dir - my_file = File.new("#{dir}/#{filename}", 'w') - my_file<<content - my_file.close - end -end - -packages_count=(ARGV.size>0 ? ARGV[0].to_i : 10) -classes_count=(ARGV.size>1 ? ARGV[1].to_i : 500) -generator=GenerateSources.new - -for index_package in (1..packages_count) - for index_class in (1..classes_count) - generator.generate("org.sonar.tests.bigproject#{index_package}", "Class#{index_class}") - end -end - -puts "#{classes_count * packages_count} classes saved in #{packages_count} packages."
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/big-project/pom.xml b/tests/integration/tests/custom-projects/big-project/pom.xml deleted file mode 100644 index 9637d505755..00000000000 --- a/tests/integration/tests/custom-projects/big-project/pom.xml +++ /dev/null @@ -1,8 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>big-project</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - big project</name>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/big-project/template.java b/tests/integration/tests/custom-projects/big-project/template.java deleted file mode 100644 index 94e7e574b55..00000000000 --- a/tests/integration/tests/custom-projects/big-project/template.java +++ /dev/null @@ -1,38 +0,0 @@ -package #PACKAGE; - -import java.util.*; - -public class #CLASS { - public void hello( ) { - System.out.println("hello");; - int index=333; - } - - public void Hello( ) { - for (int i=0 ; i<1000 ; i++) { - int j=i*2; - } - } - - public static final int FOO() { - int j=111; - j++; - Vector v = new Vector(); - Vector v2 = new Vector(); - String s=null; - System.out.println(s); - return 222; - } - - public Object clone() { - return new Object(); - } - - public String toString() { - return "xxxxxxxxxxxxxxxx"; - } - - public String toString(String s) { - return s; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/deprecated-sonar-light/build.xml b/tests/integration/tests/custom-projects/deprecated-sonar-light/build.xml deleted file mode 100644 index 6e9b394b8a6..00000000000 --- a/tests/integration/tests/custom-projects/deprecated-sonar-light/build.xml +++ /dev/null @@ -1,45 +0,0 @@ -<project name="deprecated-light-mode" basedir="." default="all">
-
- <property name="src.dir" value="src"/>
-
- <property name="build.dir" value="build"/>
- <property name="classes.dir" value="${build.dir}/classes"/>
- <property name="jar.dir" value="${build.dir}/jar"/>
-
- <property name="lib.dir" value="lib"/>
-
- <path id="classpath">
- <fileset dir="${lib.dir}" includes="**/*.jar"/>
- </path>
-
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="compile">
- <mkdir dir="${classes.dir}"/>
- <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" fork="true"/>
- </target>
-
- <target name="jar" depends="compile">
- <mkdir dir="${jar.dir}"/>
- <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">
- </jar>
- </target>
-
- <target name="junit" depends="jar">
- <junit printsummary="yes">
- <classpath>
- <path refid="classpath"/>
- <path refid="application"/>
- </classpath>
-
- <batchtest fork="yes">
- <fileset dir="${src.dir}" includes="*Test.java"/>
- </batchtest>
- </junit>
- </target>
-
- <target name="all" depends="clean,jar"/>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/deprecated-sonar-light/lib/log4j-1.2.13.jar b/tests/integration/tests/custom-projects/deprecated-sonar-light/lib/log4j-1.2.13.jar Binary files differdeleted file mode 100644 index dde9972109d..00000000000 --- a/tests/integration/tests/custom-projects/deprecated-sonar-light/lib/log4j-1.2.13.jar +++ /dev/null diff --git a/tests/integration/tests/custom-projects/deprecated-sonar-light/pom.xml b/tests/integration/tests/custom-projects/deprecated-sonar-light/pom.xml deleted file mode 100644 index b017cdadac2..00000000000 --- a/tests/integration/tests/custom-projects/deprecated-sonar-light/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ -<!-- this maven file is used by sonar only. Project is built with ant (see build.xml). -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>deprecated-sonar-light</artifactId>
- <name>deprecated-sonar-light</name>
- <version>1.0</version>
- <description>Deprecated "light mode"</description>
-
- <build>
- <sourceDirectory>src</sourceDirectory>
-
- <!-- ant compiles sources into this directory -->
- <outputDirectory>build/classes</outputDirectory>
-
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <failOnError>false</failOnError>
- <excludes><exclude>**/*</exclude></excludes>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
-
- <!--
- Findbugs needs the auxiliary classpath to get results as accurate as possible. It avoids getting warnings like :
-
- The following classes needed for analysis were missing:
- junit.framework.TestCase
- -->
- <dependencies>
- <dependency>
- <groupId>deps</groupId>
- <artifactId>dep1</artifactId>
- <version>0.1</version>
- <scope>system</scope>
- <systemPath>${basedir}/lib/log4j-1.2.13.jar</systemPath>
- </dependency>
- </dependencies>
-
- <properties>
- <sonar.light>true</sonar.light>
- <sonar.classesDir>build/classes</sonar.classesDir>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/deprecated-sonar-light/src/hello/HelloWorld.java b/tests/integration/tests/custom-projects/deprecated-sonar-light/src/hello/HelloWorld.java deleted file mode 100644 index 1411f9f15bf..00000000000 --- a/tests/integration/tests/custom-projects/deprecated-sonar-light/src/hello/HelloWorld.java +++ /dev/null @@ -1,28 +0,0 @@ -package hello;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.BasicConfigurator;
-import java.util.Vector;
-
-public class HelloWorld {
- static Logger logger = Logger.getLogger(HelloWorld.class);
-
- public static void main(String[] args) {
- BasicConfigurator.configure();
- logger.info("Hello World"); // the old SysO-statement
-
- String temp = new String();
- Vector<String> v = new Vector<String>();
- }
-
- public Object clone() {
- return new HelloWorld();
- }
- public boolean equals(Object o) {
- return true;
- }
-
- public boolean Equals(Object o) {
- return true;
- }
-}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml b/tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml deleted file mode 100644 index 814f2a8f99e..00000000000 --- a/tests/integration/tests/custom-projects/invalid-java-source-dir/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ -<!-- this maven file is used by sonar only. Project is built with ant (see build.xml). --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>invalid-java-source-dir</artifactId> - <name>invalid-java-source-dir</name> - <version>1.0-SNAPSHOT</version> - <description> - SONAR-791 When the source directory is not exactly the java package root, Sonar should stop the analysis. - See http://jira.codehaus.org/browse/SONAR-791 - </description> - - <build> - <!-- source directory should be src/main/java. - The class com.foo.Bar should not be considered in Sonar as the class main.java.com.foo.Bar - --> - <sourceDirectory>src</sourceDirectory> - </build> - - <properties> - <sonar.dynamicAnalysis>false</sonar.dynamicAnalysis> - </properties> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java b/tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java deleted file mode 100644 index 94482bf6d3b..00000000000 --- a/tests/integration/tests/custom-projects/invalid-java-source-dir/src/main/java/com/foo/Bar.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.foo; - -public class Bar { - public void hello(String param) { - String s="hello"; - int i=3000; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/reuse-coverage-reports/pom.xml b/tests/integration/tests/custom-projects/reuse-coverage-reports/pom.xml deleted file mode 100644 index 0a9d066882b..00000000000 --- a/tests/integration/tests/custom-projects/reuse-coverage-reports/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>reuse-coverage-reports</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>[SONAR-415] reuse-coverage-reports</name>
- <description>see http://jira.codehaus.org/browse/SONAR-415</description>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <formats>
- <format>xml</format>
- </formats>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>cobertura</goal>
- </goals>
- <phase>package</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <properties>
- <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
- <!-- reuse surefire reports from default directory /target/surefire-reports) -->
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/reuse-coverage-reports/src/main/java/org/sonar/tests/Hello.java b/tests/integration/tests/custom-projects/reuse-coverage-reports/src/main/java/org/sonar/tests/Hello.java deleted file mode 100644 index 33ad2d055a2..00000000000 --- a/tests/integration/tests/custom-projects/reuse-coverage-reports/src/main/java/org/sonar/tests/Hello.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.sonar.tests; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - protected int notCalled() { - int i=0; - i++; - return i+3; - } -} diff --git a/tests/integration/tests/custom-projects/reuse-coverage-reports/src/test/java/org/sonar/tests/HelloTest.java b/tests/integration/tests/custom-projects/reuse-coverage-reports/src/test/java/org/sonar/tests/HelloTest.java deleted file mode 100644 index f268c714b46..00000000000 --- a/tests/integration/tests/custom-projects/reuse-coverage-reports/src/test/java/org/sonar/tests/HelloTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.sonar.tests; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void shouldNotFail() { - assertEquals(true, true); - } -} diff --git a/tests/integration/tests/custom-projects/timemachine/pom.xml b/tests/integration/tests/custom-projects/timemachine/pom.xml deleted file mode 100644 index fe723981f18..00000000000 --- a/tests/integration/tests/custom-projects/timemachine/pom.xml +++ /dev/null @@ -1,9 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>timemachine</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - time machine</name>
- <description>Sonar integration tests - time machine</description>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/timemachine/src/main/java/org/sonar/tests/timemachine/Hello.java b/tests/integration/tests/custom-projects/timemachine/src/main/java/org/sonar/tests/timemachine/Hello.java deleted file mode 100644 index f28489baaa3..00000000000 --- a/tests/integration/tests/custom-projects/timemachine/src/main/java/org/sonar/tests/timemachine/Hello.java +++ /dev/null @@ -1,19 +0,0 @@ - -package org.sonar.tests.timemachine; - -public class Hello { - - protected void methodOne() { - int i = 0; - i++; - } - - protected void methodTwo() { - int i = 0; - i++; - } - - protected int methodReturnThree() { - return 3; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/violations-timemachine/README.txt b/tests/integration/tests/custom-projects/violations-timemachine/README.txt deleted file mode 100644 index 23df016b9db..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/README.txt +++ /dev/null @@ -1,4 +0,0 @@ -Use-cases to check: -* File added -* File removed -* File with new/fixed violations diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v1/pom.xml b/tests/integration/tests/custom-projects/violations-timemachine/v1/pom.xml deleted file mode 100644 index 3d8995b11f3..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v1/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>violations-timemachine</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>jar</packaging> - <name>Violations timemachine</name> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - </plugins> - </build> - - <properties> - <sonar.profile>violations-timemachine</sonar.profile> - <sonar.projectDate>2010-10-19</sonar.projectDate> - </properties> -</project> diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v1/src/main/java/org/sonar/tests/violationstimemachine/FileRemovedInV2.java b/tests/integration/tests/custom-projects/violations-timemachine/v1/src/main/java/org/sonar/tests/violationstimemachine/FileRemovedInV2.java deleted file mode 100644 index 6666868b5c8..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v1/src/main/java/org/sonar/tests/violationstimemachine/FileRemovedInV2.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sonar.tests.violationstimemachine; - -public class FileRemovedInV2 { - - protected void methodOne() { - int i = 0; // unused local variable - i++; - } - -} diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v1/src/main/java/org/sonar/tests/violationstimemachine/Hello.java b/tests/integration/tests/custom-projects/violations-timemachine/v1/src/main/java/org/sonar/tests/violationstimemachine/Hello.java deleted file mode 100644 index 4bbc1fc2ec1..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v1/src/main/java/org/sonar/tests/violationstimemachine/Hello.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.sonar.tests.violationstimemachine; - -public class Hello { - - // We need two similar violations here to check that they would be associated correctly - - protected void methodOne() { // design for extension - int i = 0; // unused local variable - i++; - } - - protected void methodTwo() { // design for extension - int i = 0; // unused local variable - i++; - } - - public int methodReturnThree() { // design for extension - return 3; - } -} diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v2/pom.xml b/tests/integration/tests/custom-projects/violations-timemachine/v2/pom.xml deleted file mode 100644 index d61f9471aae..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v2/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>violations-timemachine</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>jar</packaging> - <name>Violations timemachine</name> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - </plugins> - </build> - - <properties> - <sonar.profile>violations-timemachine</sonar.profile> - <sonar.projectDate>2010-11-13</sonar.projectDate> - </properties> -</project> diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/FileAddedInV2.java b/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/FileAddedInV2.java deleted file mode 100644 index 0d6026331ab..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/FileAddedInV2.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sonar.tests.violationstimemachine; - -public class FileAddedInV2 { - - protected void methodOne() { // design for extension - int i = 0; // unused local variable - i++; - } - -} diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/Hello.java b/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/Hello.java deleted file mode 100644 index c3c8e1c8bcb..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/Hello.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.sonar.tests.violationstimemachine; - -public class Hello { - - // We need two similar violations here to check that they would be associated correctly - - protected void methodOne() { // design for extension - int i = 0; // unused local variable - i++; - } - - protected void methodTwo() { // design for extension - int i = 0; // unused local variable - i++; - } - - public final int methodReturnThree() { // fixed - design for extension - int j = 0; // new - unused local variable - return 3; - } -} diff --git a/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/SecondFileAddedInV2.java b/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/SecondFileAddedInV2.java deleted file mode 100644 index bddd7f0c346..00000000000 --- a/tests/integration/tests/custom-projects/violations-timemachine/v2/src/main/java/org/sonar/tests/violationstimemachine/SecondFileAddedInV2.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sonar.tests.violationstimemachine; - -public class SecondFileAddedInV2 { - - public void hasOneViolation() { - int i = 0; // unused local variable - i++; - } - -} diff --git a/tests/integration/tests/integration-tests-backup.xml b/tests/integration/tests/integration-tests-backup.xml deleted file mode 100644 index 820563ab954..00000000000 --- a/tests/integration/tests/integration-tests-backup.xml +++ /dev/null @@ -1,2025 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<sonar-config> - <version><![CDATA[59]]></version> - <date><![CDATA[2009-02-19]]></date> - <metrics/> - <properties> - <property> - <key><![CDATA[tendency.depth]]></key> - <value><![CDATA[3]]></value> - </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-767-pmd-close-resource-rule]]></name> - <default-profile><![CDATA[false]]></default-profile> - <provided><![CDATA[false]]></provided> - <language><![CDATA[java]]></language> - <active-rules> - <active-rule> - <key><![CDATA[CloseResource]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[types]]></key> - <value><![CDATA[Connection,CloseableResource]]></value> - </param> - <param> - <key><![CDATA[closeTargets]]></key> - <value><![CDATA[close,closeSilently]]></value> - </param> - </params> - </active-rule> - </active-rules> - <alerts/> - </profile> - - <profile> - <name>turbo</name> - <default-profile>false</default-profile> - <provided>true</provided> - <language>java</language> - <active-rules/> - <alerts/> - </profile> - <profile> - <name><![CDATA[Sonar way]]></name> - <default-profile><![CDATA[false]]></default-profile> - <provided><![CDATA[true]]></provided> - <language><![CDATA[java]]></language> - <active-rules> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.StringLiteralEqualityCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.IllegalThrowsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.AnonInnerLengthCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.DefaultComesLastCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[CRITICAL]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[VARIABLE_DEF]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[max]]></key> - <value><![CDATA[7]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.ParameterNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedNullCheckInEquals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[StringInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ConstructorCallsOverridableMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidCatchingNPE]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidRethrowingException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ReplaceEnumerationWithIterator]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidArrayLoops]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedFormalParameter]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptySwitchStatements]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ClassCastExceptionWithToArray]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidThrowingNullPointerException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedPrivateField]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CompareObjectsWithEquals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseIndexOfChar]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[BigIntegerInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[FinalFieldCouldBeStatic]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IfStmtsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SuspiciousEqualsMethodName]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[InstantiationToGetClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SuspiciousHashcodeMethodName]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[LooseCoupling]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedLocalVariable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnnecessaryCaseChange]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptySynchronizedBlock]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SingularField]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedPrivateMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CloseResource]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidCatchingThrowable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyWhileStmt]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CollapsibleIfStatements]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UselessOperationOnImmutable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UselessOverridingMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedModifier]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[PreserveStackTrace]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseArraysAsList]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidThrowingRawExceptionTypes]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyIfStmt]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EqualsNull]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[BrokenNullCheck]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseCorrectExceptionLogging]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[InefficientStringBuffering]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ArrayIsStoredDirectly]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[FinalizeOverloaded]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ClassNamingConventions]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[DontImportSun]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[DontImportJavaLang]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[MissingStaticMethodInNonInstantiatableClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[StringBufferInstantiationWithChar]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseArrayListInsteadOfVector]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[WhileLoopsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[StringToString]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SimplifyConditional]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ReplaceVectorWithList]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[NcssMethodCount]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[minimum]]></key> - <value><![CDATA[50]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[AvoidPrintStackTrace]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[MethodWithSameNameAsEnclosingClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SuspiciousConstantFieldName]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[NcssTypeCount]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[minimum]]></key> - <value><![CDATA[800]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[AvoidInstanceofChecksInCatchClause]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyFinallyBlock]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IntegerInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDollarSigns]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidAssertAsIdentifier]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnnecessaryLocalBeforeReturn]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidCallingFinalize]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[BooleanInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnconditionalIfStatement]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CloneThrowsCloneNotSupportedException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ReplaceHashtableWithMap]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDecimalLiteralsInBigDecimalConstructor]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ForLoopsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyTryBlock]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SignatureDeclareThrowsException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyFinalizer]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IdempotentOperations]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ExceptionAsFlowControl]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyStaticInitializer]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[FinalizeDoesNotCallSuperFinalize]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseStringBufferLength]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidEnumAsIdentifier]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IfElseStmtsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SystemPrintln]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UselessStringValueOf]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDuplicateLiterals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - </active-rules> - <alerts/> - </profile> - <profile> - <name><![CDATA[Sun checks]]></name> - <default-profile><![CDATA[false]]></default-profile> - <provided><![CDATA[true]]></provided> - <language><![CDATA[java]]></language> - <active-rules> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocPackageCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[lineSeparator]]></key> - <value><![CDATA[system]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[COMMA,SEMI,TYPECAST]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[CTOR_CALL,LPAREN,METHOD_CALL,RPAREN,SUPER_CTOR_CALL]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[LITERAL_DO,LITERAL_ELSE,LITERAL_IF,LITERAL_FOR,LITERAL_WHILE]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.MissingSwitchDefaultCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyForIteratorPadCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowUndeclaredRTE]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.IllegalInstantiationCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[METHOD_DEF,CTOR_DEF]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.UpperEllCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.TodoCommentCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[TODO:]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[ASSIGN,BAND_ASSIGN,BOR_ASSIGN,BSR_ASSIGN,BXOR_ASSIGN,DIV_ASSIGN,MINUS_ASSIGN,MOD_ASSIGN,PLUS_ASSIGN,SL_ASSIGN,SR_ASSIGN,STAR_ASSIGN]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.TypecastParenPadCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[TYPECAST,RPAREN]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowUnchecked]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[METHOD_DEF,VARIABLE_DEF,ANNOTATION_FIELD_DEF]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[ignorePattern]]></key> - <value><![CDATA[^$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.FileLengthCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[max]]></key> - <value><![CDATA[2000]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.ParameterNumberCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[max]]></key> - <value><![CDATA[7]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[option]]></key> - <value><![CDATA[nl]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_IF,LITERAL_ELSE]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z]+(.[a-zA-Z_][a-zA-Z0-9_]*)*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.TypeNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.MethodLengthCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[max]]></key> - <value><![CDATA[150]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowMissingParamTags]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[checkFirstSentence]]></key> - <value><![CDATA[true]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.InterfaceIsTypeCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowMarkerInterfaces]]></key> - <value><![CDATA[true]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[PARAMETER_DEF,VARIABLE_DEF]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.AvoidInlineConditionalsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceAfterCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowLineBreaks]]></key> - <value><![CDATA[true]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[option]]></key> - <value><![CDATA[eol]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[\s+$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[packageAllowed]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.ParameterNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowLineBreaks]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.MethodParamPadCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowLineBreaks]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[NUM_DOUBLE,NUM_FLOAT,NUM_INT,NUM_LONG]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[format]]></key> - <value><![CDATA[^[a-z][a-zA-Z0-9]*$]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.AvoidNestedBlocksCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[allowInSwitchCase]]></key> - <value><![CDATA[false]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,GENERIC_START,GENERIC_END,TYPE_EXTENSION_AND,WILDCARD_TYPE]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[javaStyle]]></key> - <value><![CDATA[true]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[MethodReturnsInternalArray]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ArrayIsStoredDirectly]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - </active-rules> - <alerts/> - </profile> - <profile> - <name><![CDATA[Integration tests]]></name> - <default-profile><![CDATA[true]]></default-profile> - <provided><![CDATA[false]]></provided> - <language><![CDATA[java]]></language> - <active-rules> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.StringLiteralEqualityCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.IllegalThrowsCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.AnonInnerLengthCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.DefaultComesLastCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[tokens]]></key> - <value><![CDATA[VARIABLE_DEF]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[max]]></key> - <value><![CDATA[7]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.naming.ParameterNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[org.sonar.it.checkstyle.MethodsCountCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedNullCheckInEquals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[StringInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ConstructorCallsOverridableMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidCatchingNPE]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidRethrowingException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ReplaceEnumerationWithIterator]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidArrayLoops]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedFormalParameter]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptySwitchStatements]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ClassCastExceptionWithToArray]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidThrowingNullPointerException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedPrivateField]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CompareObjectsWithEquals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseIndexOfChar]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[BigIntegerInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[FinalFieldCouldBeStatic]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IfStmtsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SuspiciousEqualsMethodName]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[InstantiationToGetClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SuspiciousHashcodeMethodName]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[LooseCoupling]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedLocalVariable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnnecessaryCaseChange]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptySynchronizedBlock]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SingularField]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedPrivateMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CloseResource]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidCatchingThrowable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyWhileStmt]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CollapsibleIfStatements]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UselessOperationOnImmutable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UselessOverridingMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnusedModifier]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[PreserveStackTrace]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseArraysAsList]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidThrowingRawExceptionTypes]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyIfStmt]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EqualsNull]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[BrokenNullCheck]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseCorrectExceptionLogging]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[InefficientStringBuffering]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ArrayIsStoredDirectly]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[FinalizeOverloaded]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ClassNamingConventions]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[DontImportSun]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[DontImportJavaLang]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[MissingStaticMethodInNonInstantiatableClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[StringBufferInstantiationWithChar]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseArrayListInsteadOfVector]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[WhileLoopsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[StringToString]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SimplifyConditional]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ReplaceVectorWithList]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[NcssMethodCount]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[minimum]]></key> - <value><![CDATA[50]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[AvoidPrintStackTrace]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[MethodWithSameNameAsEnclosingClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SuspiciousConstantFieldName]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[NcssTypeCount]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[minimum]]></key> - <value><![CDATA[800]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[AvoidInstanceofChecksInCatchClause]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyFinallyBlock]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IntegerInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDollarSigns]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidAssertAsIdentifier]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnnecessaryLocalBeforeReturn]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidCallingFinalize]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[BooleanInstantiation]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UnconditionalIfStatement]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CloneThrowsCloneNotSupportedException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ReplaceHashtableWithMap]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDecimalLiteralsInBigDecimalConstructor]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ForLoopsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyTryBlock]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SignatureDeclareThrowsException]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyFinalizer]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IdempotentOperations]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[ExceptionAsFlowControl]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[EmptyStaticInitializer]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[FinalizeDoesNotCallSuperFinalize]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UseStringBufferLength]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidEnumAsIdentifier]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[IfElseStmtsMustUseBraces]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[SystemPrintln]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[UselessStringValueOf]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDuplicateLiterals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[WARNING]]></level> - </active-rule> - <active-rule> - <key><![CDATA[MaximumMethodsCountCheck]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidIfWithoutBrace]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE]]></key> - <plugin><![CDATA[findbugs]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CN_IDIOM]]></key> - <plugin><![CDATA[findbugs]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CN_IDIOM_NO_SUPER_CALL]]></key> - <plugin><![CDATA[findbugs]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[NP_CLONE_COULD_RETURN_NULL]]></key> - <plugin><![CDATA[findbugs]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[PreventUseOfEmptyClass]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[INFO]]></level> - <params> - <param> - <key><![CDATA[xpath]]></key> - <value><![CDATA[//VariableDeclarator[../Type/ReferenceType/ClassOrInterfaceType[@Image='EmptyClass']]]]></value> - </param> - <param> - <key><![CDATA[message]]></key> - <value><![CDATA[Prevent use of EmptyClass class]]></value> - </param> - </params> - </active-rule> - </active-rules> - <alerts> - <alert> - <operator><![CDATA[>]]></operator> - <value-error><![CDATA[10]]></value-error> - <value-warning><![CDATA[30]]></value-warning> - <metric-key><![CDATA[class_complexity]]></metric-key> - </alert> - <alert> - <operator><![CDATA[<]]></operator> - <value-error><![CDATA[50]]></value-error> - <value-warning><![CDATA[80]]></value-warning> - <metric-key><![CDATA[coverage]]></metric-key> - </alert> - </alerts> - </profile> - <profile> - <name><![CDATA[SONAR-594-no-violations]]></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.naming.AbstractClassNameCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AbstractClassWithoutAbstractMethod]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[CO_ABSTRACT_SELF]]></key> - <plugin><![CDATA[findbugs]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - </active-rules> - <alerts/> - </profile> - <profile> - <name><![CDATA[single-classes]]></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.javadoc.JavadocPackageCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.sizes.FileLengthCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - <params> - <param> - <key><![CDATA[max]]></key> - <value><![CDATA[2]]></value> - </param> - </params> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[AvoidDuplicateLiterals]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[ERROR]]></level> - </active-rule> - </active-rules> - <alerts/> - </profile> - <profile> - <name><![CDATA[Empty profile]]></name> - <default-profile><![CDATA[false]]></default-profile> - <provided><![CDATA[false]]></provided> - <language><![CDATA[java]]></language> - <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> - <profile> - <name><![CDATA[violations-timemachine]]></name> - <default-profile><![CDATA[false]]></default-profile> - <provided><![CDATA[false]]></provided> - <language><![CDATA[java]]></language> - <active-rules> - <active-rule> - <key><![CDATA[UnusedLocalVariable]]></key> - <plugin><![CDATA[pmd]]></plugin> - <level><![CDATA[MAJOR]]></level> - </active-rule> - <active-rule> - <key><![CDATA[com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck]]></key> - <plugin><![CDATA[checkstyle]]></plugin> - <level><![CDATA[MINOR]]></level> - </active-rule> - </active-rules> - <alerts/> - </profile> - </profiles> -</sonar-config> diff --git a/tests/integration/tests/maven-projects/SONAR-1074-commented-code/pom.xml b/tests/integration/tests/maven-projects/SONAR-1074-commented-code/pom.xml deleted file mode 100644 index 689a7a13e80..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-1074-commented-code/pom.xml +++ /dev/null @@ -1,22 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>commented-code</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>commented-code</name> - <description>Commented code</description> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - </plugins> - </build> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/SONAR-1074-commented-code/src/main/java/com/test/CommentedCode.java b/tests/integration/tests/maven-projects/SONAR-1074-commented-code/src/main/java/com/test/CommentedCode.java deleted file mode 100644 index cb543d85ed1..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-1074-commented-code/src/main/java/com/test/CommentedCode.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.test; - -import java.io.PrintWriter; - -/** - * Commented Code - */ -public class CommentedCode { - - public void test(PrintWriter pw) { - System.out.println("this code is not commented"); - } - - //public void test1(PrintWriter pw) { - // System.out.println("this code seems to be commented"); - //} - - /*public void test1(PrintWriter pw) { - System.out.println("this code seems also to be commented"); - }*/ - - /** - * public boolean test2(PrintWriter pw) { - * System.out.println("this code is not considered as commented"); - * return true; - * } - */ -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/SONAR-1772/pom.xml b/tests/integration/tests/maven-projects/SONAR-1772/pom.xml deleted file mode 100644 index 40993ba0d57..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-1772/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>findbugs</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>jar</packaging> - <name>[SONAR-1772]</name> - <description>see http://jira.codehaus.org/browse/SONAR-1772</description> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - </plugins> - </build> - - <properties> - <sonar.profile>SONAR-1772</sonar.profile> - </properties> -</project> diff --git a/tests/integration/tests/maven-projects/SONAR-1772/src/main/java/org/sonar/tests/Hello.java b/tests/integration/tests/maven-projects/SONAR-1772/src/main/java/org/sonar/tests/Hello.java deleted file mode 100644 index 4591cf3649a..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-1772/src/main/java/org/sonar/tests/Hello.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests; - -import java.io.IOException; -import java.io.LineNumberReader; -import java.io.Reader; - -public final class Hello { - private final LineNumberReader reader; - - public Hello(Reader r) { - this.reader = new LineNumberReader(r); - } - - public String[] readTokens() throws IOException { - return reader.readLine().split("\\|"); // Dodgy - Dereference of the result of readLine() without nullcheck - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-594-no-violations/pom.xml b/tests/integration/tests/maven-projects/SONAR-594-no-violations/pom.xml deleted file mode 100644 index f2797264d32..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-594-no-violations/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>SONAR-594-no-violations</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>SONAR-594 no violations</name> - - <properties> - <sonar.profile>SONAR-594-no-violations</sonar.profile> - </properties>
-
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/SONAR-594-no-violations/src/main/java/org/sonar/tests/Hello.java b/tests/integration/tests/maven-projects/SONAR-594-no-violations/src/main/java/org/sonar/tests/Hello.java deleted file mode 100644 index e762b8f3654..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-594-no-violations/src/main/java/org/sonar/tests/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/pom.xml b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/pom.xml deleted file mode 100644 index 0e439f28d1d..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>SONAR-767-pmd-close-resource-rule</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>jar</packaging> - <name>SONAR-767-pmd-close-resource-rule</name> - - <properties> - <sonar.profile>SONAR-767-pmd-close-resource-rule</sonar.profile> - </properties> - -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/CloseableResource.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/CloseableResource.java deleted file mode 100644 index 61455ae5cfe..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/CloseableResource.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests; - -public class CloseableResource { - public void init() { - - } - - public void close() { - - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsClosed.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsClosed.java deleted file mode 100644 index 7a2af0171f8..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsClosed.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.sonar.tests; - -import java.sql.Connection; - -public class ConnectionIsClosed { - - public void connectionIsClosed() throws Exception { - Connection c = getConnection(); - try { - // do stuff - c.commit(); - - } finally { - c.close(); - } - } - - protected Connection getConnection() { - return null; - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsClosedInOtherMethod.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsClosedInOtherMethod.java deleted file mode 100644 index 62e663da06f..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsClosedInOtherMethod.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests; - -import java.sql.Connection; -import java.sql.SQLException; - -public class ConnectionIsClosedInOtherMethod { - - public void connectionIsClosedInOtherMethod() throws Exception { - Connection c = getConnection(); - try { - // do stuff - c.commit(); - - } finally { - closeSilently(c); - } - } - - protected Connection getConnection() { - return null; - } - - protected void closeSilently(Connection c) { - try { - c.close(); - } catch (SQLException e) { - // nothing to do - } - } - -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsNotClosed.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsNotClosed.java deleted file mode 100644 index 39d1d64e560..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ConnectionIsNotClosed.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.sonar.tests; - -import java.sql.Connection; - -public class ConnectionIsNotClosed { - public void connectionIsNotClosed() throws Exception { - Connection c = getConnection(); - try { - // do stuff - c.commit(); - - } finally { - // c.close(); - } - } - - protected Connection getConnection() { - return null; - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsClosed.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsClosed.java deleted file mode 100644 index f07140c96b5..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsClosed.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.sonar.tests; - -public class ResourceIsClosed { - - public void resourceIsStopped() throws Exception { - CloseableResource resource = new CloseableResource(); - try { - resource.init(); - - } finally { - resource.close(); - } - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsClosedInOtherMethod.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsClosedInOtherMethod.java deleted file mode 100644 index a0736b2c8d0..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsClosedInOtherMethod.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests; - - -public class ResourceIsClosedInOtherMethod { - - public void resourceIsClosedInOtherMethod() { - CloseableResource resource = new CloseableResource(); - try { - // do stuff - resource.init(); - - } finally { - closeSilently(resource); - } - } - - - protected void closeSilently(CloseableResource resource) { - try { - resource.close(); - } catch (Exception e) { - // nothing to do - } - } - -} diff --git a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsNotClosed.java b/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsNotClosed.java deleted file mode 100644 index 46438061712..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-767-pmd-close-resource-rule/src/main/java/org/sonar/tests/ResourceIsNotClosed.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.sonar.tests; - -public class ResourceIsNotClosed { - - public void resourceIsNotStopped() throws Exception { - CloseableResource resource = new CloseableResource(); - try { - resource.init(); - - } finally { - //resource.stop(); - } - } -} diff --git a/tests/integration/tests/maven-projects/SONAR-787-checkstyle-SuppressionCommentFilter/pom.xml b/tests/integration/tests/maven-projects/SONAR-787-checkstyle-SuppressionCommentFilter/pom.xml deleted file mode 100644 index 2848c47ba38..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-787-checkstyle-SuppressionCommentFilter/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>SONAR-787-checkstyle-SuppressionCommentFilter</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>SONAR-787-checkstyle-SuppressionCommentFilter</name> - - <properties> - <sonar.profile>SONAR-787-checkstyle-SuppressionCommentFilter</sonar.profile> - </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/SONAR-787-checkstyle-SuppressionCommentFilter/src/main/java/org/sonar/itests/IgnoreCheckstyleFalsePositives.java b/tests/integration/tests/maven-projects/SONAR-787-checkstyle-SuppressionCommentFilter/src/main/java/org/sonar/itests/IgnoreCheckstyleFalsePositives.java deleted file mode 100644 index 5a4e64988b8..00000000000 --- a/tests/integration/tests/maven-projects/SONAR-787-checkstyle-SuppressionCommentFilter/src/main/java/org/sonar/itests/IgnoreCheckstyleFalsePositives.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.sonar.tests; - -public class IgnoreCheckstyleFalsePositives { - - public void ignoreFalsePositive(){ - //CHECKSTYLE:OFF - try { - int i=2; - } catch (Exception e) { - } - //CHECKSTYLE:ON - } - - public void ruleIsViolated(){ - try { - int i=2; - } catch (Exception e) { - } - } -} diff --git a/tests/integration/tests/maven-projects/branch/pom.xml b/tests/integration/tests/maven-projects/branch/pom.xml deleted file mode 100644 index 89638e1e831..00000000000 --- a/tests/integration/tests/maven-projects/branch/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>reference</artifactId>
- <version>0.9-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - reference</name>
-
- <properties>
- <sonar.branch>BRANCH-0.9</sonar.branch>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/branch/src/main/java/org/sonar/tests/reference/HelloSwiss.java b/tests/integration/tests/maven-projects/branch/src/main/java/org/sonar/tests/reference/HelloSwiss.java deleted file mode 100644 index 2ac386ea5eb..00000000000 --- a/tests/integration/tests/maven-projects/branch/src/main/java/org/sonar/tests/reference/HelloSwiss.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.sonar.tests.reference; - -public interface HelloSwiss { - - void doSomething(); - - void doSomethingElse(); - -} diff --git a/tests/integration/tests/maven-projects/branch/src/main/java/org/sonar/tests/reference/HelloWorld.java b/tests/integration/tests/maven-projects/branch/src/main/java/org/sonar/tests/reference/HelloWorld.java deleted file mode 100644 index a079f69234c..00000000000 --- a/tests/integration/tests/maven-projects/branch/src/main/java/org/sonar/tests/reference/HelloWorld.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.sonar.tests.reference; - -public class HelloWorld { - - public void hello() { - - } - - public Object clone() { - return null; - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module1/pom.xml b/tests/integration/tests/maven-projects/clover2-skip/module1/pom.xml deleted file mode 100644 index 937e8263823..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module1/pom.xml +++ /dev/null @@ -1,23 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.clover2skip</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>module1-skip</artifactId>
- <name>module1-skip</name>
- <build>
- <plugins>
- <plugin>
- <groupId>com.atlassian.maven.plugins</groupId>
- <artifactId>maven-clover2-plugin</artifactId>
- <configuration>
- <licenseLocation>${basedir}/src/test/clover/clover2.license</licenseLocation>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/Hello.java b/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/Hello.java deleted file mode 100644 index 845746edfb1..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.clover2.module1; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/MyInterface.java b/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/MyInterface.java deleted file mode 100644 index 431a32034ec..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/MyInterface.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.sonar.tests.clover2.module1; - -public interface MyInterface { - void myMethod(); -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/NotTestedClass.java b/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/NotTestedClass.java deleted file mode 100644 index c12c6f6ff34..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module1/src/main/java/org/sonar/tests/clover2/module1/NotTestedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests.clover2.module1; - -public class NotTestedClass { - private String hello; - - public NotTestedClass(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - public String hello() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module1/src/test/java/org/sonar/tests/clover2/module1/HelloTest.java b/tests/integration/tests/maven-projects/clover2-skip/module1/src/test/java/org/sonar/tests/clover2/module1/HelloTest.java deleted file mode 100644 index fe422a3b08d..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module1/src/test/java/org/sonar/tests/clover2/module1/HelloTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.sonar.tests.clover2.module1; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thisIsError() { - assertEquals("foo", "bar"); - } - - @Test - public void thisIsFailure() { - throw new RuntimeException(); - } - - @Test - public void anotherTest() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void again() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thelast() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module2/pom.xml b/tests/integration/tests/maven-projects/clover2-skip/module2/pom.xml deleted file mode 100644 index a6fdd1f5356..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module2/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.clover2skip</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>module2-skip</artifactId>
- <name>module2-skip</name>
- <properties>
- <maven.clover.skip>true</maven.clover.skip>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover2-skip/module2/src/main/java/org/sonar/tests/clover2/module2/Hello.java b/tests/integration/tests/maven-projects/clover2-skip/module2/src/main/java/org/sonar/tests/clover2/module2/Hello.java deleted file mode 100644 index f7a21d1559a..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module2/src/main/java/org/sonar/tests/clover2/module2/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.clover2.module2; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module2/src/main/java/org/sonar/tests/clover2/module2/NotTestedClass.java b/tests/integration/tests/maven-projects/clover2-skip/module2/src/main/java/org/sonar/tests/clover2/module2/NotTestedClass.java deleted file mode 100644 index 96c63955851..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module2/src/main/java/org/sonar/tests/clover2/module2/NotTestedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests.clover2.module2; - -public class NotTestedClass { - private String hello; - - public NotTestedClass(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - public String hello() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/module2/src/test/java/org/sonar/tests/clover2/module2/HelloTest.java b/tests/integration/tests/maven-projects/clover2-skip/module2/src/test/java/org/sonar/tests/clover2/module2/HelloTest.java deleted file mode 100644 index 5872fbb93d7..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/module2/src/test/java/org/sonar/tests/clover2/module2/HelloTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.sonar.tests.clover2.module2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thisIsError() { - assertEquals("foo", "bar"); - } - - @Test - public void thisIsFailure() { - throw new RuntimeException(); - } - - @Test - public void anotherTest() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void again() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thelast() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/clover2-skip/pom.xml b/tests/integration/tests/maven-projects/clover2-skip/pom.xml deleted file mode 100644 index 8cab2c587bf..00000000000 --- a/tests/integration/tests/maven-projects/clover2-skip/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests.clover2skip</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>Sonar tests - clover2 skip</name>
- <description>foo</description>
- <modules>
- <module>module1</module>
- <module>module2</module>
- </modules>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>com.atlassian.maven.plugins</groupId>
- <artifactId>maven-clover2-plugin</artifactId> - <version>2.6.3</version>
- <configuration>
- <license><![CDATA[ONQOnjJexXXewfuckQlojiQGMqMVnhtAbhxwjjoVkHbWgx
- mi2KrURzVJmEZQD1l0T>JBJk2Ke7ZrTZvmO00u366sv9IY
- rqqMuWRPpRNNRompPqrtwqnoPpMoqqprMrVVvVXXVtVppQ
- RrnmqmUUnorrvrtommmmmUUnorrvrtommmmmUUJlkXoUUn
- mmmm]]></license>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <properties>
- <sonar.profile>turbo</sonar.profile>
- <sonar.core.codeCoveragePlugin>clover</sonar.core.codeCoveragePlugin>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover2/module1/pom.xml b/tests/integration/tests/maven-projects/clover2/module1/pom.xml deleted file mode 100644 index 3a078a899a5..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module1/pom.xml +++ /dev/null @@ -1,11 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.clover2</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>module1</artifactId>
- <name>module1</name>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/Hello.java b/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/Hello.java deleted file mode 100644 index 845746edfb1..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.clover2.module1; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/MyInterface.java b/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/MyInterface.java deleted file mode 100644 index 431a32034ec..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/MyInterface.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.sonar.tests.clover2.module1; - -public interface MyInterface { - void myMethod(); -} diff --git a/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/NotTestedClass.java b/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/NotTestedClass.java deleted file mode 100644 index c12c6f6ff34..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module1/src/main/java/org/sonar/tests/clover2/module1/NotTestedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests.clover2.module1; - -public class NotTestedClass { - private String hello; - - public NotTestedClass(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - public String hello() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2/module1/src/test/java/org/sonar/tests/clover2/module1/HelloTest.java b/tests/integration/tests/maven-projects/clover2/module1/src/test/java/org/sonar/tests/clover2/module1/HelloTest.java deleted file mode 100644 index fe422a3b08d..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module1/src/test/java/org/sonar/tests/clover2/module1/HelloTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.sonar.tests.clover2.module1; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thisIsError() { - assertEquals("foo", "bar"); - } - - @Test - public void thisIsFailure() { - throw new RuntimeException(); - } - - @Test - public void anotherTest() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void again() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thelast() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/clover2/module2/pom.xml b/tests/integration/tests/maven-projects/clover2/module2/pom.xml deleted file mode 100644 index 20c7e16c0ce..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module2/pom.xml +++ /dev/null @@ -1,11 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.clover2</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>module2</artifactId>
- <name>module2</name>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover2/module2/src/main/java/org/sonar/tests/clover2/module2/Hello.java b/tests/integration/tests/maven-projects/clover2/module2/src/main/java/org/sonar/tests/clover2/module2/Hello.java deleted file mode 100644 index f7a21d1559a..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module2/src/main/java/org/sonar/tests/clover2/module2/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.clover2.module2; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2/module2/src/main/java/org/sonar/tests/clover2/module2/NotTestedClass.java b/tests/integration/tests/maven-projects/clover2/module2/src/main/java/org/sonar/tests/clover2/module2/NotTestedClass.java deleted file mode 100644 index 96c63955851..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module2/src/main/java/org/sonar/tests/clover2/module2/NotTestedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests.clover2.module2; - -public class NotTestedClass { - private String hello; - - public NotTestedClass(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - public String hello() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover2/module2/src/test/java/org/sonar/tests/clover2/module2/HelloTest.java b/tests/integration/tests/maven-projects/clover2/module2/src/test/java/org/sonar/tests/clover2/module2/HelloTest.java deleted file mode 100644 index 5872fbb93d7..00000000000 --- a/tests/integration/tests/maven-projects/clover2/module2/src/test/java/org/sonar/tests/clover2/module2/HelloTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.sonar.tests.clover2.module2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thisIsError() { - assertEquals("foo", "bar"); - } - - @Test - public void thisIsFailure() { - throw new RuntimeException(); - } - - @Test - public void anotherTest() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void again() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thelast() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/clover2/pom.xml b/tests/integration/tests/maven-projects/clover2/pom.xml deleted file mode 100644 index a6e37723216..00000000000 --- a/tests/integration/tests/maven-projects/clover2/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests.clover2</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>Sonar tests - clover2</name>
- <description>foo</description>
- <modules>
- <module>module1</module>
- <module>module2</module>
- </modules>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>com.atlassian.maven.plugins</groupId>
- <artifactId>maven-clover2-plugin</artifactId> - <version>2.6.3</version>
- <configuration>
- <license><![CDATA[ONQOnjJexXXewfuckQlojiQGMqMVnhtAbhxwjjoVkHbWgx
- mi2KrURzVJmEZQD1l0T>JBJk2Ke7ZrTZvmO00u366sv9IY
- rqqMuWRPpRNNRompPqrtwqnoPpMoqqprMrVVvVXXVtVppQ
- RrnmqmUUnorrvrtommmmmUUnorrvrtommmmmUUJlkXoUUn
- mmmm]]></license>
- </configuration>
- </plugin>
- </plugins>
-</pluginManagement>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.7</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <properties>
- <sonar.profile>turbo</sonar.profile>
- <sonar.core.codeCoveragePlugin>clover</sonar.core.codeCoveragePlugin>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover3/module1/pom.xml b/tests/integration/tests/maven-projects/clover3/module1/pom.xml deleted file mode 100644 index 364c03faebf..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module1/pom.xml +++ /dev/null @@ -1,11 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.clover3</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>module1</artifactId>
- <name>module1</name>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/Hello.java b/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/Hello.java deleted file mode 100644 index 6f43534df7e..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.clover3.module1; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/MyInterface.java b/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/MyInterface.java deleted file mode 100644 index e48174fd88c..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/MyInterface.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.sonar.tests.clover3.module1; - -public interface MyInterface { - void myMethod(); -} diff --git a/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/NotTestedClass.java b/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/NotTestedClass.java deleted file mode 100644 index 4d022b99d8c..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module1/src/main/java/org/sonar/tests/clover3/module1/NotTestedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests.clover3.module1; - -public class NotTestedClass { - private String hello; - - public NotTestedClass(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - public String hello() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover3/module1/src/test/java/org/sonar/tests/clover3/module1/HelloTest.java b/tests/integration/tests/maven-projects/clover3/module1/src/test/java/org/sonar/tests/clover3/module1/HelloTest.java deleted file mode 100644 index 7ba00f712d2..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module1/src/test/java/org/sonar/tests/clover3/module1/HelloTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.sonar.tests.clover3.module1; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thisIsError() { - assertEquals("foo", "bar"); - } - - @Test - public void thisIsFailure() { - throw new RuntimeException(); - } - - @Test - public void anotherTest() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void again() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thelast() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/clover3/module2/pom.xml b/tests/integration/tests/maven-projects/clover3/module2/pom.xml deleted file mode 100644 index 5f6cc8877e7..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module2/pom.xml +++ /dev/null @@ -1,11 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.clover3</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>module2</artifactId>
- <name>module2</name>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/clover3/module2/src/main/java/org/sonar/tests/clover3/module2/Hello.java b/tests/integration/tests/maven-projects/clover3/module2/src/main/java/org/sonar/tests/clover3/module2/Hello.java deleted file mode 100644 index 697a5108d41..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module2/src/main/java/org/sonar/tests/clover3/module2/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.clover3.module2; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover3/module2/src/main/java/org/sonar/tests/clover3/module2/NotTestedClass.java b/tests/integration/tests/maven-projects/clover3/module2/src/main/java/org/sonar/tests/clover3/module2/NotTestedClass.java deleted file mode 100644 index a6b4f96cf33..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module2/src/main/java/org/sonar/tests/clover3/module2/NotTestedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests.clover3.module2; - -public class NotTestedClass { - private String hello; - - public NotTestedClass(String s){ - this.hello = s; - } - - public String say() { - return hello; - } - - public String hello() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/clover3/module2/src/test/java/org/sonar/tests/clover3/module2/HelloTest.java b/tests/integration/tests/maven-projects/clover3/module2/src/test/java/org/sonar/tests/clover3/module2/HelloTest.java deleted file mode 100644 index bff1f32e4cc..00000000000 --- a/tests/integration/tests/maven-projects/clover3/module2/src/test/java/org/sonar/tests/clover3/module2/HelloTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.sonar.tests.clover3.module2; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thisIsError() { - assertEquals("foo", "bar"); - } - - @Test - public void thisIsFailure() { - throw new RuntimeException(); - } - - @Test - public void anotherTest() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void again() { - assertEquals("hi", new Hello("hi").say()); - } - - @Test - public void thelast() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/clover3/pom.xml b/tests/integration/tests/maven-projects/clover3/pom.xml deleted file mode 100644 index 613459fa750..00000000000 --- a/tests/integration/tests/maven-projects/clover3/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests.clover3</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>Sonar tests - clover3</name>
- <description>foo</description>
- <modules>
- <module>module1</module>
- <module>module2</module>
- </modules>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>com.atlassian.maven.plugins</groupId>
- <artifactId>maven-clover2-plugin</artifactId> - <version>3.0.1</version>
- <configuration>
- <license><![CDATA[ONQOnjJexXXewfuckQlojiQGMqMVnhtAbhxwjjoVkHbWgx
- mi2KrURzVJmEZQD1l0T>JBJk2Ke7ZrTZvmO00u366sv9IY
- rqqMuWRPpRNNRompPqrtwqnoPpMoqqprMrVVvVXXVtVppQ
- RrnmqmUUnorrvrtommmmmUUnorrvrtommmmmUUJlkXoUUn
- mmmm]]></license>
- </configuration>
- </plugin>
- </plugins>
-</pluginManagement>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.7</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <properties>
- <sonar.profile>turbo</sonar.profile>
- <sonar.core.codeCoveragePlugin>clover</sonar.core.codeCoveragePlugin>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/do-not-import-sources/pom.xml b/tests/integration/tests/maven-projects/do-not-import-sources/pom.xml deleted file mode 100644 index 4cf8f137fcd..00000000000 --- a/tests/integration/tests/maven-projects/do-not-import-sources/pom.xml +++ /dev/null @@ -1,11 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>do-not-import-sources</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - do not import sources</name>
- <properties> - <sonar.importSources>false</sonar.importSources>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/do-not-import-sources/src/main/java/org/sonar/tests/doNotImportSources/Hello.java b/tests/integration/tests/maven-projects/do-not-import-sources/src/main/java/org/sonar/tests/doNotImportSources/Hello.java deleted file mode 100644 index fcb329f873d..00000000000 --- a/tests/integration/tests/maven-projects/do-not-import-sources/src/main/java/org/sonar/tests/doNotImportSources/Hello.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.sonar.tests.doNotImportSources; - -public interface Hello { - - void doSomething(); - - void doSomethingElse(); - -} diff --git a/tests/integration/tests/maven-projects/do-not-import-sources/src/main/java/org/sonar/tests/doNotImportSources/Swiss.java b/tests/integration/tests/maven-projects/do-not-import-sources/src/main/java/org/sonar/tests/doNotImportSources/Swiss.java deleted file mode 100644 index 30e5f424117..00000000000 --- a/tests/integration/tests/maven-projects/do-not-import-sources/src/main/java/org/sonar/tests/doNotImportSources/Swiss.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.sonar.tests.doNotImportSources; - -public class Swiss { - String test = "foo"; - - public Swiss(){ - String t; - if (true) - t = "bar"; - } - - public boolean equals(Object o) { - return false; - } -} diff --git a/tests/integration/tests/maven-projects/duplications/pom.xml b/tests/integration/tests/maven-projects/duplications/pom.xml deleted file mode 100644 index f54fa5b51db..00000000000 --- a/tests/integration/tests/maven-projects/duplications/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>duplications</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - duplications</name>
- <description>Sonar integration tests - duplications project</description>
- <url>http://foo/bar</url>
-
- <properties>
- <sonar.profile>turbo</sonar.profile>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>geronimo-spec</groupId>
- <artifactId>geronimo-spec-jta</artifactId>
- <version>1.0-M1</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate</artifactId>
- <version>3.2.6.ga</version>
- <!-- removing the hibernate JTA dep to avoid to have to install it
- manually and using the geronimo-spec-jta dep which is downloadable -->
- <exclusions>
- <exclusion>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- </exclusion>
- <!-- removing commons logging to avoid classloader issues and replacing it by jcl104-over-slf4j -->
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-annotations</artifactId>
- <version>3.3.0.ga</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-commons-annotations</artifactId>
- <version>3.3.0.ga</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>3.3.1.ga</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_with_other_package1/DuplicatedLinesWithOtherPackage.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_with_other_package1/DuplicatedLinesWithOtherPackage.java deleted file mode 100644 index 73efdd038bc..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_with_other_package1/DuplicatedLinesWithOtherPackage.java +++ /dev/null @@ -1,60 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_with_other_package1;
-
-public class DuplicatedLinesWithOtherPackage {
-
- public DuplicatedLinesWithOtherPackage() {
- }
-
- public void duplicatedMethodWithOtherPackage() {
- char[] charList = new char[30];
- charList[0] = 'a';
- charList[1] = 'b';
- charList[2] = 'c';
- charList[3] = 'd';
- charList[4] = 'e';
- charList[5] = 'f';
- charList[6] = 'g';
- charList[7] = 'g';
- charList[8] = 'g';
- charList[9] = 'g';
- charList[10] = 'g';
- charList[11] = 'g';
- charList[12] = 'g';
- charList[13] = 'g';
- charList[14] = 'g';
- charList[15] = 'g';
- charList[16] = 'g';
- charList[17] = 'g';
- charList[18] = 'g';
- charList[19] = 'g';
- charList[20] = 'g';
- charList[21] = 'g';
- charList[22] = 'g';
- charList[23] = 'g';
- charList[24] = 'g';
- charList[27] = 'g';
- charList[28] = 'g';
- charList[29] = 'g';
- charList[30] = 'g';
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_with_other_package2/DuplicatedLinesWithOtherPackage.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_with_other_package2/DuplicatedLinesWithOtherPackage.java deleted file mode 100644 index dd5f6108917..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_with_other_package2/DuplicatedLinesWithOtherPackage.java +++ /dev/null @@ -1,60 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_with_other_package2;
-
-public class DuplicatedLinesWithOtherPackage {
-
- public DuplicatedLinesWithOtherPackage() {
- }
-
- public void duplicatedMethodWithOtherPackage() {
- char[] charList = new char[30];
- charList[0] = 'a';
- charList[1] = 'b';
- charList[2] = 'c';
- charList[3] = 'd';
- charList[4] = 'e';
- charList[5] = 'f';
- charList[6] = 'g';
- charList[7] = 'g';
- charList[8] = 'g';
- charList[9] = 'g';
- charList[10] = 'g';
- charList[11] = 'g';
- charList[12] = 'g';
- charList[13] = 'g';
- charList[14] = 'g';
- charList[15] = 'g';
- charList[16] = 'g';
- charList[17] = 'g';
- charList[18] = 'g';
- charList[19] = 'g';
- charList[20] = 'g';
- charList[21] = 'g';
- charList[22] = 'g';
- charList[23] = 'g';
- charList[24] = 'g';
- charList[27] = 'g';
- charList[28] = 'g';
- charList[29] = 'g';
- charList[30] = 'g';
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage1.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage1.java deleted file mode 100644 index 77cb339ec5b..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage1.java +++ /dev/null @@ -1,124 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_within_package;
-
-public class DuplicatedLinesInSamePackage1 {
-
- public DuplicatedLinesInSamePackage1() {
- }
-
- /*
- * sddfgdfgfg
- */
- public void duplicatedMethodInSameClass1() {
- int intergerToBeIncremented = 0;
- while (intergerToBeIncremented < 100) {
- intergerToBeIncremented++;
- }
- int intergerToBeIncremented2 = 0;
- while (intergerToBeIncremented2 < 100) {
- intergerToBeIncremented2++;
- }
- // first
- int intergerToBeIncremented3 = 0;
- while (intergerToBeIncremented3 < 100) {
- intergerToBeIncremented3++;
- }
- int intergerToBeIncremented4 = 0;
- while (intergerToBeIncremented4 < 100) {
- intergerToBeIncremented4++;
- }
- int intergerToBeIncremented5 = 0;
- while (intergerToBeIncremented5 < 100) {
- intergerToBeIncremented5++;
- }
- int intergerToBeIncremented6 = 0;
- while (intergerToBeIncremented6 < 100) {
- intergerToBeIncremented6++;
- }
- int intergerToBeIncremented7 = 0;
- while (intergerToBeIncremented7 < 100) {
- intergerToBeIncremented7++;
- }
- }
-
-
- public void duplicatedMethodInSameClass3() {
- int intergerToBeIncremented = 0;
- while (intergerToBeIncremented < 100) {
- intergerToBeIncremented++;
- }
- // test2
- int intergerToBeIncremented2 = 0;
- while (intergerToBeIncremented2 < 100) {
- intergerToBeIncremented2++;
- }
- int intergerToBeIncremented8 = 0;
- while (intergerToBeIncremented8 < 100) {
- intergerToBeIncremented8++;
- }
- int intergerToBeIncremented9 = 0;
- while (intergerToBeIncremented9 < 100) {
- intergerToBeIncremented9++;
- }
- // test 1
- int intergerToBeIncremented10 = 0;
- while (intergerToBeIncremented10 < 100) {
- intergerToBeIncremented10++;
- }
- int intergerToBeIncremented60 = 0;
- while (intergerToBeIncremented60 < 100) {
- intergerToBeIncremented60++;
- }
- int intergerToBeIncremented70 = 0;
- while (intergerToBeIncremented70 < 100) {
- intergerToBeIncremented70++;
- }
- }
-
- public void duplicated2MethodInSameClass3() {
- System.out.print("copy test start");
- int intergerToBeIncremented1 = 0;
- while (intergerToBeIncremented1 < 100) {
- intergerToBeIncremented1++;
- }
- int intergerToBeIncremented20 = 0;
- while (intergerToBeIncremented20 < 100) {
- intergerToBeIncremented20++;
- }
- int intergerToBeIncremented8 = 0;
- while (intergerToBeIncremented8 < 100) {
- intergerToBeIncremented8++;
- }
- int intergerToBeIncremented9 = 0;
- while (intergerToBeIncremented9 < 100) {
- intergerToBeIncremented9++;
- }
- int intergerToBeIncremented10 = 0;
- while (intergerToBeIncremented10 < 100) {
- intergerToBeIncremented10++;
- }
- int intergerToBeIncremented60 = 0;
- while (intergerToBeIncremented60 < 100) {
- intergerToBeIncremented60++;
- }
- System.out.print("copy test end");
- }
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage2.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage2.java deleted file mode 100644 index 30b8db6f4db..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage2.java +++ /dev/null @@ -1,90 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_within_package;
-
-public class DuplicatedLinesInSamePackage2 {
-
- public DuplicatedLinesInSamePackage2() {
- }
-
- public void duplicated2MethodInSameClass3() {
- System.out.print("copy test start");
- int intergerToBeIncremented1 = 0;
- while (intergerToBeIncremented1 < 100) {
- intergerToBeIncremented1++;
- }
- int intergerToBeIncremented20 = 0;
- while (intergerToBeIncremented20 < 100) {
- intergerToBeIncremented20++;
- }
- int intergerToBeIncremented8 = 0;
- while (intergerToBeIncremented8 < 100) {
- intergerToBeIncremented8++;
- }
- int intergerToBeIncremented9 = 0;
- while (intergerToBeIncremented9 < 100) {
- intergerToBeIncremented9++;
- }
- int intergerToBeIncremented10 = 0;
- while (intergerToBeIncremented10 < 100) {
- intergerToBeIncremented10++;
- }
- int intergerToBeIncremented60 = 0;
- while (intergerToBeIncremented60 < 100) {
- intergerToBeIncremented60++;
- }
- System.out.print("copy test end");
- }
-
- public void duplicatedMethodInSameClass1() {
- int intergerToBeIncremented = 0;
- while (intergerToBeIncremented < 100) {
- intergerToBeIncremented++;
- }
- int intergerToBeIncremented2 = 0;
- while (intergerToBeIncremented2 < 100) {
- intergerToBeIncremented2++;
- }
- // second
- int intergerToBeIncremented3 = 0;
- while (intergerToBeIncremented3 < 100) {
- intergerToBeIncremented3++;
- }
- int intergerToBeIncremented4 = 0;
- while (intergerToBeIncremented4 < 100) {
- intergerToBeIncremented4++;
- }
- int intergerToBeIncremented5 = 0;
- while (intergerToBeIncremented5 < 100) {
- intergerToBeIncremented5++;
- }
- // vghgvhz
- // bhjjh
- int intergerToBeIncremented6 = 0;
- while (intergerToBeIncremented6 < 100) {
- intergerToBeIncremented6++;
- }
- int intergerToBeIncremented7 = 0;
- while (intergerToBeIncremented7 < 100) {
- intergerToBeIncremented7++;
- }
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_same_class/DuplicatedLinesInSameClass.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_same_class/DuplicatedLinesInSameClass.java deleted file mode 100644 index 3f57c58a130..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_lines_within_same_class/DuplicatedLinesInSameClass.java +++ /dev/null @@ -1,89 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_within_same_class;
-
-public class DuplicatedLinesInSameClass {
-
- public DuplicatedLinesInSameClass() {
- }
-
- public void duplicatedMethodInSameClass1() {
- String temp = "";
- for (int i=0; i<10; i++){
- temp += "say something"+i;
- }
- for (int i=0; i<20; i++){
- temp += "say nothing"+i;
- }
- for (int i=0; i<30; i++){
- temp += "always say nothing"+i;
- }
- for (int i=0; i<40; i++){
- temp += "really nothing to say "+i;
- }
- for (int i=0; i<50; i++){
- temp += "really really nothing to say "+i;
- }
- for (int i=0; i<60; i++){
- temp += ".. "+i;
- }
- for (int i=0; i<70; i++){
- temp += "you say something? "+i;
- }
- for (int i=0; i<80; i++){
- temp += "ah no..."+i;
- }
- for (int i=0; i<90; i++){
- temp += "bye"+i;
- }
- }
-
- public void duplicatedMethodInSameClass2() {
- String temp = "";
- for (int i=0; i<10; i++){
- temp += "say something"+i;
- }
- for (int i=0; i<20; i++){
- temp += "say nothing"+i;
- }
- for (int i=0; i<30; i++){
- temp += "always say nothing"+i;
- }
- for (int i=0; i<40; i++){
- temp += "really nothing to say "+i;
- }
- for (int i=0; i<50; i++){
- temp += "really really nothing to say "+i;
- }
- for (int i=0; i<60; i++){
- temp += ".. "+i;
- }
- for (int i=0; i<70; i++){
- temp += "you say something? "+i;
- }
- for (int i=0; i<80; i++){
- temp += "ah no..."+i;
- }
- for (int i=0; i<90; i++){
- temp += "bye"+i;
- }
- }
-
-}
diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class1.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class1.java deleted file mode 100644 index d847f24d8e7..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class1.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.samples.duplicated_same_lines_within_3_classes; - -public class Class1 { - - public void someMethod() { - System.out.println("Test"); - } - - public void duplicatedMethod() { - int intergerToBeIncremented = 0; - while (intergerToBeIncremented < 100) { - intergerToBeIncremented++; - } - System.out.println("test"); - int intergerToBeIncremented3 = 0; - while (intergerToBeIncremented3 < 100) { - intergerToBeIncremented3++; - } - System.out.println("test"); - int intergerToBeIncremented4 = 0; - while (intergerToBeIncremented4 < 100) { - intergerToBeIncremented4++; - } - System.out.println("test"); - int intergerToBeIncremented5 = 0; - while (intergerToBeIncremented5 < 100) { - intergerToBeIncremented5++; - } - System.out.println("test"); - int intergerToBeIncremented6 = 0; - while (intergerToBeIncremented6 < 100) { - intergerToBeIncremented6++; - } - System.out.println("test"); - int intergerToBeIncremented7 = 0; - while (intergerToBeIncremented7 < 100) { - intergerToBeIncremented7++; - } - } - -} diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class2.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class2.java deleted file mode 100644 index 28ae766f163..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class2.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.samples.duplicated_same_lines_within_3_classes; - -public class Class2 { - - public void duplicatedMethod() { - int intergerToBeIncremented = 0; - while (intergerToBeIncremented < 100) { - intergerToBeIncremented++; - } - System.out.println("test"); - int intergerToBeIncremented3 = 0; - while (intergerToBeIncremented3 < 100) { - intergerToBeIncremented3++; - } - System.out.println("test"); - int intergerToBeIncremented4 = 0; - while (intergerToBeIncremented4 < 100) { - intergerToBeIncremented4++; - } - System.out.println("test"); - int intergerToBeIncremented5 = 0; - while (intergerToBeIncremented5 < 100) { - intergerToBeIncremented5++; - } - System.out.println("test"); - int intergerToBeIncremented6 = 0; - while (intergerToBeIncremented6 < 100) { - intergerToBeIncremented6++; - } - System.out.println("test"); - int intergerToBeIncremented7 = 0; - while (intergerToBeIncremented7 < 100) { - intergerToBeIncremented7++; - } - } - - public void someOtherMethod() { - System.out.println("Test2"); - } -} diff --git a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class3.java b/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class3.java deleted file mode 100644 index 6cb454fdaee..00000000000 --- a/tests/integration/tests/maven-projects/duplications/src/main/java/org/sonar/samples/duplicated_same_lines_within_3_classes/Class3.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.samples.duplicated_same_lines_within_3_classes; - -public class Class3 { - - private String test; - - public void duplicatedMethod() { - int intergerToBeIncremented = 0; - while (intergerToBeIncremented < 100) { - intergerToBeIncremented++; - } - System.out.println("test"); - int intergerToBeIncremented3 = 0; - while (intergerToBeIncremented3 < 100) { - intergerToBeIncremented3++; - } - System.out.println("test"); - int intergerToBeIncremented4 = 0; - while (intergerToBeIncremented4 < 100) { - intergerToBeIncremented4++; - } - System.out.println("test"); - int intergerToBeIncremented5 = 0; - while (intergerToBeIncremented5 < 100) { - intergerToBeIncremented5++; - } - System.out.println("test"); - int intergerToBeIncremented6 = 0; - while (intergerToBeIncremented6 < 100) { - intergerToBeIncremented6++; - } - System.out.println("test"); - int intergerToBeIncremented7 = 0; - while (intergerToBeIncremented7 < 100) { - intergerToBeIncremented7++; - } - } - - public String getTest() { - return test; - } - -} diff --git a/tests/integration/tests/maven-projects/exclusions/pom.xml b/tests/integration/tests/maven-projects/exclusions/pom.xml deleted file mode 100644 index 76d96dda0d6..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>exclusions</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>exclusions</name>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <properties>
- <sonar.exclusions>**/*Exclude*.java,org/sonar/tests/packageToExclude/**</sonar.exclusions>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/exclusions/src/main/java/ClassOnDefaultPackage.java b/tests/integration/tests/maven-projects/exclusions/src/main/java/ClassOnDefaultPackage.java deleted file mode 100644 index dff4c90b9ba..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/main/java/ClassOnDefaultPackage.java +++ /dev/null @@ -1,10 +0,0 @@ -public class ClassOnDefaultPackage {
-
- public ClassOnDefaultPackage(int i) {
- int j = i++;
- }
-
- private String myMethod() {
- return "hello";
- }
-}
diff --git a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassOne.java b/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassOne.java deleted file mode 100644 index f9de47bea90..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassOne.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.sonar.tests; - -public class ClassOne { - public void toto() throws Exception { - int i=0; - i++; - } - public String hello() { - return "hello"; - } - - protected void duplicatedMethod(int i) { - i++; - int j=10; - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - System.out.println("i=" + i); - } -} diff --git a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassToExclude.java b/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassToExclude.java deleted file mode 100644 index 6e7c3f7ba16..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassToExclude.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.sonar.tests; - -/** - * JAVADOC - * ......... - */ -public class ClassToExclude { - String test = "foo"; - String test2 = "bar"; - String test3 = "toto"; - - public ClassToExclude(){ - String t; - if (true) - t = "sonar"; - } - - public static final String method1(String unused) { - if (true) { - return "foo"; - } - if (false) { - return "foooooo"; - } - String loooooooooooooooooooooooooooooooooooooooooooooongVar = "wantsViolations"; - return loooooooooooooooooooooooooooooooooooooooooooooongVar; - } - - protected void duplicatedMethod(int i) { - // commmmmmmments - // foo.............. - i++; - int j=10; - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - if (i==0) { - i=j + 10; - } - System.out.println("i=" + i); - } -} diff --git a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassTwo.java b/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassTwo.java deleted file mode 100644 index 809858dce8a..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/ClassTwo.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.sonar.tests;
-
-import java.lang.String;
-
-/**
- * THE JAVADOC HEADER
- */
-public class ClassTwo {
-
- public ClassTwo(int i) {
- // single comment
- int j = i++;
- myMethod();
- }
-
- private String myMethod() {
- /*
- comment
- on
- many
- lines
- */
- int toto = 34; // comment at end of line
- return "hello";
- }
-}
diff --git a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/NoSonarComment.java b/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/NoSonarComment.java deleted file mode 100644 index 206d72ba6ac..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/NoSonarComment.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests; - -import java.lang.String;//NOSONAR - -public class NoSonarComment { - - public NoSonarComment(int i) {//NOSONAR - i=3;// NOSONAR - i=4; // ERROR magic number, parameter assignment - String s="foo"; - if (s=="bar") return; // ERROR: compare Strings with equals() - } -} diff --git a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/packageToExclude/ClassThree.java b/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/packageToExclude/ClassThree.java deleted file mode 100644 index eef3c947488..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/main/java/org/sonar/tests/packageToExclude/ClassThree.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.sonar.tests.packageToExclude;
-
-import java.lang.String;
-
-/**
- * THE JAVADOC HEADER
- */
-public class ClassThree {
-
- public ClassThree(int i) {
- // single comment
- int j = i++;
- myMethod();
- }
-
- private String myMethod() {
- /*
- comment
- on
- many
- lines
- */
- int toto = 34; // comment at end of line
- return "hello";
- }
-}
diff --git a/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassOneTest.java b/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassOneTest.java deleted file mode 100644 index 8c0967e496f..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassOneTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.sonar.tests; - -import org.junit.Test; - -public class ClassOneTest { - - @Test - public void nothing() { - - } -} diff --git a/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassToExcludeTest.java b/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassToExcludeTest.java deleted file mode 100644 index 712e2ec4a4a..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassToExcludeTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.sonar.tests; - -import org.junit.Test; -import static org.junit.Assert.fail; - -public class ClassToExcludeTest { - - @Test - public void increaseCodeCoverage() { - new ClassToExclude().duplicatedMethod(222); - } - - @Test - public void shouldFail() { - if (true) { - fail(); - } - } -} diff --git a/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassTwoTest.java b/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassTwoTest.java deleted file mode 100644 index 4f2aeba813f..00000000000 --- a/tests/integration/tests/maven-projects/exclusions/src/test/java/org/sonar/tests/ClassTwoTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.sonar.tests;
-
-import org.junit.Test;
-
-
-public class ClassTwoTest {
-
- @Test
- public void increaseCodeCoverage() {
- new ClassTwo(67);
- }
-}
diff --git a/tests/integration/tests/maven-projects/jar-without-sources/pom.xml b/tests/integration/tests/maven-projects/jar-without-sources/pom.xml deleted file mode 100644 index 76a86915a07..00000000000 --- a/tests/integration/tests/maven-projects/jar-without-sources/pom.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>jar-without-sources</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>JAR without sources</name> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java-complexity/pom.xml b/tests/integration/tests/maven-projects/java-complexity/pom.xml deleted file mode 100644 index 63afab1e8ab..00000000000 --- a/tests/integration/tests/maven-projects/java-complexity/pom.xml +++ /dev/null @@ -1,8 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>java-complexity</artifactId> - <version>1.0-SNAPSHOT</version> - <name>java-complexity</name> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java deleted file mode 100644 index 61b755b16c6..00000000000 --- a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java +++ /dev/null @@ -1,27 +0,0 @@ -package foo; - -import java.io.Serializable; -import java.lang.Runnable; - -public class AnonymousClass { - - // method complexity: 1 or 3 ? - public void hasComplexAnonymousClass() { - Runnable runnable = new Runnable() { - - // method complexity: 2 - public void run() { - if (true) { - System.out.println("true"); - } - } - }; - } - - // method complexity: 1 - public void hasEmptyAnonymousClass() { - Serializable serializable = new Serializable() { - - }; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ContainsInnerClasses.java b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ContainsInnerClasses.java deleted file mode 100644 index 900e5e5eac1..00000000000 --- a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ContainsInnerClasses.java +++ /dev/null @@ -1,37 +0,0 @@ -package foo; - -// class complexity: 5 -public class ContainsInnerClasses { - - // method complexity: 1 - public ContainsInnerClasses() { - - } - - // class complexity: 3 - public static class InnerClass { - private String field; - - // method complexity: 1 - public InnerClass() { - - } - - // method complexity: 2 - public InnerClass(String s) { - if (s != null) { - field = s; - } - } - } -} - -// class complexity: 1 -class PackageClass { - private String field; - - // method complexity: 1 - public PackageClass() { - - } - } diff --git a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ExcludedByFilter.java b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ExcludedByFilter.java deleted file mode 100644 index b5193444cd6..00000000000 --- a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ExcludedByFilter.java +++ /dev/null @@ -1,19 +0,0 @@ -package foo; - -// this class is excluded by the resource filter defined in sonar-it-reference-plugin -public class ExcludedByFilter { - - public void say() { - int i=0; - if(i>5) { - System.out.println("say something"); - } - } - - public void cry() { - int i=0; - if(i<5) { - System.out.println("cry"); - } - } -} diff --git a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/Helloworld.java b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/Helloworld.java deleted file mode 100644 index ded87d61848..00000000000 --- a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/Helloworld.java +++ /dev/null @@ -1,42 +0,0 @@ -package foo; - -// class complexity: 6 -public class Helloworld { - - private String field = null; - - // this is considered as a method (bug http://jira.codehaus.org/browse/SONAR-2152) - // complexity: 2 - static { - int i = 0; - if (i > 5) { - System.out.println("hello from static block"); - } - } - - // method complexity: 1 - public Helloworld(String s) { - this.field = s; - } - - // accessor - // complexity: 0 - public String getField() { - return field; - } - - // accessor - // complexity: 0 - public void setField(String s) { - this.field = s; - } - - // method complexity: 3 - public void sayHello() { - for (int i = 0; i < 5; i++) { - if (field != null) { - System.out.println(field); - } - } - } -} diff --git a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ZeroComplexity.java b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ZeroComplexity.java deleted file mode 100644 index ee6b3eb25f8..00000000000 --- a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/ZeroComplexity.java +++ /dev/null @@ -1,6 +0,0 @@ -package foo; - -// complexity: 0 -public class ZeroComplexity { - -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/pom.xml b/tests/integration/tests/maven-projects/java-inner-classes/pom.xml deleted file mode 100644 index d3890843ada..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/pom.xml +++ /dev/null @@ -1,30 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>java-inner-classes</artifactId>
- <version>1.0-SNAPSHOT</version>
- <name>Java inner classes</name>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.6</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithAnonymousClass.java b/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithAnonymousClass.java deleted file mode 100644 index d3df3bcb11c..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithAnonymousClass.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -import java.util.AbstractMap; -import java.util.Set; - -/** - * See http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html - */ -public class WithAnonymousClass { - - public void mainMethod1() { - AbstractMap anonymousMap = new AbstractMap() { - public Set entrySet() { - return null; - } - }; - anonymousMap.entrySet(); - anonymousMap = null; - } - - public void mainMethod2() { - int i = 9999; - i++; - i += 444; - } - - -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithInnerClass.java b/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithInnerClass.java deleted file mode 100644 index d9b5ac53391..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithInnerClass.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -/** - * See http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html - */ -public class WithInnerClass { - - public int mainMethod1() { - int i = new InnerClass().innerMethod1(); - i += 3; - return i; - } - - /** - * A non-static nested class is named "inner class" - */ - class InnerClass { - public int innerMethod1() { - int j = 200; - j += 500; - return j; - } - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithLocalInnerClass.java b/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithLocalInnerClass.java deleted file mode 100644 index c4898ae9752..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithLocalInnerClass.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -public class WithLocalInnerClass { - - public String mainMethod1() { - class LocalInnerClass { - public String staticNestedMethod1() { - String s = "foo"; - return s; - } - } - - String foo = new LocalInnerClass().staticNestedMethod1(); - foo += "xxxxxxxx"; - return foo; - } - - public void mainMethod2() { - int i = 9999; - //do nothing - } - - -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithStaticInnerClass.java b/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithStaticInnerClass.java deleted file mode 100644 index 232fdc4444d..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithStaticInnerClass.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -/** - * See http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html - */ -public class WithStaticInnerClass { - public String mainMethod1() { - String foo = new StaticNestedClass().staticNestedMethod1(); - foo += "xxxxxxxx"; - return foo; - } - - public void mainMethod2() { - int i = 9999; - //do nothing - } - - static class StaticNestedClass { - public String staticNestedMethod1() { - String s = "foo"; - return s; - } - } - - public static class PublicStaticNestedClass { - public int publicStaticNestedMethod1() { - String s = "bar"; - return 123456; - } - } -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithSubClass.java b/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithSubClass.java deleted file mode 100644 index bd934492c31..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/main/java/WithSubClass.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -public class WithSubClass { - public void mainMethod1() { - String foo = new SubClass1().subMethod(); - foo += "bar"; - } - - public void mainMethod2() { - int i = 9999; - //do nothing - } -} - -class SubClass1 { - public String subMethod() { - String foo = "foo"; - foo += "xxxxxxxx"; - return foo; - } -} - -class SubClass2 { - public void subMethod() { - String foo = "foo"; - foo += "xxxxxxxx"; - } -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithAnonymousClassTest.java b/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithAnonymousClassTest.java deleted file mode 100644 index 989740136b1..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithAnonymousClassTest.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -import org.junit.Test; - -public class WithAnonymousClassTest { - - @Test - public void test1() { - new WithAnonymousClass().mainMethod1(); - } -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithInnerClassTest.java b/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithInnerClassTest.java deleted file mode 100644 index ccd43d8d9f2..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithInnerClassTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -import org.junit.Test; - -public class WithInnerClassTest { - @Test - public void test1() { - new WithInnerClass().mainMethod1(); - } -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithLocalInnerClassTest.java b/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithLocalInnerClassTest.java deleted file mode 100644 index c7d2397738c..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithLocalInnerClassTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -import org.junit.Test; - -public class WithLocalInnerClassTest { - @Test - public void test1() { - new WithLocalInnerClass().mainMethod1(); - } -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithStaticInnerClassTest.java b/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithStaticInnerClassTest.java deleted file mode 100644 index dd134de124c..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithStaticInnerClassTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -import org.junit.Test; - -public class WithStaticInnerClassTest { - @Test - public void test1() { - new WithStaticInnerClass().mainMethod1(); - } -} diff --git a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithSubClassTest.java b/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithSubClassTest.java deleted file mode 100644 index 46aa3d9194a..00000000000 --- a/tests/integration/tests/maven-projects/java-inner-classes/src/test/java/WithSubClassTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -import org.junit.Test; - -public class WithSubClassTest { - @Test - public void test1() { - new WithSubClass().mainMethod1(); - } -} diff --git a/tests/integration/tests/maven-projects/java4/pom.xml b/tests/integration/tests/maven-projects/java4/pom.xml deleted file mode 100644 index 7931fb22a68..00000000000 --- a/tests/integration/tests/maven-projects/java4/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>java4</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - java4 syntax</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.4</source>
- <target>1.4</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/java4/src/main/java/org/sonar/tests/java4/Java4.java b/tests/integration/tests/maven-projects/java4/src/main/java/org/sonar/tests/java4/Java4.java deleted file mode 100644 index 77ae9665c4c..00000000000 --- a/tests/integration/tests/maven-projects/java4/src/main/java/org/sonar/tests/java4/Java4.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.sonar.tests.java4; - -public class Java4 { - private String enum = null; - - public Java4(String enum){ - this.enum = enum; - } -} diff --git a/tests/integration/tests/maven-projects/jee-sample/ear-module/pom.xml b/tests/integration/tests/maven-projects/jee-sample/ear-module/pom.xml deleted file mode 100644 index 0bb98d61827..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/ear-module/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0"?> -<project> - <parent> - <artifactId>parent</artifactId> - <groupId>org.sonar.tests.jee</groupId> - <version>1.0-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests.jee</groupId> - <artifactId>ear-module</artifactId> - <name>ear-module</name> - <packaging>ear</packaging> - <dependencies> - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>java-module</artifactId> - <version>${project.version}</version> - <type>jar</type> - </dependency> - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>ejb-module</artifactId> - <version>${project.version}</version> - <type>ejb</type> - </dependency> - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>web-module</artifactId> - <version>${project.version}</version> - <type>war</type> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-ear-plugin</artifactId> - <configuration> - <modules> - <javaModule> - <groupId>${project.groupId}</groupId> - <artifactId>java-module</artifactId> - </javaModule> - <ejbModule> - <groupId>${project.groupId}</groupId> - <artifactId>ejb-module</artifactId> - </ejbModule> - <webModule> - <groupId>${project.groupId}</groupId> - <artifactId>web-module</artifactId> - <contextRoot>jee-sample</contextRoot> - </webModule> - </modules> - </configuration> - </plugin> - - </plugins> - </build> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/jee-sample/ejb-module/pom.xml b/tests/integration/tests/maven-projects/jee-sample/ejb-module/pom.xml deleted file mode 100644 index 3b32e9d4cb2..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/ejb-module/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0"?> -<project> - <parent> - <artifactId>parent</artifactId> - <groupId>org.sonar.tests.jee</groupId> - <version>1.0-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests.jee</groupId> - <artifactId>ejb-module</artifactId> - <name>ejb-module</name> - <version>1.0-SNAPSHOT</version> - <packaging>ejb</packaging> - <dependencies> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-ejb_2.1_spec</artifactId> - <version>1.1</version> - <scope>provided</scope> - </dependency> - - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>java-module</artifactId> - <version>${project.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/main/java/org/sonar/tests/App.java b/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/main/java/org/sonar/tests/App.java deleted file mode 100644 index ddc6d08253b..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/main/java/org/sonar/tests/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/main/resources/META-INF/ejb-jar.xml b/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/main/resources/META-INF/ejb-jar.xml deleted file mode 100644 index f97427d26aa..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/main/resources/META-INF/ejb-jar.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0"?> - -<!DOCTYPE ejb-jar PUBLIC - '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' - 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'> - -<ejb-jar> - <enterprise-beans> - - - </enterprise-beans> - <assembly-descriptor></assembly-descriptor> -</ejb-jar> diff --git a/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/test/java/org/sonar/tests/AppTest.java b/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/test/java/org/sonar/tests/AppTest.java deleted file mode 100644 index ce03155a801..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/ejb-module/src/test/java/org/sonar/tests/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.sonar.tests; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/tests/integration/tests/maven-projects/jee-sample/java-module/pom.xml b/tests/integration/tests/maven-projects/jee-sample/java-module/pom.xml deleted file mode 100644 index ee14f3dc342..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/java-module/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> -<project> - <parent> - <artifactId>parent</artifactId> - <groupId>org.sonar.tests.jee</groupId> - <version>1.0-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests.jee</groupId> - <artifactId>java-module</artifactId> - <name>java-module</name> - <version>1.0-SNAPSHOT</version> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/jee-sample/java-module/src/main/java/org/sonar/tests/App.java b/tests/integration/tests/maven-projects/jee-sample/java-module/src/main/java/org/sonar/tests/App.java deleted file mode 100644 index ddc6d08253b..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/java-module/src/main/java/org/sonar/tests/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/tests/integration/tests/maven-projects/jee-sample/java-module/src/test/java/org/sonar/tests/AppTest.java b/tests/integration/tests/maven-projects/jee-sample/java-module/src/test/java/org/sonar/tests/AppTest.java deleted file mode 100644 index ce03155a801..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/java-module/src/test/java/org/sonar/tests/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.sonar.tests; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/tests/integration/tests/maven-projects/jee-sample/pom.xml b/tests/integration/tests/maven-projects/jee-sample/pom.xml deleted file mode 100644 index ac56b00af03..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests.jee</groupId> - <artifactId>parent</artifactId> - <packaging>pom</packaging> - <version>1.0-SNAPSHOT</version> - <name>JEE sample project</name> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> - <modules> - <module>java-module</module> - <module>ejb-module</module> - <module>web-module</module> - <module>ear-module</module> - </modules> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/jee-sample/web-module/pom.xml b/tests/integration/tests/maven-projects/jee-sample/web-module/pom.xml deleted file mode 100644 index 02f8ab3b203..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/web-module/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0"?> -<project> - <parent> - <artifactId>parent</artifactId> - <groupId>org.sonar.tests.jee</groupId> - <version>1.0-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests.jee</groupId> - <artifactId>web-module</artifactId> - <packaging>war</packaging> - <name>web-module Maven Webapp</name> - <version>1.0-SNAPSHOT</version> - <build> - <finalName>web-module</finalName> - </build> - <dependencies> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.4</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>jsp-api</artifactId> - <version>2.0</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-ejb_2.1_spec</artifactId> - <version>1.1</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>java-module</artifactId> - <version>${project.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>ejb-module</artifactId> - <version>${project.version}</version> - <scope>runtime</scope> - <type>ejb</type> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/jee-sample/web-module/src/main/webapp/WEB-INF/web.xml b/tests/integration/tests/maven-projects/jee-sample/web-module/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 9f88c1f9632..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/web-module/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,7 +0,0 @@ -<!DOCTYPE web-app PUBLIC - "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" - "http://java.sun.com/dtd/web-app_2_3.dtd" > - -<web-app> - <display-name>Archetype Created Web Application</display-name> -</web-app> diff --git a/tests/integration/tests/maven-projects/jee-sample/web-module/src/main/webapp/index.jsp b/tests/integration/tests/maven-projects/jee-sample/web-module/src/main/webapp/index.jsp deleted file mode 100644 index c38169bb958..00000000000 --- a/tests/integration/tests/maven-projects/jee-sample/web-module/src/main/webapp/index.jsp +++ /dev/null @@ -1,5 +0,0 @@ -<html> -<body> -<h2>Hello World!</h2> -</body> -</html> diff --git a/tests/integration/tests/maven-projects/many-source-dirs/pom.xml b/tests/integration/tests/maven-projects/many-source-dirs/pom.xml deleted file mode 100644 index 7a1839aba4f..00000000000 --- a/tests/integration/tests/maven-projects/many-source-dirs/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>many-source-dirs</artifactId> - <version>1.0-SNAPSHOT</version> - <packaging>jar</packaging> - <name>many-source-dirs</name> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>LATEST</version> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>src/main/java2</source> - </sources> - </configuration> - </execution> - <execution> - <id>add-test-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>src/test/java2</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.5</version> - <scope>test</scope> - </dependency> - </dependencies> - - <properties> - <sonar.phase>generate-sources</sonar.phase> - </properties> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/many-source-dirs/src/main/java/org/sonar/tests/FirstClass.java b/tests/integration/tests/maven-projects/many-source-dirs/src/main/java/org/sonar/tests/FirstClass.java deleted file mode 100644 index 827a8fb68a7..00000000000 --- a/tests/integration/tests/maven-projects/many-source-dirs/src/main/java/org/sonar/tests/FirstClass.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.sonar.tests; - -public class FirstClass { - - public FirstClass(int i) { - int j = i++; - } - - public String hello() { - return "hello"; - } -} diff --git a/tests/integration/tests/maven-projects/many-source-dirs/src/main/java2/org/sonar/tests/SecondClass.java b/tests/integration/tests/maven-projects/many-source-dirs/src/main/java2/org/sonar/tests/SecondClass.java deleted file mode 100644 index cdcc05c23f0..00000000000 --- a/tests/integration/tests/maven-projects/many-source-dirs/src/main/java2/org/sonar/tests/SecondClass.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.sonar.tests; - -public class SecondClass { - - public SecondClass(int i) { - int j = i++; - } - - public String foo() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/many-source-dirs/src/test/java/org/sonar/tests/SecondClassTest.java b/tests/integration/tests/maven-projects/many-source-dirs/src/test/java/org/sonar/tests/SecondClassTest.java deleted file mode 100644 index 327a71d2fd8..00000000000 --- a/tests/integration/tests/maven-projects/many-source-dirs/src/test/java/org/sonar/tests/SecondClassTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.sonar.tests; - -import org.junit.Test; -import static org.junit.Assert.assertEquals; - -public class SecondClassTest { - - @Test - public void hello() { - assertEquals("hello", new SecondClass(3).foo()); - } - - @Test - public void error() { - assertEquals("no", new SecondClass(3).foo()); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/many-source-dirs/src/test/java2/org/sonar/tests/FirstClassTest.java b/tests/integration/tests/maven-projects/many-source-dirs/src/test/java2/org/sonar/tests/FirstClassTest.java deleted file mode 100644 index bb0b9b52e83..00000000000 --- a/tests/integration/tests/maven-projects/many-source-dirs/src/test/java2/org/sonar/tests/FirstClassTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests; - -import org.junit.Test; -import static org.junit.Assert.assertEquals; - -public class FirstClassTest { - @Test - public void hello() { - assertEquals("hello", new FirstClass(30).hello()); - } - - @Test - public void error() { - assertEquals("no", new FirstClass(323).hello()); - } -} diff --git a/tests/integration/tests/maven-projects/maven-custom-type/module.properties b/tests/integration/tests/maven-projects/maven-custom-type/module.properties deleted file mode 100644 index 79b5d81ef66..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/module.properties +++ /dev/null @@ -1,47 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-# SDK Sample module
-
-# ==== Beginning of Alfresco required/optional properties ====== #
-
-module.id=${pom.groupId}.${pom.artifactId}
-#module.aliases=myModule-123, my-module
-module.title=${pom.name}
-module.description=${pom.description}
-module.version=${pom.version}
-
-# The following optional properties can be used to prevent the module from being added
-# to inappropriate versions of the WAR file.
-# module.repo.version.min=2.0
-# module.repo.version.max=2.1
-
-# FIXME: This dependencies should come out of mvn dependencies on amp
-
-# The following describe dependencies on other modules
-# Depends on net.sf.myproject.module.SupportModuleA version ${version} or later
-# module.depends.net.sf.myproject.module.SupportModuleA=${version}-*
-# Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0
-# module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0
-# Depends on net.sf.myproject.module.SupportModuleC - any version
-# module.depends.net.sf.myproject.module.SupportModuleB=*
-
-
-# ==== End of Alfresco required/optional properties ======= #
-
-
-# ==== Beginning of module required properties/optional ====== #
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/pom.xml b/tests/integration/tests/maven-projects/maven-custom-type/pom.xml deleted file mode 100644 index 30d3ee5fc2e..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/pom.xml +++ /dev/null @@ -1,283 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>maven-custom-type</artifactId>
- <packaging>amp</packaging>
- <name>Maven custom type</name>
- <version>0.1-SNAPSHOT</version>
- <description>SONAR-308 Maven custom type</description>
- <repositories>
- <repository>
- <id>ss-public</id>
- <url>http://repository.sourcesense.com/nexus/content/groups/public</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>ss-public</id>
- <url>http://repository.sourcesense.com/nexus/content/groups/public</url>
- </pluginRepository>
- </pluginRepositories>
- <properties> - <sonar.profile>turbo</sonar.profile> -
- <env>local</env>
- <webapp.name>mymodule-webapp</webapp.name>
- <alfresco.data.location>./alf_data_jetty</alfresco.data.location>
- <alfresco.db.name>alf_jetty</alfresco.db.name>
- <webapp.log.level>error</webapp.log.level>
- <webapp.log.dir>${project.build.directory}/</webapp.log.dir>
- <module.log.level>debug</module.log.level>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.alfresco</groupId>
- <artifactId>alfresco-repository</artifactId>
- <version>2.1.0</version>
- <classifier>labs</classifier>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.0.3</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.alfresco.maven.plugin</groupId>
- <artifactId>maven-amp-plugin</artifactId>
- <version>2.0.1</version>
- <extensions>true</extensions>
- <configuration>
- <archive>
- <addMavenDescriptor>false</addMavenDescriptor>
- </archive>
- <overlays>
- <!-- This sample adds records management module in the finally built AMP
- <overlay>
- <groupId>org.alfresco.community</groupId>
- <artifactId>recordsmanagement</artifactId>
- <version>2.1.0</version>
- <type>amp</type>
- </overlay>
- -->
- <!-- The current AMP is always last in order to overwrite other modules' modules.properties
- <overlay></overlay>
- -->
- </overlays>
- </configuration>
- </plugin>
- </plugins>
- <!-- Copies and filters resources in build folder so maven-amp-plugin can pick them up -->
- <resources>
- <resource>
- <filtering>true</filtering>
- <directory>src/main/resources</directory>
- <excludes>
- <exclude>**README-*</exclude>
- </excludes>
- </resource>
- <!-- Copies and filters AMP config in the proper package 'alfresco/module/mycompany.com.mymodule' so to enforce
- full module naming single sourcing from POM properties -->
- <resource>
- <filtering>true</filtering>
- <directory>src/main/config</directory>
- <targetPath>alfresco/module/mycompany.com.mymodule</targetPath>
- <excludes>
- <exclude>**README-*</exclude>
- </excludes>
- </resource>
- </resources>
- </build>
- <profiles>
- <!-- Profile used to trigger war creation and integration within Jetty embedded -->
- <profile>
- <id>webapp</id>
- <build>
- <filters><filter>src/test/properties/${env}/application.properties</filter></filters>
- <defaultGoal>jetty:run-exploded</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack-amps</id>
- <phase>process-resources</phase>
- <goals>
- <goal>unpack-dependencies</goal>
- </goals>
- <configuration>
- <includeTypes>amp</includeTypes>
- <outputDirectory>${build.directory}/${webapp.name}</outputDirectory>
- <excludes>META*</excludes>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <!-- This is required to be re-defined explicitly at plugin level as otherwise the 'amp' extension
- unArchiver won't be available to the maven-dependency-plugin -->
- <dependency>
- <groupId>org.alfresco.maven.plugin</groupId>
- <artifactId>maven-amp-plugin</artifactId>
- <version>2.0.0</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <executions>
- <!-- Runs war packaging when 'integration-test' phase is called -->
- <execution>
- <id>it</id>
- <phase>package</phase>
- <goals>
- <goal>exploded</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <primaryArtifact>false</primaryArtifact>
- <!-- Don't remove the following line otherwise WAR and AMP builds will be done in the same folder, with unexpected results -->
- <webappDirectory>${build.directory}/${webapp.name}</webappDirectory>
- <archive>
- <addMavenDescriptor>false</addMavenDescriptor>
- </archive>
- <warSourceExcludes>licenses/**</warSourceExcludes>
- <webResources></webResources>
- <webResources>
- <resource>
- <directory>${build.testOutputDirectory}</directory>
- <targetPath>WEB-INF/classes</targetPath>
- <filtering>true</filtering>
- <includes>
- <include>**</include>
- </includes>
- </resource>
- <!-- Here we add default this AMP web/ resources-->
- <resource>
- <directory>src/main/webapp</directory>
- <targetPath>WEB-INF/licenses</targetPath>
- <includes>
- <include>licenses/*.*</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- </webResources>
- </configuration>
- <dependencies>
- <!-- This is required to be re-defined explicitly at plugin level as otherwise the 'amp' extension
- unArchiver won't be available to the maven-war-plugin -->
- <dependency>
- <groupId>org.alfresco.maven.plugin</groupId>
- <artifactId>maven-amp-plugin</artifactId>
- <version>2.0.0</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <executions>
- <!-- Runs jetty when 'integration-test' phase is called -->
- <execution>
- <id>it</id>
- <phase>integration-test</phase>
- <goals>
- <goal>run-exploded</goal>
- </goals>
- <configuration>
- <contextPath>/${webapp.name}</contextPath>
- <webApp>${pom.build.directory}/${webapp.name}</webApp>
- <scanIntervalSeconds>10</scanIntervalSeconds>
- <connectors>
- <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>8080</port>
- <maxIdleTime>60000</maxIdleTime>
- </connector>
- </connectors>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <!-- When invoking 'mvn integration-test', the following alf configs are added to the test war in order to be able to run it seamlessly.
- NB: the application.properties file is filtered with alfresco.db.name and alf.data.location POM properties as default configuration
- -->
- <testResources>
- <testResource>
- <filtering>true</filtering>
- <directory>src/test/resources</directory>
- </testResource>
- <!-- Includes default properties for alfresco test war -->
- <testResource>
- <filtering>true</filtering>
- <directory>src/test/properties/${env}</directory>
- <targetPath>alfresco/extension</targetPath>
- </testResource>
- <!-- src/main/config/ is copied into ==> target/test-classes/alfresco/module/mycompany.com.mymodule to
- be picked up by the maven-war plugin
- Best practice tacken from recordsmanagement.amp, is enforced troughout the whole archetype.
- This convention is also used for module.properties filtering.
- -->
- <testResource>
- <filtering>true</filtering>
- <directory>.</directory>
- <includes>
- <include>module.properties</include>
- </includes>
- <targetPath>alfresco/module/mycompany.com.mymodule</targetPath>
- </testResource>
- </testResources>
- </build>
- <!-- Here you can add test dependencies you want to have included in the the WAR (not in the AMP, built in the main profile)
- |
- | Typical use case: add here additional AMPs that you want to test compatibility of with the current module
- |
- -->
- <dependencies>
- <!-- This is the alfresco version you're testing the AMP against. Don't remove if you want jetty to be able to deploy a WAR :) -->
- <dependency>
- <groupId>alfresco.community</groupId>
- <artifactId>alfresco</artifactId>
- <version>2.1.0</version>
- <type>war</type>
- </dependency>
- </dependencies>
- </profile>
-
- </profiles>
-</project>
diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/context/service-context.xml b/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/context/service-context.xml deleted file mode 100644 index 78a22ff5586..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/context/service-context.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
-<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --->
-<beans>
-
- <!-- A simple class that is initialized by Spring -->
- <bean id="${groupId}.${artifactId}.exampleBean" class="com.sourcesense.demoamp.Demo" init-method="init" />
-
- <!-- A simple module component that will be executed once -->
- <bean id="${groupId}.${artifactId}.exampleComponent" class="com.sourcesense.demoamp.DemoComponent" parent="module.baseComponent" >
- <property name="moduleId" value="${pom.groupId}.${pom.artifactId}" /> <!-- See module.properties -->
- <property name="name" value="exampleComponent" />
- <property name="description" value="A demonstration component" />
- <property name="sinceVersion" value="2.0" />
- <property name="appliesFromVersion" value="2.0" />
- </bean>
-
-</beans>
diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/log4j.properties b/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/log4j.properties deleted file mode 100644 index 960dd90b27e..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/log4j.properties +++ /dev/null @@ -1,41 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - #----------------------------------------------------------------------- - # ${artifactId} module log4j.properties - # - # NOTE - # ---- - # Log4j uses the following logging levels: - # debug,info,warn,error,fatal - # - # To set the logging level of {fullClassName} to {loglevel}, - # add a line to this file of the following form: - # - # log4j.logger.{fullClassName}={loglevel} - # - # For example, to make 'com.example.MyExample' produce 'debug' - # logs, add a line like this: - # - # log4j.logger.com.example.MyExample=debug - # - # - # WARNING - # ------- - # Log properties in this log4j.properties file override/augment - # those in the webapp's main log4j.properties. - # - #----------------------------------------------------------------------- - - log4j.logger.com.sourcesense.demoamp.DemoComponent=${module.log.level}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/module-context.xml b/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/module-context.xml deleted file mode 100644 index 2421dacb4b5..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/config/module-context.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --->
-<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
-
-<beans>
-
- <import resource="classpath:alfresco/module/${groupId}.${artifactId}/context/service-context.xml" />
-
-</beans>
diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/css/demoamp.css b/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/css/demoamp.css deleted file mode 100644 index c24bc1bd4fd..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/css/demoamp.css +++ /dev/null @@ -1,16 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/images/sourcesense.gif b/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/images/sourcesense.gif Binary files differdeleted file mode 100644 index 0b80b9d2049..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/images/sourcesense.gif +++ /dev/null diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/jsp/demoamp.jsp b/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/jsp/demoamp.jsp deleted file mode 100644 index f442d2ef2a3..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/jsp/demoamp.jsp +++ /dev/null @@ -1,16 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -->
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/licenses/README-licenses.txt b/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/licenses/README-licenses.txt deleted file mode 100644 index 2a848d025a0..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/licenses/README-licenses.txt +++ /dev/null @@ -1,2 +0,0 @@ -This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses -in the war build
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/scripts/demoamp.js b/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/scripts/demoamp.js deleted file mode 100644 index c24bc1bd4fd..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/main/webapp/scripts/demoamp.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/test/properties/local/application.properties b/tests/integration/tests/maven-projects/maven-custom-type/src/test/properties/local/application.properties deleted file mode 100644 index de4e0a2e9fa..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/test/properties/local/application.properties +++ /dev/null @@ -1,139 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# RUN TIME PROPERTIES -# ------------------- - -# Sample custom content and index data location -# This will create alf_data Relative to appserver run folder -# In this default file we take the property from the POM (for compatbility with local jetty and jboss deployments) but it can also be edited here. -dir.root=${alfresco.data.location} -# Allowed values are: NONE, AUTO, FULL -index.recovery.mode=AUTO - -# Fail or not when there are node integrity checker errors -integrity.failOnError=true - -# database connection properties -# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server) - -db.driver=org.gjt.mm.mysql.Driver -db.url=jdbc:mysql://localhost/${alfresco.db.name} -db.username=alfresco -db.password=alfresco -db.pool.initial=10 -db.pool.max=100 - -# MySQL dialect -hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect - - - - -# Change the following values only if you know what you're doing. -# Default should suffice in most cases when running jetty embedded -# for amp testing - - - - - -# Property to control whether schema updates are performed automatically. -# Updates must be enabled during upgrades as, apart from the static upgrade scripts, -# there are also auto-generated update scripts that will need to be executed. After -# upgrading to a new version, this can be disabled. -#db.schema.update=true - - -# File servers related properties -# For local builds we disable CIFS and FTP. Edit the following property to reenable them -smb.server.enabled=false -smb.server.name=CFS_SHARE_LOCAL -smb.server.domain=mycompany.com -smb.server.bindto=127.0.0.1 -smb.tcpip.port=1445 -netbios.session.port=1139 -netbios.name.port=1137 -netbios.datagram.port=1138 -ftp.server.enabled=false -ftp.port=1121 -ftp.authenticator=alfresco - -# This properties file is used to configure LDAP authentication -# NB: The following LDAP related properties are read only in case -Denteprise mvn build property is specified -# Wheter to allow silent deletion of users in the Alfresco UI (note: users will be then resynced in the next synchronization) -ldap.authentication.allowDeleteUser=true -# LDAP JNDI provider -ldap.authentication.provider=com.sun.jndi.ldap.LdapCtxFactory -#Â Url and protocol for LDAP server to carry authentication against -ldap.authentication.url=ldap://ldap.mycompany.com:636 -#Â can be (simple, ssl) -ldap.authentication.protcol=ssl -# Credentials with full access to the directoty used -ldap.authentication.adminUser=ou=Admin,ou=Services,o=Company -ldap.authentication.adminPassword=secret -#Â Wheter to allow unauthenticated guest a read only login -ldap.authentication.guestLogin.allowed=false -# Wheter users can be created on the fly upon successful external (e.g. LDAP) authentication. Useful to avoid user synchronization in case just uid and pwd are needed for a user -server.transaction.allow-writes=true -# Wheter user names are case sensitive -user.name.caseSensitive=true -# Wheter the synchronization process has to process duplicated users (e.g. synced users and users coming from the sync) -personService.processDuplicates=true -# Which action to take when processin duplicates. One of: LEAVE, SPLIT, DELETE -personService.duplicateMode=DELETE -#Â Which of the users (in case of SPLIT duplicates policy) should be considered valid -personService.lastIsBest=true -# Wheter auto created users should be considered when processing duplicates -personService.includeAutoCreated=true -# The query to find the people to import -ldap.synchronisation.personQuery=(objectclass=inetOrgPerson) -# The search base of the query to find people to import -ldap.synchronisation.personSearchBase=ou=Identities,ou=mycompany,o=com -# The attribute name on people objects found in LDAP to use as the uid in Alfresco -ldap.synchronisation.userIdAttributeName=cn -# The attribute on person objects in LDAP to map to the first name property in Alfresco -ldap.synchronisation.userFirstNameAttributeName=givenName -# The attribute on person objects in LDAP to map to the last name property in Alfresco -ldap.synchronisation.userLastNameAttributeName=sn -# The attribute on person objects in LDAP to map to the email property in Alfresco -ldap.synchronisation.userEmailAttributeName=cn -# The attribute on person objects in LDAP to map to the organizational id property in Alfresco -ldap.synchronisation.userOrganizationalIdAttributeName=maildomain -# The default home folder provider to use for people created via LDAP import -ldap.synchronisation.defaultHomeFolderProvider=companyHomeFolderProvider -# The query to find group objects -ldap.synchronisation.groupQuery=(objectclass=AlfrescoGroup) -# The search base to use to find group objects -ldap.synchronisation.groupSearchBase=ou=AlfrescoGroups,ou=mycompany,o=com -# The attribute on LDAP group objects to map to the gid property in Alfrecso -ldap.synchronisation.groupIdAttributeName=cn -# The group type in LDAP -ldap.synchronisation.groupType=AlfrescoGroup -# The person type in LDAP -ldap.synchronisation.personType=inetOrgPerson -# The attribute in LDAP on group objects that defines the DN for its members -ldap.synchronisation.groupMemberAttributeName=member -# The cron expression defining when people imports should take place (e.g. every evening at 22:00 hours) -ldap.synchronisation.import.person.cron=0 0 22 * * ? -# The cron expression defining when group imports should take place (e.g. every evening at 21:45 hours) -ldap.synchronisation.import.group.cron=0 45 21 * * ? -# Should all groups be cleared out at import time? -# - this is safe as groups are not used in Alfresco for other things (unlike person objects which you should never clear out during an import) -# - setting this to true means old group definitions will be tidied up. -ldap.synchronisation.import.group.clearAllChildren=false - - - diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/alfresco/extension/custom-repository-context.xml b/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/alfresco/extension/custom-repository-context.xml deleted file mode 100644 index a5c4c4096c1..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/alfresco/extension/custom-repository-context.xml +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
-
-<!--
- This shows the common minimum configuration overrides.
- By default, the content and indexes are located at a relative location, which should only
- be used when doing a quick preview of the Alfresco server.
--->
-<beans>
-
- <!-- overriding to point to custom properties -->
- <bean id="repository-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="ignoreUnresolvablePlaceholders">
- <value>true</value>
- </property>
- <property name="locations">
- <list>
- <value>classpath:alfresco/repository.properties</value>
- <value>classpath:alfresco/version.properties</value>
- <value>classpath:alfresco/domain/transaction.properties</value>
-
- <!-- Override basic repository properties, dir.root and hibernate dialect -->
- <value>classpath:alfresco/extension/application.properties</value>
- </list>
- </property>
- </bean>
-
- <bean id="hibernateConfigProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
- <property name="locations">
- <list>
- <value>classpath:alfresco/domain/hibernate-cfg.properties</value>
- </list>
- </property>
- </bean>
-
-</beans>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/alfresco/extension/file-servers-custom.xml b/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/alfresco/extension/file-servers-custom.xml deleted file mode 100644 index 11742c72309..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/alfresco/extension/file-servers-custom.xml +++ /dev/null @@ -1,152 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> - <!-- - | Default property based configuration. - | Example configurations are also provided. - | - --> - <alfresco-config area="file-servers">
-
- <!-- To override the default Alfresco filesystem use replace="true", to -->
- <!-- add additional filesystems remove the replace="true" attribute -->
-
-
- <!-- Sample passtrhu Novel authentication
- <config evaluator="string-compare" condition="Filesystem Security" replace="true">
- <authenticator type="passthru">
- <Server>passtrhu1.mycompany.com,passthru2.mycompany.com</Server>
- </authenticator>
- </config>
- -->
-
- <!-- Sample kerberos configuration. Untested.
-
- config evaluator="string-compare" condition="Filesystem Security" replace="true">
- <authenticator type="enterprise">
- <KDC>authserver.company.com</KDC>
- <Realm>MYCOMPANY.COM</Realm>
- <Password>secret</Password>
- <LoginEntry>AlfCommon</LoginEntry>
- </authenticator>
- </config-->
-
- <config evaluator="string-compare" condition="Filesystem Security" replace="true">
- <authenticator type="alfresco"/>
- </config>
-
- <config evaluator="string-compare" condition="CIFS Server" replace="true">
- <serverEnable enabled="${smb.server.enabled}"/>
- <host name="${smb.server.name}" domain="${smb.server.domain}"/>
- <comment>Alfresco CIFS Server</comment>
-
- <!-- Set to the broadcast mask for the subnet -->
- <broadcast>255.255.255.0</broadcast>
-
- <!-- Use Java socket based NetBIOS over TCP/IP and native SMB on linux -->
- <tcpipSMB platforms="linux,solaris,macosx"/>
- <netBIOSSMB platforms="linux,solaris,macosx"/>
- <!-- bind to the frontend facing interface of this server -->
- <bindto>${smb.server.bindto}</bindto>
-
- <!-- Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports -->
-
- <tcpipSMB port="${smb.tcpip.port}" platforms="linux,solaris,macosx"/>
- <netBIOSSMB sessionPort="${netbios.session.port}" namePort="${netbios.name.port}" datagramPort="${netbios.datagram.port}" platforms="linux,solaris,macosx"/>
-
- <hostAnnounce interval="5"/>
-
- <!-- Use Win32 NetBIOS interface on Windows -->
- <Win32NetBIOS/>
- <Win32Announce interval="5"/>
-
- <!--
- <WINS>
- <primary>1.2.3.4</primary>
- <secondary>5.6.7.8</secondary>
- </WINS>
- -->
- <sessionDebug flags="Negotiate,Socket"/>
- </config>
-
- <config evaluator="string-compare" condition="FTP Server">
- <serverEnable enabled="${ftp.server.enabled}"/>
- <port>${ftp.port}</port>
-
- <!-- FTP authentication -->
- <authenticator type="${ftp.authenticator}"/>
- <!-- <debug flags="File,Search,Error,Directory,Info,DataPort"/> -->
- </config>
-
-
- <config evaluator="string-compare" condition="Filesystems" replace="true">
- <filesystems>
-
- <filesystem name="Alfresco">
- <store>workspace://SpacesStore</store>
- <rootPath>/app:company_home</rootPath>
-
- <!-- Add a URL file to each folder that links back to the web client -->
- <urlFile>
- <filename>__Alfresco.url</filename>
- <webpath>http://${localname}/</webpath>
- </urlFile>
-
- <!-- Mark locked files as offline -->
- <offlineFiles/>
-
- <!-- Desktop actions -->
-
- <desktopActions>
- <global>
- <path>alfresco/desktop/Alfresco.exe</path>
- <webpath>http://${localname}/</webpath>
- </global>
- <action>
- <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
- <name>CheckInOut</name>
- <filename>__CheckInOut.exe</filename>
- </action>
- <action>
- <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
- <name>JavaScriptURL</name>
- <filename>__ShowDetails.exe</filename>
- <script>alfresco/desktop/showDetails.js</script>
- <attributes>anyFiles</attributes>
- <preprocess>copyToTarget</preprocess>
- </action>
-
- </desktopActions>
-
-<!--
- <accessControl default="Write">
- <user name="admin" access="Write"/>
- <address subnet="90.${version}.0" mask="255.255.0.0" access="Write"/>
- </accessControl>
--->
-
- </filesystem>
-
- <!-- AVM virtualization view of all stores/versions for WCM -->
- <avmfilesystem name="AVM">
- <virtualView/>
- </avmfilesystem>
-
- </filesystems>
- </config>
-
-</alfresco-config>
diff --git a/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/log4j.properties b/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/log4j.properties deleted file mode 100644 index 8d919e9bb17..00000000000 --- a/tests/integration/tests/maven-projects/maven-custom-type/src/test/resources/log4j.properties +++ /dev/null @@ -1,147 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# Customized alfresco log location
-# Set root logger level to error
-log4j.rootLogger=${webapp.log.level}, Console, File
-
-###### Console appender definition #######
-
-# All outputs currently set to be a ConsoleAppender.
-log4j.appender.Console=org.apache.log4j.ConsoleAppender
-log4j.appender.Console.layout=org.apache.log4j.PatternLayout
-log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{3}] %m%n
-#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
-
-###### File appender definition #######
-log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.File.File=${webapp.log.dir}alfresco.log
-log4j.appender.File.Append=true
-log4j.appender.File.DatePattern='.'yyyy-MM-dd
-log4j.appender.File.layout=org.apache.log4j.PatternLayout
-log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
-
-###### Hibernate specific appender definition #######
-#log4j.appender.file=org.apache.log4j.FileAppender
-#log4j.appender.file.File=hibernate.log
-#log4j.appender.file.layout=org.apache.log4j.PatternLayout
-#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
-
-###### Log level overrides #######
-
-log4j.logger.org.alfresco.repo.model.filefolder=info
-
-# Hibernate
-log4j.logger.org.hibernate=error
-log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
-log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
-#log4j.logger.org.hibernate.cache.EhCacheProvider=warn
-log4j.logger.org.hibernate.type=warn
-# log4j.logger.org.hibernate.persister.collection=DEBUG
-
-# Spring
-log4j.logger.org.springframework=warn
-
-# Axis/WSS4J
-log4j.logger.org.apache.axis=info
-log4j.logger.org.apache.ws=info
-
-# MyFaces
-log4j.logger.org.apache.myfaces.util.DebugUtils=info
-log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
-log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
-log4j.logger.org.apache.myfaces.taglib=error
-
-# log prepared statement cache activity ###
-log4j.logger.org.hibernate.ps.PreparedStatementCache=info
-
-# Alfresco
-log4j.logger.org.alfresco=error
-log4j.logger.org.alfresco.repo.avm=info
-log4j.logger.org.alfresco.config=info
-log4j.logger.org.alfresco.sample=info
-log4j.logger.org.alfresco.web=info
-log4j.logger.org.alfresco.web.scripts=warn
-#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
-#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
-#log4j.logger.org.alfresco.web.bean.clipboard=debug
-log4j.logger.org.alfresco.repo.webservice=info
-log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
-#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
-#log4j.logger.org.alfresco.web.ui.common.Utils=info
-log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
-log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
-log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
-log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
-log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
-log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=warn
-log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
-#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
-#log4j.logger.org.alfresco.repo.cache.EhCacheTracerJob=debug
-#log4j.logger.org.alfresco.repo.search.Indexer=debug
-#log4j.logger.org.alfresco.repo.workflow=info
-#log4j.logger.org.alfresco.repo.jscript=DEBUG
-log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=off
-
-# CIFS server debugging
-#log4j.logger.org.alfresco.smb.protocol=debug
-#log4j.logger.org.alfresco.smb.protocol.auth=debug
-#log4j.logger.org.alfresco.acegi=debug
-
-# FTP server debugging
-#log4j.logger.org.alfresco.ftp.protocol=debug
-#log4j.logger.org.alfresco.ftp.server=debug
-
-# WebDAV debugging
-#log4j.logger.org.alfresco.webdav.protocol=debug
-
-# NTLM servlet filters
-#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
-#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
-
-# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
-log4j.logger.org.alfresco.repo.node.integrity=ERROR
-
-# New indexer debugging
-#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
-
-# Audit debugging
-# log4j.logger.org.alfresco.repo.audit=DEBUG
-# log4j.logger.org.alfresco.repo.audit.model=DEBUG
-
-# Turn off Spring remoting warnings that should really be info or debug.
-log4j.logger.org.springframework.remoting.support=error
-
-# Templating debugging
-# log4j.logger.org.alfresco.web.forms=debug
-# log4j.logger.org.chiba.xml.xforms=debug
-
-# Property sheet and modelling debugging
-# change to error to hide the warnings about missing properties and associations
-log4j.logger.alfresco.missingProperties=warn
-log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn
-log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn
-#log4j.logger.org.alfresco.web.ui.repo.component.property=debug
-#log4j.logger.org.alfresco.repo.dictionary.DictionaryDAO=info
-
-
-# Virtualization Server Registry
-#log4j.logger.org.alfresco.mbeans.VirtServerRegistry=debug
-
-# Link Validation debugging
-#log4j.logger.org.alfresco.linkvalidation.LinkValidationServiceImpl=debug
-#log4j.logger.org.alfresco.linkvalidation.LinkValidationStoreCallbackHandler=debug
-
diff --git a/tests/integration/tests/maven-projects/maven-extensions/pom.xml b/tests/integration/tests/maven-projects/maven-extensions/pom.xml deleted file mode 100644 index a6e4f3b1e4c..00000000000 --- a/tests/integration/tests/maven-projects/maven-extensions/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>maven-extensions</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - maven extensions</name>
- <description>http://jira.codehaus.org/browse/SONAR-222</description>
- <build>
- <extensions>
- <extension>
- <groupId>org.jvnet.wagon-svn</groupId>
- <artifactId>wagon-svn</artifactId>
- <version>1.8</version>
- </extension>
-
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-webdav</artifactId>
- <version>1.0-beta-2</version>
- </extension>
- </extensions>
- </build>
-
- <repositories>
- <repository>
- <id>m.g.o-public</id>
- <url>http://download.java.net/maven/2/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories> - - <properties> - <sonar.profile>turbo</sonar.profile> - </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-extensions/src/main/java/org/sonar/tests/mavenExtensions/Hello.java b/tests/integration/tests/maven-projects/maven-extensions/src/main/java/org/sonar/tests/mavenExtensions/Hello.java deleted file mode 100644 index 5967512fb80..00000000000 --- a/tests/integration/tests/maven-projects/maven-extensions/src/main/java/org/sonar/tests/mavenExtensions/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.mavenExtensions; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_a/pom.xml b/tests/integration/tests/maven-projects/maven-invalid-parameters/module_a/pom.xml deleted file mode 100644 index 1731b49ae12..00000000000 --- a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_a/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>module_a</artifactId>
- <packaging>jar</packaging>
- <name>Module A</name>
-
- <parent>
- <groupId>org.sonar.tests.maven-invalid-parameters</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_a/src/main/java/org/sonar/tests/Hello.java b/tests/integration/tests/maven-projects/maven-invalid-parameters/module_a/src/main/java/org/sonar/tests/Hello.java deleted file mode 100644 index 4d61fb482fd..00000000000 --- a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_a/src/main/java/org/sonar/tests/Hello.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sonar.tests; - -public class Hello { - public static String s=null; - - public String toString() { - while(true) - s="hello"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_b/pom.xml b/tests/integration/tests/maven-projects/maven-invalid-parameters/module_b/pom.xml deleted file mode 100644 index fd975255a19..00000000000 --- a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_b/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>module_b</artifactId>
- <packaging>jar</packaging>
- <name>Module B</name>
-
- <parent>
- <groupId>org.sonar.tests.maven-invalid-parameters</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_b/src/main/java/org/sonar/tests/Hello.java b/tests/integration/tests/maven-projects/maven-invalid-parameters/module_b/src/main/java/org/sonar/tests/Hello.java deleted file mode 100644 index 4d61fb482fd..00000000000 --- a/tests/integration/tests/maven-projects/maven-invalid-parameters/module_b/src/main/java/org/sonar/tests/Hello.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sonar.tests; - -public class Hello { - public static String s=null; - - public String toString() { - while(true) - s="hello"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/maven-invalid-parameters/pom.xml b/tests/integration/tests/maven-projects/maven-invalid-parameters/pom.xml deleted file mode 100644 index 77a241f920b..00000000000 --- a/tests/integration/tests/maven-projects/maven-invalid-parameters/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests.maven-invalid-parameters</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>Sonar tests - maven-invalid-parameters</name>
- <modules>
- <module>module_a</module>
- <module>module_b</module>
- </modules>
-
-<build>
- <plugins>
- <plugin>
- <artifactId>maven-pmd-plugin</artifactId>
- <configuration>
- <aggregate>true</aggregate> <!-- SONAR-518 -->
- <skip>true</skip> <!-- SONAR-593 -->
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <configuration>
- <skip>true</skip><!-- SONAR-519 -->
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <configuration>
- <skip>true</skip><!-- SONAR-593 -->
- </configuration>
- </plugin>
-
- </plugins>
-</build>
-
-<properties>
- <sonar.profile>turbo</sonar.profile>
-</properties>
-
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_a/pom.xml b/tests/integration/tests/maven-projects/modules/module_a/pom.xml deleted file mode 100644 index 68cfa84eb36..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_a/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>module_a</artifactId>
- <packaging>pom</packaging>
- <name>Module A</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modules>
- <module>submodule_a1</module>
- <module>submodule_a2</module>
- </modules>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_a/submodule_a1/pom.xml b/tests/integration/tests/maven-projects/modules/module_a/submodule_a1/pom.xml deleted file mode 100644 index 9f4f8596fa9..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_a/submodule_a1/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>submodule_a1</artifactId>
- <packaging>jar</packaging>
- <name>Sub-module A1</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>module_a</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_a/submodule_a1/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submodulea1/HelloA1.java b/tests/integration/tests/maven-projects/modules/module_a/submodule_a1/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submodulea1/HelloA1.java deleted file mode 100644 index 57228b38d64..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_a/submodule_a1/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submodulea1/HelloA1.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.codehaus.sonar.samples.samplewithmodules.submodulea1; - -public class HelloA1 { - private int i; - private HelloA1() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } - - protected String getHello() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_a/submodule_a2/pom.xml b/tests/integration/tests/maven-projects/modules/module_a/submodule_a2/pom.xml deleted file mode 100644 index 428f37021e2..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_a/submodule_a2/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>submodule_a2</artifactId>
- <packaging>jar</packaging>
- <name>Sub-module A2</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>module_a</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_a/submodule_a2/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submodulea2/HelloA2.java b/tests/integration/tests/maven-projects/modules/module_a/submodule_a2/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submodulea2/HelloA2.java deleted file mode 100644 index 59306061168..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_a/submodule_a2/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submodulea2/HelloA2.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.codehaus.sonar.samples.samplewithmodules.submodulea2; - -public class HelloA2 { - private int i; - private HelloA2() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_b/pom.xml b/tests/integration/tests/maven-projects/modules/module_b/pom.xml deleted file mode 100644 index e5372f53a22..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_b/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>module_b</artifactId>
- <packaging>pom</packaging>
- <name>Module B</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modules>
- <module>submodule_b1</module>
- <module>submodule_b2</module>
- </modules>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_b/submodule_b1/pom.xml b/tests/integration/tests/maven-projects/modules/module_b/submodule_b1/pom.xml deleted file mode 100644 index 1b52dfc3b66..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_b/submodule_b1/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>submodule_b1</artifactId>
- <packaging>jar</packaging>
- <name>Sub-module B1</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>module_b</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_b/submodule_b1/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submoduleb1/HelloB1.java b/tests/integration/tests/maven-projects/modules/module_b/submodule_b1/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submoduleb1/HelloB1.java deleted file mode 100644 index 6977458e135..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_b/submodule_b1/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submoduleb1/HelloB1.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.codehaus.sonar.samples.samplewithmodules.submoduleb1; - -public class HelloB1 { - private int i; - private HelloB1() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_b/submodule_b2/pom.xml b/tests/integration/tests/maven-projects/modules/module_b/submodule_b2/pom.xml deleted file mode 100644 index 48b216c6329..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_b/submodule_b2/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>submodule_b2</artifactId>
- <packaging>jar</packaging>
- <name>Sub-module B2</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>module_b</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_b/submodule_b2/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submoduleb2/HelloB2.java b/tests/integration/tests/maven-projects/modules/module_b/submodule_b2/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submoduleb2/HelloB2.java deleted file mode 100644 index 6451883354d..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_b/submodule_b2/src/main/java/org/codehaus/sonar/samples/samplewithmodules/submoduleb2/HelloB2.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.codehaus.sonar.samples.samplewithmodules.submoduleb2; - -public class HelloB2 { - private int i; - private HelloB2() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_to_skip/pom.xml b/tests/integration/tests/maven-projects/modules/module_to_skip/pom.xml deleted file mode 100644 index 599b170a08c..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_to_skip/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>module_to_skip</artifactId>
- <packaging>jar</packaging>
- <name>Module to skip</name>
-
- <parent>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/module_to_skip/src/main/java/org/codehaus/sonar/tests/modules/moduleToSkip/SkippedClass.java b/tests/integration/tests/maven-projects/modules/module_to_skip/src/main/java/org/codehaus/sonar/tests/modules/moduleToSkip/SkippedClass.java deleted file mode 100644 index af2db3ff70f..00000000000 --- a/tests/integration/tests/maven-projects/modules/module_to_skip/src/main/java/org/codehaus/sonar/tests/modules/moduleToSkip/SkippedClass.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.codehaus.sonar.tests.modules.moduletoSkip; - -public class SkippedClass { - private int i; - private SkippedClass() { - - } - - public void skip() { - System.out.println("hello" + " world"); - int j=i+2223; - } - - protected String getFoo() { - return "fooooooooooooo"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/modules/pom.xml b/tests/integration/tests/maven-projects/modules/pom.xml deleted file mode 100644 index 77b9caf72bc..00000000000 --- a/tests/integration/tests/maven-projects/modules/pom.xml +++ /dev/null @@ -1,27 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests.modules</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>Sonar tests - modules</name>
- <modules>
- <module>module_a</module>
- <module>module_to_skip</module>
- <module>module_b</module>
- </modules>
-
- <properties>
- <sonar.skippedModules>module_to_skip,fake_module</sonar.skippedModules>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/no-tests/pom.xml b/tests/integration/tests/maven-projects/no-tests/pom.xml deleted file mode 100644 index c3367c185e2..00000000000 --- a/tests/integration/tests/maven-projects/no-tests/pom.xml +++ /dev/null @@ -1,8 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>no-tests</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>No tests</name>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/no-tests/src/main/java/org/sonar/tests/Hello.java b/tests/integration/tests/maven-projects/no-tests/src/main/java/org/sonar/tests/Hello.java deleted file mode 100644 index e762b8f3654..00000000000 --- a/tests/integration/tests/maven-projects/no-tests/src/main/java/org/sonar/tests/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/plugin-build-helper/pom.xml b/tests/integration/tests/maven-projects/plugin-build-helper/pom.xml deleted file mode 100644 index 52b2d054017..00000000000 --- a/tests/integration/tests/maven-projects/plugin-build-helper/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.codehaus.sonar.plugins</groupId> - <artifactId>test-build-helper</artifactId> - <packaging>jar</packaging> - <name>Sonar maven build helper sample</name> - <version>1.0.0-SNAPSHOT</version> - - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.1</version> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>${basedir}/src/main/java2</source> - <source>${basedir}/src/main/java3</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - <properties> - <sonar.dynamicAnalysis>false</sonar.dynamicAnalysis> - <sonar.phase>generate-sources</sonar.phase> - </properties> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java/Java1PackageClass.java b/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java/Java1PackageClass.java deleted file mode 100644 index 8b64e1504f8..00000000000 --- a/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java/Java1PackageClass.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -public class Java1PackageClass { - - /** - * @param args - */ - public static void main(String[] args) { - String test1 = ""; - test1 = test1; - System.out.println("test"); - if ( true ) System.out.println("true"); - } -} diff --git a/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java2/Java2PackageClass.java b/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java2/Java2PackageClass.java deleted file mode 100644 index 253a5ca4b42..00000000000 --- a/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java2/Java2PackageClass.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -public class Java2PackageClass { - - /** - * @param args - */ - public static void main(String[] args) { - String test2 = ""; - test2 = test2; - System.out.println("test2"); - if ( true ) System.out.println("true"); - } -} diff --git a/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java3/Java3PackageClass.java b/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java3/Java3PackageClass.java deleted file mode 100644 index ee3fe206337..00000000000 --- a/tests/integration/tests/maven-projects/plugin-build-helper/src/main/java3/Java3PackageClass.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ - -public class Java3PackageClass { - - /** - * @param args - */ - public static void main(String[] args) { - String test3 = ""; - test3 = test3; - if ( true ) System.out.println("true"); - } - -} diff --git a/tests/integration/tests/maven-projects/pom-without-modules/pom.xml b/tests/integration/tests/maven-projects/pom-without-modules/pom.xml deleted file mode 100644 index a38c88c6369..00000000000 --- a/tests/integration/tests/maven-projects/pom-without-modules/pom.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>pom-without-modules</artifactId> - <packaging>pom</packaging> - <version>1.0-SNAPSHOT</version> - <name>POM without modules</name> -</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/project-to-disable/pom.xml b/tests/integration/tests/maven-projects/project-to-disable/pom.xml deleted file mode 100644 index f80bb78e012..00000000000 --- a/tests/integration/tests/maven-projects/project-to-disable/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>disabled-project</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - disabled project</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- - <properties> - <sonar.profile>turbo</sonar.profile> - </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/project-to-disable/src/main/java/Hello.java b/tests/integration/tests/maven-projects/project-to-disable/src/main/java/Hello.java deleted file mode 100644 index 01e0bd0e460..00000000000 --- a/tests/integration/tests/maven-projects/project-to-disable/src/main/java/Hello.java +++ /dev/null @@ -1,14 +0,0 @@ -public class Hello { - - private Hello() { - - } - - public void hello() { - System.out.println("hello" + " world"); - } - - protected String getHello() { - return "hello"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/pom.xml b/tests/integration/tests/maven-projects/reference/pom.xml deleted file mode 100644 index d155aad7602..00000000000 --- a/tests/integration/tests/maven-projects/reference/pom.xml +++ /dev/null @@ -1,90 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>reference</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - reference</name>
- <description>Sonar integration tests - reference project</description>
- <url>http://foo/bar</url>
- <scm>
- <connection>scm:svn:http://svn.codehaus.org/sonar/trunk/tests/integration/reference-projects/reference</connection>
- <developerConnection>scm:svn:https://svn.codehaus.org/sonar/trunk/tests/integration/reference-projects/reference
- </developerConnection>
- <url>http://svn.sonar.codehaus.org/trunk/tests/integration</url>
- </scm>
-
- <issueManagement>
- <system>jira</system>
- <url>http://jira.codehaus.org/browse/SONAR</url>
- </issueManagement>
-
- <ciManagement>
- <system>bamboo</system>
- <url>http://bamboo.ci.codehaus.org/browse/SONAR/</url>
- </ciManagement>
-
- <dependencies>
- <dependency>
- <groupId>geronimo-spec</groupId>
- <artifactId>geronimo-spec-jta</artifactId>
- <version>1.0-M1</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate</artifactId>
- <version>3.2.6.ga</version>
- <!-- removing the hibernate JTA dep to avoid to have to install it
- manually and using the geronimo-spec-jta dep which is downloadable -->
- <exclusions>
- <exclusion>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- </exclusion>
- <!-- removing commons logging to avoid classloader issues and replacing it by jcl104-over-slf4j -->
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-annotations</artifactId>
- <version>3.3.0.ga</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-commons-annotations</artifactId>
- <version>3.3.0.ga</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>3.3.1.ga</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/ClassOnDefaultPackage.java b/tests/integration/tests/maven-projects/reference/src/main/java/ClassOnDefaultPackage.java deleted file mode 100644 index dff4c90b9ba..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/ClassOnDefaultPackage.java +++ /dev/null @@ -1,10 +0,0 @@ -public class ClassOnDefaultPackage {
-
- public ClassOnDefaultPackage(int i) {
- int j = i++;
- }
-
- private String myMethod() {
- return "hello";
- }
-}
diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassUnderTest.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassUnderTest.java deleted file mode 100644 index 8f5453ae7cf..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassUnderTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.sonar.samples; - -public class ClassUnderTest { - public void toto() throws Exception { - int i=0; - i++; - } - public String hello() { - return "hello"; - } -} diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassWithComments.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassWithComments.java deleted file mode 100644 index f4c4948763e..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassWithComments.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.sonar.samples;
-
-/**
- *
- * THE JAVADOC HEADER
- *
- */
-public class ClassWithComments {
-
- public ClassWithComments(int i) {
- // single comment
- int j = i++;
- }
-
- private String myMethod() {
- /*
- comment
- on
- many
- lines
- */
- int toto=34; // comment at end of line
- return "hello";
- }
-}
diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassWithPackageImportsComment.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassWithPackageImportsComment.java deleted file mode 100644 index 69e20c8a31a..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/ClassWithPackageImportsComment.java +++ /dev/null @@ -1,7 +0,0 @@ -// some comment -package org.sonar.samples; - -import java.lang.Runtime; -import java.lang.String; - -// another comment
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/EmptyClass.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/EmptyClass.java deleted file mode 100644 index c89b8e1c0e4..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/EmptyClass.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.sonar.samples; - -public class EmptyClass { -} diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/EmptyFile.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/EmptyFile.java deleted file mode 100644 index d3eb8712dee..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/EmptyFile.java +++ /dev/null @@ -1 +0,0 @@ -// empty class file with only a comment see http://jira.codehaus.org/browse/SONAR-864
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/HibernateModel.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/HibernateModel.java deleted file mode 100644 index 6246b64620e..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/HibernateModel.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.sonar.samples;
-
-import javax.persistence.*;
-
-@Entity
-@Table(name = "foo")
-public class HibernateModel implements java.io.Serializable {
-
- @Id
- @Column(name = "id")
- @SequenceGenerator(name = "FOO_ID_SEQ", sequenceName = "FOO_ID_SEQ")
- @GeneratedValue(strategy = GenerationType.AUTO, generator = "FOO_ID_SEQ")
- private Integer id;
-
- @Column(name = "column1", updatable = true, nullable = true, length = 32)
- private String column1;
-
- public HibernateModel() {
- }
-
- public HibernateModel(String column1) {
- this.column1 = column1;
- }
-}
diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/InnerClass.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/InnerClass.java deleted file mode 100644 index d1216665023..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/InnerClass.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Sonar, entreprise quality control tool. - * Copyright (C) 2007-2008 Hortis-GRC SA - * mailto:be_agile HAT hortis DOT ch - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.samples; - -public class InnerClass { - - protected void methodOne() { - int i = 0; - i++; - } - - protected void methodTwo() { - int i = 0; - i++; - } - - protected int methodReturnThree() { - return 3; - } - - class InnerClassInside { - - InnerClassInside() { - } - - protected void innerMethodOne() { - System.out.println("in one"); - } - - protected void innerMethodTwo() { - System.out.println("in two"); - } - - protected int methodReturnFour() { - return 4; - } - - } -} - -class PrivateClass { - PrivateClass() { - - } - - void innerMethodThree() { - System.out.println("in three"); - } - - void innerMethodFour() { - System.out.println("in four"); - } - - void innerMethodFive() { - if (true) { - System.out.println("in five"); - } - } - - void innerMethodSix() { - if (true) { - System.out.println("in six"); - } - } - - int methodReturnfive() { - return 5; - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/InterfaceWithConstants.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/InterfaceWithConstants.java deleted file mode 100644 index 850b4e2556d..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/InterfaceWithConstants.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.sonar.samples; - -public interface InterfaceWithConstants { - int INT_CONSTANT = 1; - - EmptyClass OBJECT_CONSTANT = new EmptyClass(); - - void doSomething(); - - void doSomethingElse(); -} diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/PureAbstractClass.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/PureAbstractClass.java deleted file mode 100644 index 8840823f763..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/PureAbstractClass.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.sonar.samples; - -public abstract class PureAbstractClass { - - abstract void doSomething(); - -} diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/PureInterface.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/PureInterface.java deleted file mode 100644 index 4a68712da0a..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/PureInterface.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.sonar.samples; - -public interface PureInterface { - - void doSomething(); - - void doSomethingElse(); - -} diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/Utf8Characters.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/Utf8Characters.java deleted file mode 100644 index d17dcddb369..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/Utf8Characters.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.samples; - -public class Utf8Characters { - String test = "voyelles accentuées"; - String test2 = "à éèûù"; - String test3 = "3 Ä"; - - public Utf8Characters(){ - String t; - if (true) - t = "éöà ä$£"; - } -} diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_with_other_package1/DuplicatedLinesWithOtherPackage.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_with_other_package1/DuplicatedLinesWithOtherPackage.java deleted file mode 100644 index 73efdd038bc..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_with_other_package1/DuplicatedLinesWithOtherPackage.java +++ /dev/null @@ -1,60 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_with_other_package1;
-
-public class DuplicatedLinesWithOtherPackage {
-
- public DuplicatedLinesWithOtherPackage() {
- }
-
- public void duplicatedMethodWithOtherPackage() {
- char[] charList = new char[30];
- charList[0] = 'a';
- charList[1] = 'b';
- charList[2] = 'c';
- charList[3] = 'd';
- charList[4] = 'e';
- charList[5] = 'f';
- charList[6] = 'g';
- charList[7] = 'g';
- charList[8] = 'g';
- charList[9] = 'g';
- charList[10] = 'g';
- charList[11] = 'g';
- charList[12] = 'g';
- charList[13] = 'g';
- charList[14] = 'g';
- charList[15] = 'g';
- charList[16] = 'g';
- charList[17] = 'g';
- charList[18] = 'g';
- charList[19] = 'g';
- charList[20] = 'g';
- charList[21] = 'g';
- charList[22] = 'g';
- charList[23] = 'g';
- charList[24] = 'g';
- charList[27] = 'g';
- charList[28] = 'g';
- charList[29] = 'g';
- charList[30] = 'g';
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_with_other_package2/DuplicatedLinesWithOtherPackage.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_with_other_package2/DuplicatedLinesWithOtherPackage.java deleted file mode 100644 index dd5f6108917..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_with_other_package2/DuplicatedLinesWithOtherPackage.java +++ /dev/null @@ -1,60 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_with_other_package2;
-
-public class DuplicatedLinesWithOtherPackage {
-
- public DuplicatedLinesWithOtherPackage() {
- }
-
- public void duplicatedMethodWithOtherPackage() {
- char[] charList = new char[30];
- charList[0] = 'a';
- charList[1] = 'b';
- charList[2] = 'c';
- charList[3] = 'd';
- charList[4] = 'e';
- charList[5] = 'f';
- charList[6] = 'g';
- charList[7] = 'g';
- charList[8] = 'g';
- charList[9] = 'g';
- charList[10] = 'g';
- charList[11] = 'g';
- charList[12] = 'g';
- charList[13] = 'g';
- charList[14] = 'g';
- charList[15] = 'g';
- charList[16] = 'g';
- charList[17] = 'g';
- charList[18] = 'g';
- charList[19] = 'g';
- charList[20] = 'g';
- charList[21] = 'g';
- charList[22] = 'g';
- charList[23] = 'g';
- charList[24] = 'g';
- charList[27] = 'g';
- charList[28] = 'g';
- charList[29] = 'g';
- charList[30] = 'g';
- }
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage1.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage1.java deleted file mode 100644 index c62cfe7c047..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage1.java +++ /dev/null @@ -1,63 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_within_package;
-
-public class DuplicatedLinesInSamePackage1 {
-
- public DuplicatedLinesInSamePackage1() {
- }
-
- /*
- * sddfgdfgfg
- */
- public void duplicatedMethodInSameClass1() {
- int intergerToBeIncremented = 0;
- while (intergerToBeIncremented < 100) {
- intergerToBeIncremented++;
- }
- int intergerToBeIncremented2 = 0;
- while (intergerToBeIncremented2 < 100) {
- intergerToBeIncremented2++;
- }
- // first
- int intergerToBeIncremented3 = 0;
- while (intergerToBeIncremented3 < 100) {
- intergerToBeIncremented3++;
- }
- int intergerToBeIncremented4 = 0;
- while (intergerToBeIncremented4 < 100) {
- intergerToBeIncremented4++;
- }
- int intergerToBeIncremented5 = 0;
- while (intergerToBeIncremented5 < 100) {
- intergerToBeIncremented5++;
- }
- int intergerToBeIncremented6 = 0;
- while (intergerToBeIncremented6 < 100) {
- intergerToBeIncremented6++;
- }
- int intergerToBeIncremented7 = 0;
- while (intergerToBeIncremented7 < 100) {
- intergerToBeIncremented7++;
- }
- }
-
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage2.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage2.java deleted file mode 100644 index 4da16afae92..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_package/DuplicatedLinesInSamePackage2.java +++ /dev/null @@ -1,65 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_within_package;
-
-public class DuplicatedLinesInSamePackage2 {
-
- public DuplicatedLinesInSamePackage2() {
- }
-
- /*
- * sddfgdfgfg
- */
- public void duplicatedMethodInSameClass1() {
- int intergerToBeIncremented = 0;
- while (intergerToBeIncremented < 100) {
- intergerToBeIncremented++;
- }
- int intergerToBeIncremented2 = 0;
- while (intergerToBeIncremented2 < 100) {
- intergerToBeIncremented2++;
- }
- // second
- int intergerToBeIncremented3 = 0;
- while (intergerToBeIncremented3 < 100) {
- intergerToBeIncremented3++;
- }
- int intergerToBeIncremented4 = 0;
- while (intergerToBeIncremented4 < 100) {
- intergerToBeIncremented4++;
- }
- int intergerToBeIncremented5 = 0;
- while (intergerToBeIncremented5 < 100) {
- intergerToBeIncremented5++;
- }
- // vghgvhz
- // bhjjh
- int intergerToBeIncremented6 = 0;
- while (intergerToBeIncremented6 < 100) {
- intergerToBeIncremented6++;
- }
- int intergerToBeIncremented7 = 0;
- while (intergerToBeIncremented7 < 100) {
- intergerToBeIncremented7++;
- }
- }
-
-
-}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_same_class/DuplicatedLinesInSameClass.java b/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_same_class/DuplicatedLinesInSameClass.java deleted file mode 100644 index 3f57c58a130..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/java/org/sonar/samples/duplicated_lines_within_same_class/DuplicatedLinesInSameClass.java +++ /dev/null @@ -1,89 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples.duplicated_lines_within_same_class;
-
-public class DuplicatedLinesInSameClass {
-
- public DuplicatedLinesInSameClass() {
- }
-
- public void duplicatedMethodInSameClass1() {
- String temp = "";
- for (int i=0; i<10; i++){
- temp += "say something"+i;
- }
- for (int i=0; i<20; i++){
- temp += "say nothing"+i;
- }
- for (int i=0; i<30; i++){
- temp += "always say nothing"+i;
- }
- for (int i=0; i<40; i++){
- temp += "really nothing to say "+i;
- }
- for (int i=0; i<50; i++){
- temp += "really really nothing to say "+i;
- }
- for (int i=0; i<60; i++){
- temp += ".. "+i;
- }
- for (int i=0; i<70; i++){
- temp += "you say something? "+i;
- }
- for (int i=0; i<80; i++){
- temp += "ah no..."+i;
- }
- for (int i=0; i<90; i++){
- temp += "bye"+i;
- }
- }
-
- public void duplicatedMethodInSameClass2() {
- String temp = "";
- for (int i=0; i<10; i++){
- temp += "say something"+i;
- }
- for (int i=0; i<20; i++){
- temp += "say nothing"+i;
- }
- for (int i=0; i<30; i++){
- temp += "always say nothing"+i;
- }
- for (int i=0; i<40; i++){
- temp += "really nothing to say "+i;
- }
- for (int i=0; i<50; i++){
- temp += "really really nothing to say "+i;
- }
- for (int i=0; i<60; i++){
- temp += ".. "+i;
- }
- for (int i=0; i<70; i++){
- temp += "you say something? "+i;
- }
- for (int i=0; i<80; i++){
- temp += "ah no..."+i;
- }
- for (int i=0; i<90; i++){
- temp += "bye"+i;
- }
- }
-
-}
diff --git a/tests/integration/tests/maven-projects/reference/src/main/resources/META-INF/persistence.xml b/tests/integration/tests/maven-projects/reference/src/main/resources/META-INF/persistence.xml deleted file mode 100644 index a182ecce7ef..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/main/resources/META-INF/persistence.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
- version="1.0">
- <persistence-unit name="test" transaction-type="RESOURCE_LOCAL">
- <class>org.sonar.samples.HibernateModel</class>
- <properties>
- <property name="hibernate.current_session_context_class" value="thread"/>
- <property name="hibernate.connection.release_mode" value="after_transaction"/>
- <property name="hibernate.bytecode.use_reflection_optimizer" value="true"/>
- <property name="hibernate.query.factory_class" value="org.hibernate.hql.ast.ASTQueryTranslatorFactory"/>
- <property name="hibernate.jdbc.batch_size" value="100"/>
- <property name="hibernate.connection.useUnicode" value="true" />
- <property name="hibernate.connection.charSet" value="UTF-8"/>
- <property name="hibernate.connection.characterEncoding" value="UTF-8" />
- <property name="hibernate.archive.autodetection" value="class" />
- </properties>
- </persistence-unit>
-</persistence>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/reference/src/test/java/org/sonar/samples/ClassUnderTestTest.java b/tests/integration/tests/maven-projects/reference/src/test/java/org/sonar/samples/ClassUnderTestTest.java deleted file mode 100644 index 4e0562ee7af..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/test/java/org/sonar/samples/ClassUnderTestTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.sonar.samples; - -import junit.framework.TestCase; - -public class ClassUnderTestTest extends TestCase { - - public void testHello() { - ClassUnderTest instance = new ClassUnderTest(); - assertEquals("hello", instance.hello()); - } - - public void testToto() throws Exception { - ClassUnderTest instance = new ClassUnderTest(); - instance.toto(); - } -} diff --git a/tests/integration/tests/maven-projects/reference/src/test/java/org/sonar/samples/InnerClassTest.java b/tests/integration/tests/maven-projects/reference/src/test/java/org/sonar/samples/InnerClassTest.java deleted file mode 100644 index 29892a066af..00000000000 --- a/tests/integration/tests/maven-projects/reference/src/test/java/org/sonar/samples/InnerClassTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/*
- * Sonar, entreprise quality control tool.
- * Copyright (C) 2007-2008 Hortis-GRC SA
- * mailto:be_agile HAT hortis DOT ch
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.samples;
-
-import static junit.framework.Assert.assertEquals;
-import org.junit.Test;
-
-public class InnerClassTest {
-
- @Test
- public void shouldTestMethodToTest() {
- InnerClass innerClass = new InnerClass();
- assertEquals(3, innerClass.methodReturnThree());
- }
-
- @Test
- public void shouldTestInnerClassInside() {
- InnerClass innerClass = new InnerClass();
- InnerClass.InnerClassInside innerClassInside = innerClass.new InnerClassInside();
- assertEquals(4, innerClassInside.methodReturnFour());
- }
-
- @Test
- public void shouldTestPrivateClass() {
- PrivateClass privateClass = new PrivateClass();
- assertEquals(5, privateClass.methodReturnfive());
- }
-}
diff --git a/tests/integration/tests/maven-projects/rules-on-tests/pom.xml b/tests/integration/tests/maven-projects/rules-on-tests/pom.xml deleted file mode 100644 index 3ea8256ac97..00000000000 --- a/tests/integration/tests/maven-projects/rules-on-tests/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>rulesOnTests</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - rules on tests (SONAR-413)</name>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
-
- <plugin>
- <artifactId>maven-pmd-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <includeTests>true</includeTests>
- </configuration>
- </plugin>
-
- <plugin>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <properties>
- <sonar.profile>Sonar way</sonar.profile>
- </properties>
-
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/rules-on-tests/src/main/java/org/sonar/tests/rulesOnTests/Hello.java b/tests/integration/tests/maven-projects/rules-on-tests/src/main/java/org/sonar/tests/rulesOnTests/Hello.java deleted file mode 100644 index 9058064315f..00000000000 --- a/tests/integration/tests/maven-projects/rules-on-tests/src/main/java/org/sonar/tests/rulesOnTests/Hello.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.sonar.tests.rulesOnTests; - -public class Hello { - public void foo() throws Exception { - int i=0; - i++; - hello(); - } - public String hello() { - return "hello"; - } - public boolean equals(Object o) { - // TODO - return true; - } -} diff --git a/tests/integration/tests/maven-projects/rules-on-tests/src/main/java/org/sonar/tests/rulesOnTests/World.java b/tests/integration/tests/maven-projects/rules-on-tests/src/main/java/org/sonar/tests/rulesOnTests/World.java deleted file mode 100644 index 4693e9eeef2..00000000000 --- a/tests/integration/tests/maven-projects/rules-on-tests/src/main/java/org/sonar/tests/rulesOnTests/World.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.sonar.tests.rulesOnTests;
-
-/**
- *
- * THE JAVADOC HEADER
- *
- */
-public class World {
-
- public World(int i) {
- // single comment
- int j = i++;
- }
-
- private String myMethod() {
- /*
- comment
- on
- many
- lines
- */
- int toto=34; // comment at end of line
- return "hello";
- }
-}
diff --git a/tests/integration/tests/maven-projects/rules-on-tests/src/test/java/org/sonar/tests/rulesOnTests/HelloTest.java b/tests/integration/tests/maven-projects/rules-on-tests/src/test/java/org/sonar/tests/rulesOnTests/HelloTest.java deleted file mode 100644 index f1d6dd5806e..00000000000 --- a/tests/integration/tests/maven-projects/rules-on-tests/src/test/java/org/sonar/tests/rulesOnTests/HelloTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.sonar.tests.rulesOnTests; - -import junit.framework.TestCase; - -public class HelloTest extends TestCase { - - public void testHello() { - Hello instance = new Hello(); - assertEquals("hello", instance.hello()); - } - - public void testToto() throws Exception { - Hello instance = new Hello(); - instance.foo(); - } -} diff --git a/tests/integration/tests/maven-projects/rules-on-tests/src/test/java/org/sonar/tests/rulesOnTests/WorldTest.java b/tests/integration/tests/maven-projects/rules-on-tests/src/test/java/org/sonar/tests/rulesOnTests/WorldTest.java deleted file mode 100644 index 84e89e8a978..00000000000 --- a/tests/integration/tests/maven-projects/rules-on-tests/src/test/java/org/sonar/tests/rulesOnTests/WorldTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.sonar.tests.rulesOnTests;
-
-import static junit.framework.Assert.assertTrue;
-import org.junit.Test;
-
-public class WorldTest {
-
- @Test
- public void testFoo() {
- int i=0;
- i++;
- }
-
- @Test
- public void shouldFoo() {
- Object o = new World(30);
- String s = o.toString();
- assertTrue(s==o);
- }
-
- public boolean equals(Object o) {
- return false;
-}
-}
diff --git a/tests/integration/tests/maven-projects/single-classes/pom.xml b/tests/integration/tests/maven-projects/single-classes/pom.xml deleted file mode 100644 index 9e7b9d5c30b..00000000000 --- a/tests/integration/tests/maven-projects/single-classes/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>single-classes</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Single classes</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <properties>
- <sonar.profile>single-classes</sonar.profile>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/single-classes/src/main/java/org/sonar/tests/SONAR582ViolationsWithoutLines.java b/tests/integration/tests/maven-projects/single-classes/src/main/java/org/sonar/tests/SONAR582ViolationsWithoutLines.java deleted file mode 100644 index 1506d09e64d..00000000000 --- a/tests/integration/tests/maven-projects/single-classes/src/main/java/org/sonar/tests/SONAR582ViolationsWithoutLines.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sonar.tests; - -public class SONAR582ViolationsWithoutLines { - public static String s=null; - - public String toString() { - while(true) - s="hello"; - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/single-classes/src/main/java/org/sonar/tests/SONAR684EncodeViolationMessages.java b/tests/integration/tests/maven-projects/single-classes/src/main/java/org/sonar/tests/SONAR684EncodeViolationMessages.java deleted file mode 100644 index ca04b3340f4..00000000000 --- a/tests/integration/tests/maven-projects/single-classes/src/main/java/org/sonar/tests/SONAR684EncodeViolationMessages.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.sonar.tests; - -public class SONAR684EncodeViolationMessages { - - private void bar() { - buz("<select>"); - buz("<select>"); - buz("<select>"); - buz("<select>"); - buz("<select>"); - buz("<select>"); - buz("<select>"); - buz("<select>"); - buz("<select>"); - } - - private void buz(String x) {} - -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/sjis-charset/pom.xml b/tests/integration/tests/maven-projects/sjis-charset/pom.xml deleted file mode 100644 index 2ad767e3856..00000000000 --- a/tests/integration/tests/maven-projects/sjis-charset/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.sonar.tests</groupId> - <artifactId>sjis-charset</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>sjis-charset</name> - <description>Japanese charset</description> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - <encoding>Shift_JIS</encoding> - </configuration> - </plugin> - </plugins> - </build> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.6</version> - <scope>test</scope> - </dependency> - </dependencies> - - <properties> - <project.build.sourceEncoding>Shift_JIS</project.build.sourceEncoding> - </properties> -</project> diff --git a/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/App.java b/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/App.java deleted file mode 100644 index 66ea7face5c..00000000000 --- a/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/App.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.test; - -import java.io.PrintWriter; - -/** - * Hello world! - * - */ -public class App -{ - /** - * ’ŠÛƒNƒ‰ƒX‚𓱓ü - * - * - * - */ - public static void main( String[] args ) - { - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - } - - public void test(PrintWriter pw) { - pw.print( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - } - - public void ƒnƒ[ƒ[ƒ‹ƒh() { - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - } -} diff --git a/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/AppCpdBug.java b/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/AppCpdBug.java deleted file mode 100644 index c5dbc131ac7..00000000000 --- a/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/AppCpdBug.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.test; - -/** - * Hello world! - * - */ -public class AppCpdBug -{ - /** - * ’ŠÛƒNƒ‰ƒX‚𓱓ü - * - * - * - */ - public static void main( String[] args ) - { - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - } -} diff --git a/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/AppDuplication.java b/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/AppDuplication.java deleted file mode 100644 index f17a2d87fda..00000000000 --- a/tests/integration/tests/maven-projects/sjis-charset/src/main/java/com/test/AppDuplication.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.test; - -/** - * Hello world! - * - */ -public class AppDuplication -{ - /** - * ’ŠÛƒNƒ‰ƒX‚𓱓ü - * - * - * - */ - public static void main( String[] args ) - { - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println( "ƒnƒ[ƒ[ƒ‹ƒh!" ); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - System.out.println("Ø–¾‘ƒpƒX\’z‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"); - } -} diff --git a/tests/integration/tests/maven-projects/sjis-charset/src/test/java/com/test/AppTest.java b/tests/integration/tests/maven-projects/sjis-charset/src/test/java/com/test/AppTest.java deleted file mode 100644 index 3f5cdac49ae..00000000000 --- a/tests/integration/tests/maven-projects/sjis-charset/src/test/java/com/test/AppTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.test; - -import java.io.ByteArrayOutputStream; -import java.io.PrintWriter; -import java.io.UnsupportedEncodingException; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Unit test for simple App. - */ -public class AppTest { - - @Test - public void testApp() throws UnsupportedEncodingException { - App app = new App(); - ByteArrayOutputStream out = new ByteArrayOutputStream(); - PrintWriter pw = new PrintWriter(out); - app.test(pw); - pw.flush(); - String helloWorld = out.toString("Shift_JIS"); - assertTrue(helloWorld.length() > 0); - } -} diff --git a/tests/integration/tests/maven-projects/skip-surefire-tests/pom.xml b/tests/integration/tests/maven-projects/skip-surefire-tests/pom.xml deleted file mode 100644 index e71049dee03..00000000000 --- a/tests/integration/tests/maven-projects/skip-surefire-tests/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>skip-surefire-tests</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>Sonar tests - [SONAR-401] skip Surefire tests</name>
- <description>see http://jira.codehaus.org/browse/SONAR-401</description>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.2</version>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/skip-surefire-tests/src/main/java/org/sonar/tests/skipSurefireTests/Hello.java b/tests/integration/tests/maven-projects/skip-surefire-tests/src/main/java/org/sonar/tests/skipSurefireTests/Hello.java deleted file mode 100644 index e36f535ff7a..00000000000 --- a/tests/integration/tests/maven-projects/skip-surefire-tests/src/main/java/org/sonar/tests/skipSurefireTests/Hello.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.skipSurefireTests; - -public class Hello { - private String hello; - - public Hello(String s){ - this.hello = s; - } - - public String say() { - return hello; - } -} diff --git a/tests/integration/tests/maven-projects/skip-surefire-tests/src/test/java/org/sonar/tests/skipSurefireTests/HelloTest.java b/tests/integration/tests/maven-projects/skip-surefire-tests/src/test/java/org/sonar/tests/skipSurefireTests/HelloTest.java deleted file mode 100644 index dc7eea23360..00000000000 --- a/tests/integration/tests/maven-projects/skip-surefire-tests/src/test/java/org/sonar/tests/skipSurefireTests/HelloTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sonar.tests.skipSurefireTests; - -import static org.junit.Assert.assertEquals; -import org.junit.Test; - - -public class HelloTest { - - @Test - public void shouldSayHello() { - assertEquals("hi", new Hello("hi").say()); - } -} diff --git a/tests/integration/tests/maven-projects/test-failures/moduleA/pom.xml b/tests/integration/tests/maven-projects/test-failures/moduleA/pom.xml deleted file mode 100644 index 284f0e7e159..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleA/pom.xml +++ /dev/null @@ -1,10 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.test-failures</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>moduleA</artifactId>
- <packaging>jar</packaging>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/test-failures/moduleA/src/main/java/ch/hortis/sonar/samples/testFailures/moduleA/ClassA.java b/tests/integration/tests/maven-projects/test-failures/moduleA/src/main/java/ch/hortis/sonar/samples/testFailures/moduleA/ClassA.java deleted file mode 100644 index 2a8262cfb87..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleA/src/main/java/ch/hortis/sonar/samples/testFailures/moduleA/ClassA.java +++ /dev/null @@ -1,13 +0,0 @@ -package ch.hortis.sonar.samples.testFailures.moduleA; - -public class ClassA { - - public int a() { - return 3; - } - - public int b() { - return 4; - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/test-failures/moduleA/src/test/java/ch/hortis/sonar/samples/testFailures/moduleA/FailTest.java b/tests/integration/tests/maven-projects/test-failures/moduleA/src/test/java/ch/hortis/sonar/samples/testFailures/moduleA/FailTest.java deleted file mode 100644 index b81729b6633..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleA/src/test/java/ch/hortis/sonar/samples/testFailures/moduleA/FailTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package ch.hortis.sonar.samples.testFailures.moduleA; - -public class FailTest extends junit.framework.TestCase { - - public void testAWithFailure() { - assertEquals(true, false); - } - - public void testAWithError() { - if (true) throw new RuntimeException("Error test"); - } - - public void shouldNotFail() { - fail(); - } - - public void testWithSucces() throws InterruptedException { - Thread.sleep(5); - assertTrue(true); - } -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/test-failures/moduleB/pom.xml b/tests/integration/tests/maven-projects/test-failures/moduleB/pom.xml deleted file mode 100644 index cf9cc04bba8..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleB/pom.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonar.tests.test-failures</groupId>
- <artifactId>parent</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <artifactId>moduleB</artifactId>
- <packaging>jar</packaging>
- <dependencies>
- <dependency>
- <groupId>${pom.groupId}</groupId>
- <artifactId>moduleA</artifactId>
- <version>${pom.version}</version>
- </dependency>
- </dependencies>
-</project>
diff --git a/tests/integration/tests/maven-projects/test-failures/moduleB/src/main/java/ch/hortis/sonar/samples/compileFailures/moduleB/ClassB.java b/tests/integration/tests/maven-projects/test-failures/moduleB/src/main/java/ch/hortis/sonar/samples/compileFailures/moduleB/ClassB.java deleted file mode 100644 index 2f5b98211c3..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleB/src/main/java/ch/hortis/sonar/samples/compileFailures/moduleB/ClassB.java +++ /dev/null @@ -1,9 +0,0 @@ -package ch.hortis.sonar.samples.compileFailures.moduleB; - -public class ClassB { - - public void right() { - int i=2; - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/NoTest.java b/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/NoTest.java deleted file mode 100644 index 3b76045a5c2..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/NoTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package ch.hortis.sonar.samples.testFailures.moduleB; - -import org.junit.Test; -import org.junit.Ignore; - -public class NoTest { - -} diff --git a/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/SkippedTest.java b/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/SkippedTest.java deleted file mode 100644 index bc97f6c29c0..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/SkippedTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package ch.hortis.sonar.samples.testFailures.moduleB; - -import org.junit.Test; -import org.junit.Ignore; - -public class SkippedTest { - - @Ignore - @Test - public void skippedTest(){} - - @Test - public void normalTest(){} - -} diff --git a/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/SuccessTest.java b/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/SuccessTest.java deleted file mode 100644 index cf84eee49a2..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/moduleB/src/test/java/ch/hortis/sonar/samples/testFailures/moduleB/SuccessTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package ch.hortis.sonar.samples.testFailures.moduleB; - -import ch.hortis.sonar.samples.testFailures.moduleA.*; - -public class SuccessTest extends junit.framework.TestCase { - - public void testA() { - ClassA a = new ClassA(); - assertEquals(3, a.a()); - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/maven-projects/test-failures/pom.xml b/tests/integration/tests/maven-projects/test-failures/pom.xml deleted file mode 100644 index f8f01cb63bd..00000000000 --- a/tests/integration/tests/maven-projects/test-failures/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests.test-failures</groupId>
- <artifactId>parent</artifactId>
- <name>Sonar tests - test failures</name>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <modules>
- <module>moduleA</module>
- <module>moduleB</module>
- </modules>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file diff --git a/tests/integration/tests/pom.xml b/tests/integration/tests/pom.xml deleted file mode 100644 index 5c8aa42b899..00000000000 --- a/tests/integration/tests/pom.xml +++ /dev/null @@ -1,428 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>integration</artifactId> - <version>2.6-SNAPSHOT</version> - </parent> - - <artifactId>tests</artifactId> - <packaging>jar</packaging> - <name>Sonar :: Integration Tests :: Tests</name> - - <properties> - <sonar.runtimeVersion>${project.version}</sonar.runtimeVersion> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-dev-maven-plugin</artifactId> - <executions> - <execution> - <id>start-server</id> - <phase>pre-integration-test</phase> - <configuration> - <background>true</background> - <extensionsDir>${project.basedir}/target/extensions</extensionsDir> - <configBackup>${project.basedir}/integration-tests-backup.xml</configBackup> - <clean>true</clean> - <workDir>${project.build.directory}/it-work</workDir> - </configuration> - <goals> - <goal>start-war</goal> - </goals> - </execution> - <execution> - <id>analyze-projects</id> - <phase>pre-integration-test</phase> - <configuration> - <projectsDir>${project.basedir}/maven-projects</projectsDir> - </configuration> - <goals> - <goal>analyze</goal> - </goals> - </execution> - <execution> - <id>stop-server</id> - <phase>post-integration-test</phase> - <goals> - <goal>stop-war</goal> - </goals> - <configuration> - <workDir>${project.build.directory}/it-work</workDir> - </configuration> - </execution> - </executions> - </plugin> - - - <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.4</version> - <dependencies> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-nodeps</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-junit</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-trax</artifactId> - <version>1.7.1</version> - </dependency> - </dependencies> - <executions> - <execution> - <id>prepare-extensions</id> - <phase>package</phase> - <configuration> - <tasks> - <ant dir="${project.basedir}" inheritRefs="true"> - <property name="plugin_classpath" refid="maven.plugin.classpath" /> - <target name="prepare-extensions" /> - </ant> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>analyze-custom-projects</id> - <phase>pre-integration-test</phase> - <configuration> - <tasks unless="skip.analysis"> - <ant dir="${basedir}" inheritRefs="true"> - <target name="analyze-custom-projects" /> - </ant> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <configuration> - <systemProperties> - <property> - <name>sonar.url</name> - <value>http://localhost:9000</value> - </property> - </systemProperties> - </configuration> - <executions> - <execution> - <id>integration-test</id> - <goals> - <goal>integration-test</goal> - </goals> - </execution> - <execution> - <id>verify</id> - <goals> - <goal>verify</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>selenium-maven-plugin</artifactId> - <version>1.0.1</version> - <configuration> - <port>4444</port> - <browser>${selenium.browser}</browser> - <startURL>http://localhost:9000/</startURL> - <suite>src/test/selenium/all-tests.html</suite> - <slowResources>false</slowResources> - </configuration> - <executions> - <execution> - <id>start-selenium</id> - <phase>pre-integration-test</phase> - <goals> - <goal>start-server</goal> - </goals> - <configuration> - <background>true</background> - <logOutput>true</logOutput> - </configuration> - </execution> - <execution> - <id>stop-selenium</id> - <phase>post-integration-test</phase> - <goals> - <goal>stop-server</goal> - </goals> - </execution> - <execution> - <id>selenium-suite</id> - <phase>integration-test</phase> - <goals> - <goal>selenese</goal> - </goals> - <configuration> - <port>5555</port> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>checkstyle-extensions</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>pmd-extensions</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>sonar-it-reference-plugin</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-ws-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.hamcrest</groupId> - <artifactId>hamcrest-all</artifactId> - <version>1.1</version> - </dependency> - <dependency> - <groupId>commons-httpclient</groupId> - <artifactId>commons-httpclient</artifactId> - <version>3.1</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-plugin-api</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-testing-harness</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.4</version> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>1.4</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-nodeps</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-junit</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-trax</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.seleniumhq.selenium.client-drivers</groupId> - <artifactId>selenium-java-client-driver</artifactId> - <version>1.0.2</version> - </dependency> - </dependencies> - - <profiles> - - <!-- BROWSERS --> - - <profile> - <id>firefox</id> - <properties> - <selenium.browser>*firefox</selenium.browser> - </properties> - </profile> - <profile> - <id>ie</id> - <properties> - <selenium.browser>*iexplore</selenium.browser> - </properties> - </profile> - <profile> - <id>opera</id> - <properties> - <selenium.browser>*opera</selenium.browser> - </properties> - </profile> - <profile> - <id>safari</id> - <properties> - <selenium.browser>*custom /Applications/Safari.app/Contents/MacOS/Safari</selenium.browser> - </properties> - </profile> - - <!-- DATABASES --> - - <profile> - <id>derby</id> - <properties> - <sonar.database>derby</sonar.database> - <sonar.dropDatabase>false</sonar.dropDatabase> - <sonar.jdbc.url>jdbc:derby://localhost:1527/sonar;create=true</sonar.jdbc.url> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.jdbc.driver>org.apache.derby.jdbc.ClientDriver</sonar.jdbc.driver> - </properties> - </profile> - - <profile> - <id>mysql</id> - <properties> - <sonar.database>mysql</sonar.database> - <sonar.jdbc.rootUrl>jdbc:mysql://localhost:3306</sonar.jdbc.rootUrl> - <sonar.jdbc.rootUsername>root</sonar.jdbc.rootUsername> - <sonar.jdbc.rootPassword /> - <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url> - <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.dropDatabase>true</sonar.dropDatabase> - </properties> - </profile> - - <profile> - <id>postgresql</id> - <properties> - <sonar.database>postgresql</sonar.database> - <sonar.jdbc.rootUrl>jdbc:postgresql://localhost</sonar.jdbc.rootUrl> - <sonar.jdbc.rootUsername>postgres</sonar.jdbc.rootUsername> - <sonar.jdbc.rootPassword>postgres</sonar.jdbc.rootPassword> - <sonar.jdbc.url>jdbc:postgresql://localhost/sonar</sonar.jdbc.url> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.jdbc.driver>org.postgresql.Driver</sonar.jdbc.driver> - <sonar.dropDatabase>true</sonar.dropDatabase> - </properties> - </profile> - - <profile> - <id>mssql</id> - <properties> - <sonar.database>mssql</sonar.database> - <sonar.jdbc.rootUrl>jdbc:jtds:sqlserver://localhost</sonar.jdbc.rootUrl> - <sonar.jdbc.rootUsername>sa</sonar.jdbc.rootUsername> - <sonar.jdbc.rootPassword>passw0rd</sonar.jdbc.rootPassword> - <sonar.jdbc.url>jdbc:jtds:sqlserver://localhost;databaseName=SONAR;SelectMethod=Cursor</sonar.jdbc.url> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.jdbc.driver>net.sourceforge.jtds.jdbc.Driver</sonar.jdbc.driver> - <sonar.dropDatabase>true</sonar.dropDatabase> - </properties> - </profile> - - <profile> - <id>oracle</id> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.3.0</version> - </dependency> - </dependencies> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-dev-maven-plugin</artifactId> - <dependencies> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.3.0</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <version>2.1</version> - <executions> - <execution> - <id>copy</id> - - <!-- must be executed after the ant task that builds the directory target/extensions --> - <phase>package</phase> - <goals> - <goal>copy</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.3.0</version> - <type>jar</type> - <overWrite>false</overWrite> - <outputDirectory>${basedir}/target/extensions/jdbc-driver/oracle</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - <properties> - <sonar.database>oracle</sonar.database> - <sonar.jdbc.rootUrl>jdbc:oracle:thin:@localhost/XE</sonar.jdbc.rootUrl> - <sonar.jdbc.rootUsername>SYSTEM</sonar.jdbc.rootUsername> - <sonar.jdbc.rootPassword>password</sonar.jdbc.rootPassword> - <sonar.jdbc.url>jdbc:oracle:thin:@localhost/XE</sonar.jdbc.url> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.jdbc.driver>oracle.jdbc.driver.OracleDriver</sonar.jdbc.driver> - <sonar.dropDatabase>false</sonar.dropDatabase> - </properties> - </profile> - </profiles> - -</project>
\ No newline at end of file diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/GzipCompressionIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/GzipCompressionIT.java deleted file mode 100644 index b5bb1dcfd67..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/GzipCompressionIT.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.apache.commons.httpclient.HttpClient; -import org.apache.commons.httpclient.HttpMethod; -import org.apache.commons.httpclient.methods.GetMethod; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import java.io.IOException; - -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.*; - -public class GzipCompressionIT { - - private HttpClient client; - private HttpMethod method; - - @Before - public void before() { - client = new HttpClient(); - method = new GetMethod(ITUtils.getSonarURL()); - } - - @After - public void after(){ - method.releaseConnection(); - } - - @Test - public void responseShouldBeGzipped() throws IOException { - client.executeMethod(method); - int sizeWithoutGzip = method.getResponseBodyAsString().length(); - assertThat(sizeWithoutGzip, greaterThan(0)); - assertThat(method.getResponseHeader("Content-Encoding"), nullValue()); - - method.setRequestHeader("Accept-Encoding", "gzip, deflate"); - client.executeMethod(method); - int sizeWithGzip = method.getResponseBodyAsString().length(); - assertThat(sizeWithGzip, greaterThan(0)); - assertThat(method.getResponseHeader("Content-Encoding").getValue(), is("gzip")); - - assertThat(sizeWithGzip, lessThan(sizeWithoutGzip)); - } - -}
\ No newline at end of file diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ITUtils.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/ITUtils.java deleted file mode 100644 index fea9937e868..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ITUtils.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.apache.commons.lang.StringUtils; -import org.junit.Ignore; -import org.sonar.wsclient.Sonar; - -@Ignore -public final class ITUtils { - - private ITUtils() { - } - - public static Sonar createSonarWsClient() { - return Sonar.create(getSonarURL()); - } - - public static String getSonarURL() { - return StringUtils.defaultIfEmpty(System.getProperty("sonar.url"), "http://localhost:9000"); - } - - -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/JavaComplexityIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/JavaComplexityIT.java deleted file mode 100644 index 4d712570141..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/JavaComplexityIT.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.sonar.api.measures.CoreMetrics; -import org.sonar.wsclient.Sonar; -import org.sonar.wsclient.services.Measure; -import org.sonar.wsclient.services.ResourceQuery; - -import static org.hamcrest.core.Is.is; -import static org.hamcrest.core.IsNull.nullValue; -import static org.junit.Assert.assertThat; - -public class JavaComplexityIT { - private static Sonar sonar; - - @BeforeClass - public static void buildServer() { - sonar = ITUtils.createSonarWsClient(); - } - - @Test - public void testClasses() { - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.AnonymousClass", CoreMetrics.CLASSES_KEY).getIntValue(), is(1)); - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.ZeroComplexity", CoreMetrics.CLASSES_KEY).getIntValue(), is(1)); - assertThat(getMeasure("org.sonar.tests:java-complexity", CoreMetrics.CLASSES_KEY).getIntValue(), is(6)); - } - - @Test - public void testMethods() { - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.AnonymousClass", CoreMetrics.FUNCTIONS_KEY).getIntValue(), is(2)); - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.ZeroComplexity", CoreMetrics.FUNCTIONS_KEY).getIntValue(), is(0)); - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.ContainsInnerClasses", CoreMetrics.FUNCTIONS_KEY).getIntValue(), is(4)); - assertThat(getMeasure("org.sonar.tests:java-complexity", CoreMetrics.FUNCTIONS_KEY).getIntValue(), is(8)); - } - - @Test - public void testFileComplexity() { - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.Helloworld", CoreMetrics.COMPLEXITY_KEY).getIntValue(), is(6)); - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.ContainsInnerClasses", CoreMetrics.COMPLEXITY_KEY).getIntValue(), is(5)); - } - - @Test - public void testPackageComplexity() { - assertThat(getMeasure("org.sonar.tests:java-complexity:foo", CoreMetrics.COMPLEXITY_KEY).getIntValue(), is(15)); - } - - @Test - public void testProjectComplexity() { - assertThat(getMeasure("org.sonar.tests:java-complexity", CoreMetrics.COMPLEXITY_KEY).getIntValue(), is(15)); - } - - @Test - public void testAverageMethodComplexity() { - // complexity 6 / 2 methods - // BUG http://jira.codehaus.org/browse/SONAR-2152 - // => the complexity of the static block should not be included. Good value should be 4 / 2 = 2 - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.Helloworld", CoreMetrics.FUNCTION_COMPLEXITY_KEY).getValue(), is(3.0)); - - // complexity 5 / 4 methods. Real value is 1.25 but round up to 1.3 - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.ContainsInnerClasses", CoreMetrics.FUNCTION_COMPLEXITY_KEY).getValue(), is(1.3)); - - // (1 + 3) / 2 = 2 - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.AnonymousClass", CoreMetrics.FUNCTION_COMPLEXITY_KEY).getValue(), is(2.0)); - - // ContainsInnerClasses: 5/4 - // Helloworld: 6/2 - // AnonymousClass: 4/2 - // => 15/8=1.875 - // BUG http://jira.codehaus.org/browse/SONAR-2152 - // Should use sum of method complexity, not class complexity. - assertThat(getMeasure("org.sonar.tests:java-complexity:foo", CoreMetrics.FUNCTION_COMPLEXITY_KEY).getValue(), is(1.9)); - assertThat(getMeasure("org.sonar.tests:java-complexity", CoreMetrics.FUNCTION_COMPLEXITY_KEY).getValue(), is(1.9)); - } - - @Test - public void testAverageClassComplexity() { - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.Helloworld", CoreMetrics.CLASS_COMPLEXITY_KEY).getValue(), is(6.0)); - - // 1 + 1 + 3 => complexity 5/3 - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.ContainsInnerClasses", CoreMetrics.CLASS_COMPLEXITY_KEY).getValue(), is(1.7)); - - // 1 + 1 + 3 + 6 + 0 + 4 => 15/6 = 2.5 - assertThat(getMeasure("org.sonar.tests:java-complexity:foo", CoreMetrics.CLASS_COMPLEXITY_KEY).getValue(), is(2.5)); - } - - @Test - public void testDistributionOfClassComplexity() { - // 1 + 1 + 3 + 6 + 0 + 4 => 5 in range [0,5[ and 1 in range [5,10[ - assertThat(getMeasure("org.sonar.tests:java-complexity:foo", CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION_KEY).getData(), is("0=5;5=1;10=0;20=0;30=0;60=0;90=0")); - assertThat(getMeasure("org.sonar.tests:java-complexity", CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION_KEY).getData(), is("0=5;5=1;10=0;20=0;30=0;60=0;90=0")); - } - - @Test - public void testDistributionOfMethodComplexity() { - // ContainsInnerClasses: 1+ 1 + 2 + 1 - // Helloworld: 1 + 3 (static block is not a method) - // Anonymous class : 1 + 3 - assertThat(getMeasure("org.sonar.tests:java-complexity:foo", CoreMetrics.FUNCTION_COMPLEXITY_DISTRIBUTION_KEY).getData(), is("1=5;2=3;4=0;6=0;8=0;10=0;12=0")); - assertThat(getMeasure("org.sonar.tests:java-complexity", CoreMetrics.FUNCTION_COMPLEXITY_DISTRIBUTION_KEY).getData(), is("1=5;2=3;4=0;6=0;8=0;10=0;12=0")); - } - - @Test - public void shouldNotPersistDistributionOnFiles() { - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.Helloworld", CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION_KEY), nullValue()); - assertThat(getMeasure("org.sonar.tests:java-complexity:foo.Helloworld", CoreMetrics.FUNCTION_COMPLEXITY_DISTRIBUTION_KEY), nullValue()); - } - - private Measure getMeasure(String resourceKey, String metricKey) { - return sonar.find(ResourceQuery.createForMetrics(resourceKey, metricKey)).getMeasure(metricKey); - } -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ServerIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/ServerIT.java deleted file mode 100644 index c72ec7b0ac0..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ServerIT.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.junit.Test; -import org.sonar.wsclient.Sonar; -import org.sonar.wsclient.services.Server; -import org.sonar.wsclient.services.ServerQuery; - -import static org.hamcrest.Matchers.endsWith; -import static org.hamcrest.core.Is.is; -import static org.junit.Assert.assertThat; - -public class ServerIT { - - @Test - public void shouldGetVersion() { - Sonar sonar = ITUtils.createSonarWsClient(); - assertThat(sonar.find(new ServerQuery()).getVersion(), endsWith("-SNAPSHOT")); - } - - @Test - public void shouldGetStatus() { - Sonar sonar = ITUtils.createSonarWsClient(); - assertThat(sonar.find(new ServerQuery()).getStatus(), is(Server.Status.UP)); - } -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/Struts139IT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/Struts139IT.java deleted file mode 100644 index cd43308d8e2..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/Struts139IT.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import org.sonar.api.measures.CoreMetrics; -import org.sonar.wsclient.Sonar; -import org.sonar.wsclient.services.*; - -import java.util.Date; -import java.util.List; - -import static junit.framework.Assert.assertTrue; -import static org.hamcrest.core.Is.is; -import static org.hamcrest.Matchers.nullValue; -import static org.hamcrest.number.OrderingComparisons.greaterThan; -import static org.hamcrest.number.IsCloseTo.closeTo; -import static org.hamcrest.number.OrderingComparisons.greaterThanOrEqualTo; -import static org.hamcrest.number.OrderingComparisons.lessThan; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertThat; - -/** - * To execute these unit tests, just check-out Struts 1.3.9 from subversion: - * http://svn.apache.org/repos/asf/struts/struts1/tags/STRUTS_1_3_9 - * <p/> - * The quality profile to use is the default one configured in IT (see the file integration-tests-backup.xml). - */ -public class Struts139IT { - - private static Sonar sonar; - private static final String PROJECT_STRUTS = "org.apache.struts:struts-parent"; - private static final String MODULE_CORE = "org.apache.struts:struts-core"; - private static final String PACKAGE_ACTION = "org.apache.struts:struts-core:org.apache.struts.action"; - private static final String FILE_ACTION = "org.apache.struts:struts-core:org.apache.struts.action.Action"; - - @BeforeClass - public static void buildServer() { - sonar = ITUtils.createSonarWsClient(); - } - - @Test - public void shouldReturnAnalysisDate() { - Date date = sonar.find(new ResourceQuery(PROJECT_STRUTS)).getDate(); - assertNotNull(date); - assertThat(date.getYear(), greaterThanOrEqualTo(110)); // 1900 + 110 - } - - @Test - public void strutsIsAnalyzed() { - assertThat(sonar.find(new ResourceQuery(PROJECT_STRUTS)).getName(), is("Struts")); - assertThat(sonar.find(new ResourceQuery(PROJECT_STRUTS)).getVersion(), is("1.3.9")); - assertThat(sonar.find(new ResourceQuery(MODULE_CORE)).getName(), is("Struts Core")); - } - - @Test - public void testProjectViolationMeasures() { - 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(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)); - } - - @Test - public void testPackageViolationMeasures() { - assertThat(getPackageMeasure(CoreMetrics.VIOLATIONS_KEY).getValue(), closeTo(292.0, 50.0)); - assertThat(getPackageMeasure(CoreMetrics.BLOCKER_VIOLATIONS_KEY).getValue(), closeTo(0.0, 5.0)); - assertThat(getPackageMeasure(CoreMetrics.CRITICAL_VIOLATIONS_KEY).getValue(), closeTo(0.0, 5.0)); - assertThat(getPackageMeasure(CoreMetrics.MAJOR_VIOLATIONS_KEY).getValue(), closeTo(111.0, 20.0)); - assertThat(getPackageMeasure(CoreMetrics.MINOR_VIOLATIONS_KEY).getValue(), closeTo(0.0, 20.0)); - assertThat(getPackageMeasure(CoreMetrics.INFO_VIOLATIONS_KEY).getValue(), closeTo(181.0, 20.0)); - assertThat(getPackageMeasure(CoreMetrics.VIOLATIONS_DENSITY_KEY).getValue(), closeTo(87.8, 5.0)); - } - - - @Test - public void sizeMetrics() { - assertThat(getProjectMeasure("lines").getIntValue(), is(114621)); - assertThat(getProjectMeasure("ncloc").getIntValue(), is(50080)); - assertThat(getProjectMeasure("functions").getIntValue(), is(4234)); - assertThat(getProjectMeasure("accessors").getIntValue(), is(1133)); - assertThat(getProjectMeasure("classes").getIntValue(), is(518)); - assertThat(getProjectMeasure("packages").getIntValue(), is(49)); - assertThat(getProjectMeasure("files").getIntValue(), is(494)); - assertThat(getCoreModuleMeasure("files").getIntValue(), is(134)); - assertThat(getPackageMeasure("files").getIntValue(), is(21)); - assertThat(getFileMeasure("files").getIntValue(), is(1)); - } - - @Test - public void unitTestMetrics() { - assertThat(getProjectMeasure("coverage").getValue(), is(14.7)); - assertThat(getProjectMeasure("line_coverage").getValue(), is(15.4)); - assertThat(getProjectMeasure("branch_coverage").getValue(), is(12.8)); - assertThat(getProjectMeasure("tests").getIntValue(), is(323)); - assertThat(getProjectMeasure("test_execution_time").getIntValue(), greaterThan(1000)); - assertThat(getProjectMeasure("test_errors").getIntValue(), is(0)); - assertThat(getProjectMeasure("test_failures").getIntValue(), is(0)); - assertThat(getProjectMeasure("skipped_tests").getIntValue(), is(0)); - assertThat(getProjectMeasure("test_success_density").getValue(), is(100.0)); - - } - - @Test - public void complexityMetrics() { - assertThat(getProjectMeasure("complexity").getIntValue(), is(11140)); - assertThat(getProjectMeasure("statements").getIntValue(), is(21896)); - assertThat(getProjectMeasure("class_complexity").getValue(), is(21.5)); - assertThat(getProjectMeasure("function_complexity").getValue(), is(2.6)); - } - - @Test - public void classComplexityDistribution() throws Exception { - assertThat(sonar.find(ResourceQuery.createForMetrics("org.apache.struts:struts-core:org.apache.struts.config", "class_complexity_distribution")).getMeasure("class_complexity_distribution").getData(), is("0=10;5=3;10=2;20=1;30=4;60=4;90=1")); - assertThat(getCoreModuleMeasure("class_complexity_distribution").getData(), is("0=47;5=26;10=24;20=12;30=18;60=9;90=10")); - assertThat(getProjectMeasure("class_complexity_distribution").getData(), is("0=171;5=90;10=84;20=53;30=69;60=34;90=17")); - } - - @Test - public void functionComplexityDistribution() throws Exception { - assertThat(sonar.find(ResourceQuery.createForMetrics("org.apache.struts:struts-core:org.apache.struts.config", "function_complexity_distribution")).getMeasure("function_complexity_distribution").getData(), is("1=186;2=88;4=11;6=12;8=7;10=2;12=8")); - } - - @Test - public void shouldNotPersistComplexityDistributionsOnFiles() { - assertThat(sonar.find(ResourceQuery.createForMetrics("org.apache.struts:struts-core:org.apache.struts.config.ConfigRuleSet", "function_complexity_distribution", "class_complexity_distribution")).getMeasures().size(), is(0)); - } - - @Test - public void lcom4() { - assertThat(getProjectMeasure("lcom4").getValue(), greaterThan(1.5)); - assertThat(getProjectMeasure("lcom4").getValue(), lessThan(2.0)); - assertThat(getFileMeasure("lcom4").getValue(), greaterThan(10.0)); - } - - @Test - public void rfc() { - assertThat(getProjectMeasure("rfc").getValue(), greaterThan(10.0)); - assertThat(getProjectMeasure("rfc").getValue(), lessThan(30.0)); - } - - @Test - public void designMeaures() { - assertThat(getCoreModuleMeasure("package_cycles").getIntValue(), greaterThan(10)); - assertThat(getCoreModuleMeasure("package_cycles").getIntValue(), lessThan(50)); - - assertThat(getCoreModuleMeasure("package_feedback_edges").getIntValue(), greaterThan(3)); - assertThat(getCoreModuleMeasure("package_feedback_edges").getIntValue(), lessThan(10)); - - assertThat(getCoreModuleMeasure("package_tangles").getIntValue(), greaterThan(10)); - assertThat(getCoreModuleMeasure("package_tangles").getIntValue(), lessThan(50)); - - assertThat(sonar.find(ResourceQuery.createForMetrics(PROJECT_STRUTS, "dit", "noc")).getMeasures().size(), is(0)); - } - - @Test - public void shouldGetDetailsOfCoverageHits() { - Resource resource = sonar.find(ResourceQuery.createForMetrics("org.apache.struts:struts-core:org.apache.struts.action.ActionForward", CoreMetrics.COVERAGE_LINE_HITS_DATA_KEY)); - Measure coverageData = resource.getMeasure(CoreMetrics.COVERAGE_LINE_HITS_DATA_KEY); - assertNotNull(coverageData); - assertThat(coverageData.getData().length(), greaterThan(10)); - assertTrue(coverageData.getData().matches("(\\d+=\\d+;{0,1})+")); - } - - @Test - public void dependencyTree() { - List<DependencyTree> trees = sonar.findAll(DependencyTreeQuery.createForProject(PROJECT_STRUTS)); - assertThat(trees.size(), is(0)); - - trees = sonar.findAll(DependencyTreeQuery.createForProject(MODULE_CORE)); - assertThat(trees.size(), greaterThan(0)); - assertThat(trees.get(0).getResourceName(), is("antlr:antlr")); - } - - @Test - public void versionEvent() { - EventQuery query = new EventQuery(PROJECT_STRUTS); - query.setCategories(new String[]{"Version"}); - List<Event> events = sonar.findAll(query); - assertThat(events.size(), is(1)); - - Event version = events.get(0); - assertThat(version.getName(), is("1.3.9")); - assertThat(version.getCategory(), is("Version")); - } - - @Test - @Ignore("Not fixed. See http://jira.codehaus.org/browse/SONAR-2041") - public void unknownMetric() { - assertThat(getProjectMeasure("notfound"), nullValue()); - assertThat(getCoreModuleMeasure("notfound"), nullValue()); - assertThat(getPackageMeasure("notfound"), nullValue()); - assertThat(getFileMeasure("notfound"), nullValue()); - } - - private Measure getFileMeasure(String metricKey) { - return sonar.find(ResourceQuery.createForMetrics(FILE_ACTION, metricKey)).getMeasure(metricKey); - } - - private Measure getCoreModuleMeasure(String metricKey) { - return sonar.find(ResourceQuery.createForMetrics(MODULE_CORE, metricKey)).getMeasure(metricKey); - } - - private Measure getProjectMeasure(String metricKey) { - return sonar.find(ResourceQuery.createForMetrics(PROJECT_STRUTS, metricKey)).getMeasure(metricKey); - } - - private Measure getPackageMeasure(String metricKey) { - return sonar.find(ResourceQuery.createForMetrics(PACKAGE_ACTION, metricKey)).getMeasure(metricKey); - } -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/UpdateCenterIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/UpdateCenterIT.java deleted file mode 100644 index 2a8ced7122e..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/UpdateCenterIT.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.apache.commons.lang.StringUtils; -import org.junit.Test; -import org.sonar.wsclient.Sonar; -import org.sonar.wsclient.services.Plugin; -import org.sonar.wsclient.services.UpdateCenterQuery; - -import java.util.List; - -import static junit.framework.Assert.assertNotNull; -import static org.hamcrest.Matchers.startsWith; -import static org.hamcrest.core.Is.is; -import static org.hamcrest.number.OrderingComparisons.greaterThan; -import static org.junit.Assert.assertThat; - -public class UpdateCenterIT { - - @Test - public void shouldGetInstalledPlugins() { - Sonar sonar = ITUtils.createSonarWsClient(); - List<Plugin> plugins = sonar.findAll(UpdateCenterQuery.createForInstalledPlugins()); - assertThat(plugins.size(), greaterThan(0)); - - Plugin referencePlugin = findReferencePlugin(plugins, "itreference"); - assertNotNull(referencePlugin); - assertThat(referencePlugin.getName(), is("Sonar :: Integration Tests :: Reference Plugin")); - assertThat(referencePlugin.getVersion(), startsWith("2.")); - } - - private Plugin findReferencePlugin(List<Plugin> plugins, String pluginKey) { - for (Plugin plugin : plugins) { - if (StringUtils.equals(pluginKey, plugin.getKey())) { - return plugin; - } - } - return null; - } - -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/VariationsIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/VariationsIT.java deleted file mode 100644 index 501fb2969bd..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/VariationsIT.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.sonar.wsclient.Sonar; -import org.sonar.wsclient.services.Resource; -import org.sonar.wsclient.services.ResourceQuery; - -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.notNullValue; -import static org.hamcrest.number.OrderingComparisons.greaterThan; -import static org.junit.Assert.assertThat; - -public class VariationsIT { - - private static final String TIMEMACHINE_PROJECT = "org.sonar.tests:violations-timemachine"; - - private static Sonar sonar; - - @BeforeClass - public static void buildServer() { - sonar = ITUtils.createSonarWsClient(); - } - - @Test - public void checkBaseVariations() { - - Resource project = getProject("files", "ncloc", "violations"); - - // period 1 : previous analysis - assertThat(project.getPeriod1Mode(), is("previous_analysis")); - assertThat(project.getPeriod1Date(), notNullValue()); - - // variations from previous analysis - assertThat(project.getMeasure("files").getVariation1(), is(1.0)); - assertThat(project.getMeasure("ncloc").getVariation1(), is(8.0)); - assertThat(project.getMeasure("violations").getVariation1(), greaterThan(0.0)); - } - - private Resource getProject(String... metricKeys) { - return sonar.find(ResourceQuery.createForMetrics(TIMEMACHINE_PROJECT, metricKeys).setIncludeTrends(true)); - } - -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java deleted file mode 100644 index f1931a4e4e2..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/ViolationsTimeMachineIT.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.sonar.api.measures.CoreMetrics; -import org.sonar.wsclient.Sonar; -import org.sonar.wsclient.services.*; - -import java.util.Date; -import java.util.List; - -import static org.hamcrest.CoreMatchers.nullValue; -import static org.hamcrest.core.Is.is; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertThat; - -public class ViolationsTimeMachineIT { - - private static Sonar sonar; - private static final String PROJECT = "org.sonar.tests:violations-timemachine"; - private static final String FILE = "org.sonar.tests:violations-timemachine:org.sonar.tests.violationstimemachine.Hello"; - - @BeforeClass - public static void buildServer() { - sonar = ITUtils.createSonarWsClient(); - } - - @Test - public void projectIsAnalyzed() { - assertThat(sonar.find(new ResourceQuery(PROJECT)).getName(), is("Violations timemachine")); - assertThat(sonar.find(new ResourceQuery(PROJECT)).getVersion(), is("1.0-SNAPSHOT")); - assertThat(sonar.find(new ResourceQuery(PROJECT)).getDate().getMonth(), is(10)); // November - } - - @Test - public void testHistoryOfViolations() { - TimeMachineQuery query = TimeMachineQuery.createForMetrics(PROJECT, - CoreMetrics.BLOCKER_VIOLATIONS_KEY, - CoreMetrics.CRITICAL_VIOLATIONS_KEY, - CoreMetrics.MAJOR_VIOLATIONS_KEY, - CoreMetrics.MINOR_VIOLATIONS_KEY, - CoreMetrics.INFO_VIOLATIONS_KEY); - TimeMachine timemachine = sonar.find(query); - assertThat(timemachine.getCells().length, is(2)); - - TimeMachineCell cell1 = timemachine.getCells()[0]; - TimeMachineCell cell2 = timemachine.getCells()[1]; - - assertThat(cell1.getDate().getMonth(), is(9)); - assertThat(cell1.getValues(), is(new Object[]{0L, 0L, 3L, 4L, 0L})); - - assertThat(cell2.getDate().getMonth(), is(10)); - assertThat(cell2.getValues(), is(new Object[]{0L, 0L, 5L, 4L, 0L})); - } - - @Test - public void testHistoryOfMeasures() { - TimeMachineQuery query = TimeMachineQuery.createForMetrics(PROJECT, - CoreMetrics.LINES_KEY,//int - CoreMetrics.VIOLATIONS_DENSITY_KEY // double - ); - TimeMachine timemachine = sonar.find(query); - assertThat(timemachine.getCells().length, is(2)); - - TimeMachineCell cell1 = timemachine.getCells()[0]; - TimeMachineCell cell2 = timemachine.getCells()[1]; - - assertThat(cell1.getDate().getMonth(), is(9)); - assertThat(cell1.getValues(), is(new Object[]{30L, 38.1})); - - assertThat(cell2.getDate().getMonth(), is(10)); - assertThat(cell2.getValues(), is(new Object[]{41L, 34.5})); - } - - @Test - public void correctLinesAndDates() { - ViolationQuery query = ViolationQuery.createForResource(FILE).setSeverities("MAJOR"); - List<Violation> violations = sonar.findAll(query); - - assertThat(violations.get(0).getLine(), is(8)); - assertThat(violations.get(0).getCreatedAt().getMonth(), is(9)); // old violation - - assertThat(violations.get(1).getLine(), is(13)); - assertThat(violations.get(1).getCreatedAt().getMonth(), is(9)); // old violation - - assertThat(violations.get(2).getLine(), is(18)); - assertThat(violations.get(2).getCreatedAt().getMonth(), is(10)); // new violation - } - - // Specific cases for timemachine web service - - @Test - public void unknownMetrics() { - TimeMachine timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT, "notfound")); - assertThat(timemachine.getCells().length, is(0)); - - timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT, CoreMetrics.LINES_KEY, "notfound")); - assertThat(timemachine.getCells().length, is(2)); - for (TimeMachineCell cell : timemachine.getCells()) { - assertThat(cell.getValues().length, is(1)); - assertThat(cell.getValues()[0], is(Long.class)); - } - - timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT)); - assertThat(timemachine.getCells().length, is(0)); - } - - @Test - public void noDataForInterval() { - Date date = new Date(); - TimeMachine timemachine = sonar.find(TimeMachineQuery.createForMetrics(PROJECT, CoreMetrics.LINES_KEY) - .setFrom(date) - .setTo(date)); - assertThat(timemachine.getCells().length, is(0)); - } - - @Test - public void unknownResource() { - TimeMachine timemachine = sonar.find(TimeMachineQuery.createForMetrics("notfound:notfound", CoreMetrics.LINES_KEY)); - assertNull(timemachine); - } -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/CustomizeComponentsPageIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/CustomizeComponentsPageIT.java deleted file mode 100644 index aaacfc98a9c..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/CustomizeComponentsPageIT.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration.selenium; - -import org.junit.Test; - -import static junit.framework.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class CustomizeComponentsPageIT extends SonarTestCase { - - @Test - public void defaultTreemapIsCustomizableByAdministrators() { - loginAsAdministrator(); - selenium.open("/components/index/org.apache.struts:struts-parent"); - - // configure is OFF - assertFalse(selenium.isElementPresent("set_default_treemap")); - - // configure is ON - clickAndWait("configure-on"); - assertTrue(selenium.isElementPresent("set_default_treemap")); - } - - @Test - public void notCustomizableByAnonymous() { - loginAsAnonymous(); - selenium.open("/components/index/org.apache.struts:struts-parent"); - assertFalse(selenium.isElementPresent("configure-on")); - } -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/DeployUIExtensionsIT.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/DeployUIExtensionsIT.java deleted file mode 100644 index 96f663578b3..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/DeployUIExtensionsIT.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration.selenium; - -import org.junit.Test; - -import static org.junit.Assert.assertTrue; - -public class DeployUIExtensionsIT extends SonarTestCase { - - @Test - public void gwtPageIsDisplayedInHomeSidebar() throws Exception { - selenium.open("/"); - assertTrue(selenium.getText("sidebar").contains("GWT sample")); - selenium.click("link=GWT sample"); - selenium.waitForPageToLoad("30000"); - assertTrue(selenium.isTextPresent("this is a GWT sample")); - } - - @Test - public void displayHhtmlFooter() throws Exception { - selenium.open("/"); - assertTrue(selenium.getText("ft").contains("Sample footer")); - } - -} diff --git a/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/SonarTestCase.java b/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/SonarTestCase.java deleted file mode 100644 index 65b0a237552..00000000000 --- a/tests/integration/tests/src/test/java/org/sonar/tests/integration/selenium/SonarTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.integration.selenium; - -import com.thoughtworks.selenium.DefaultSelenium; -import org.junit.After; -import org.junit.Before; -import org.sonar.tests.integration.ITUtils; - -/** - * To execute selenium tests in IDE, you have to run the selenium server first : - * mvn selenium:start-server - */ -public abstract class SonarTestCase { - protected DefaultSelenium selenium; - - @Before - public void before() throws Exception { - // TODO the browser and the url must be configurable - selenium = new DefaultSelenium("localhost", 4444, "*firefox", ITUtils.getSonarURL()); - selenium.start(); - } - - @After - public void after() { - selenium.stop(); - } - - protected void login(String login, String password) { - logout(); - selenium.open("/sessions/new"); - selenium.type("login", login); - selenium.type("password", password); - selenium.click("commit"); - selenium.waitForPageToLoad("30000"); - } - - protected void logout() { - selenium.open("/sessions/logout"); - } - - protected void loginAsAdministrator() { - login("admin", "admin"); - } - - protected void loginAsAnonymous() { - logout(); - } - - protected void clickAndWait(String url) { - selenium.click(url); - selenium.waitForPageToLoad("30000"); - } -} diff --git a/tests/integration/tests/src/test/selenium/SONAR-1032-ws-api.html b/tests/integration/tests/src/test/selenium/SONAR-1032-ws-api.html deleted file mode 100644 index a4036517c22..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-1032-ws-api.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-1032-ws-api</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1032-ws-api</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/api/plugins/RubyWebService</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Rest method output</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/api/plugins/RubyWebService/custom_method</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Custom method output</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-1074-commented-code.html b/tests/integration/tests/src/test/selenium/SONAR-1074-commented-code.html deleted file mode 100644 index 183894187e0..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-1074-commented-code.html +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> - <title>Test Suite</title> -</head> -<body> -<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody> -<tr><td><b>Test Suite</b></td></tr> -<tr><td><a href="SONAR-1074-commented-code.html">SONAR-1074-commented-code</a></td></tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-1709-static-resources.html b/tests/integration/tests/src/test/selenium/SONAR-1709-static-resources.html deleted file mode 100644 index 0e410915668..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-1709-static-resources.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-1709-static-resources</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1709-static-resources</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/static/itreference/file.html</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>//body</td> - <td>Text from static resource</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-1772-findbugs-violations.html b/tests/integration/tests/src/test/selenium/SONAR-1772-findbugs-violations.html deleted file mode 100644 index aea5ee7912b..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-1772-findbugs-violations.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-1772-findbugs-violations</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1772-findbugs-violations</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:findbugs</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>resource_profile</td> - <td>SONAR-1772</td> -</tr> -<tr> - <td>assertText</td> - <td>m_violations</td> - <td>1</td> -</tr> -<tr> - <td>assertText</td> - <td>m_critical_violations</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_major_violations</td> - <td>1</td> -</tr> -<tr> - <td>assertText</td> - <td>m_minor_violations</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_blocker_violations</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_info_violations</td> - <td>0</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-222_maven_extensions.html b/tests/integration/tests/src/test/selenium/SONAR-222_maven_extensions.html deleted file mode 100644 index 9d3b8b6c3e6..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-222_maven_extensions.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-222_maven_extensions</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-222_maven_extensions</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:maven-extensions</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>10</td> -</tr> -<tr> - <td>assertText</td> - <td>hd</td> - <td>glob:*maven extensions*</td> -</tr> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:maven-extensions</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:*Blocker*0*</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-594-jee-sample.html b/tests/integration/tests/src/test/selenium/SONAR-594-jee-sample.html deleted file mode 100644 index aa0b79967f6..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-594-jee-sample.html +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <link rel="selenium.base" href="http://localhost:9000/"/> - <title>SONAR-594-jee-sample</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">SONAR-594-jee-sample</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.jee:parent</td> - <td></td> - </tr> - <tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>16</td> - </tr> - <tr> - <td>open</td> - <td>/components/index/org.sonar.tests.jee:parent</td> - <td></td> - </tr> - <tr> - <td>assertText</td> - <td>treemap</td> - <td>glob:*java-module*</td> - </tr> - <tr> - <td>assertText</td> - <td>treemap</td> - <td>glob:*ejb-module*</td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-594-no-violations.html b/tests/integration/tests/src/test/selenium/SONAR-594-no-violations.html deleted file mode 100644 index 9a3641c29eb..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-594-no-violations.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-594-no-violations</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-594-no-violations</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:SONAR-594-no-violations</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_violations</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_violations_density</td> - <td>100.0%</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Blocker</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_blocker_violations</td> - <td>0</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html b/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html deleted file mode 100644 index 12235c74470..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-684-encode-violation-messages</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-684-encode-violation-messages</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:single-classes</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=SONAR684EncodeViolationMessages</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*SONAR684EncodeViolationMessages*</td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*Avoid Duplicate Literals*</td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*The String literal "<select>" appears*</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-767-pmd-close-resource-rule.html b/tests/integration/tests/src/test/selenium/SONAR-767-pmd-close-resource-rule.html deleted file mode 100644 index 737864fe725..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-767-pmd-close-resource-rule.html +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <link rel="selenium.base" href="http://localhost:9000/"/> - <title>SONAR-767-pmd-close-resource-rule</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">SONAR-767-pmd-close-resource-rule</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:SONAR-767-pmd-close-resource-rule</td> - <td></td> - </tr> - <tr> - <td>assertTextPresent</td> - <td>SONAR-767-pmd-close-resource-rule</td> - <td></td> - </tr> - <tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*ConnectionIsNotClosed*1*</td> - </tr> - <tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*ResourceIsNotClosed*1*</td> - </tr> - <tr> - <td>assertText</td> - <td>col_DIR</td> - <td>glob:*org.sonar.tests*2*</td> - </tr> - <tr> - <td>assertText</td> - <td>col_rules</td> - <td>glob:*Close Resource*2*</td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-787-checkstyle-SuppressionCommentFilter.html b/tests/integration/tests/src/test/selenium/SONAR-787-checkstyle-SuppressionCommentFilter.html deleted file mode 100644 index a6521ebf2b3..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-787-checkstyle-SuppressionCommentFilter.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-787-checkstyle-SuppressionCommentFilter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-787-checkstyle-SuppressionCommentFilter</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:SONAR-787-checkstyle-SuppressionCommentFilter</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>resource_profile</td> - <td>SONAR-787-checkstyle-SuppressionCommentFilter</td> -</tr> -<tr> - <td>assertText</td> - <td>m_violations</td> - <td>1</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_violations</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*IgnoreCheckstyleFalsePositives*1*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/SONAR-981-clover-skip.html b/tests/integration/tests/src/test/selenium/SONAR-981-clover-skip.html deleted file mode 100644 index 594dcb67d16..00000000000 --- a/tests/integration/tests/src/test/selenium/SONAR-981-clover-skip.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-981-clover-skip</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-981-clover-skip</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.clover2skip:parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>12</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/alerts/create_and_delete_alert_on_lines_of_code.html b/tests/integration/tests/src/test/selenium/alerts/create_and_delete_alert_on_lines_of_code.html deleted file mode 100644 index d7a6be5d732..00000000000 --- a/tests/integration/tests/src/test/selenium/alerts/create_and_delete_alert_on_lines_of_code.html +++ /dev/null @@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>create_and_delete_alert_on_lines_of_code</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create_and_delete_alert_on_lines_of_code</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Integration%20tests</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Alerts</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>alert_metric_id</td> - <td>label=Lines of code</td> -</tr> -<tr> - <td>waitForSelectedLabel</td> - <td>xpath=//div[@id='new_alert_form']//select[@id='alert_operator']</td> - <td>is greater than</td> -</tr> -<tr> - <td>type</td> - <td>xpath=//div[@id='new_alert_form']//input[@id='alert_value_warning']</td> - <td>500</td> -</tr> -<tr> - <td>click</td> - <td>submit_create</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Alert is created</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>alerts</td> - <td>glob:*Lines of code*is greater than*</td> -</tr> -<tr> - <td>click</td> - <td>delete_Lines%20of%20code</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure?</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Alert is deleted</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>alerts</td> - <td>Lines of code</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/alerts/should_validate_alert_on_creation.html b/tests/integration/tests/src/test/selenium/alerts/should_validate_alert_on_creation.html deleted file mode 100644 index cd18726c4ca..00000000000 --- a/tests/integration/tests/src/test/selenium/alerts/should_validate_alert_on_creation.html +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_validate_alert_on_creation</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_validate_alert_on_creation</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Integration%20tests</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Alerts</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>submit_create</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>//div[@class='error']</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/all-tests.html b/tests/integration/tests/src/test/selenium/all-tests.html deleted file mode 100644 index b42288b17e6..00000000000 --- a/tests/integration/tests/src/test/selenium/all-tests.html +++ /dev/null @@ -1,639 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> - <title>Test Suite</title> -</head> -<body> -<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"> -<tbody> -<tr> - <td><b>Test Suite</b></td> -</tr> - - - -<tr> - <td><a href="filters/anonymous-default-filters.html">filters/anonymous-default-filters</a></td> -</tr> -<tr> - <td><a href="filters/set-favourite-project.html">filters/set-favourite-project</a></td> -</tr> -<tr> - <td><a href="filters/treemap-filter.html">filters/treemap-filter</a></td> -</tr> -<tr> - <td><a href="filters/create-and-delete-filter.html">filters/create-and-delete-filter</a></td> -</tr> -<tr> - <td><a href="filters/create-advanced-filter.html">filters/create-advanced-filter</a></td> -</tr> -<tr> - <td><a href="filters/default-filters-console.html">filters/default-filters-console</a></td> -</tr> -<tr> - <td><a href="filters/default-filters-console-for-admins-only.html">filters/default-filters-console-for-admins-only</a></td> -</tr> -<tr> - <td><a href="plugins/settings_on_core_plugins.html">plugins/settings_on_core_plugins</a></td> -</tr> -<tr> - <td><a href="ruby-api.html">ruby-api</a></td> -</tr> -<tr> - <td><a href="dependencies/no_results.html">dependencies/no_results</a></td> -</tr> -<tr> - <td><a href="dependencies/search_subprojects.html">dependencies/search_subprojects</a></td> -</tr> -<tr> - <td><a href="dependencies/standard_usage.html">dependencies/standard_usage</a></td> -</tr> -<tr> - <td><a href="dependencies/too_short_search.html">dependencies/too_short_search</a></td> -</tr> - -<tr> - <td><a href="contextualized-breadcrumb.html">contextualized-breadcrumb</a></td> -</tr> -<tr> - <td><a href="SONAR-222_maven_extensions.html">SONAR-222_maven_extensions</a></td> -</tr> -<tr> - <td><a href="SONAR-594-no-violations.html">SONAR-594-no-violations</a></td> -</tr> -<tr> - <td><a href="SONAR-594-jee-sample.html">SONAR-594-jee-sample</a></td> -</tr> -<tr> - <td><a href="SONAR-767-pmd-close-resource-rule.html">SONAR-767-pmd-close-resource-rule</a></td> -</tr> -<tr> - <td><a href="SONAR-787-checkstyle-SuppressionCommentFilter.html">SONAR-787-checkstyle-SuppressionCommentFilter</a> - </td> -</tr> -<tr> - <td><a href="SONAR-684-encode-violation-messages.html">SONAR-684-encode-violation-messages</a></td> -</tr> -<tr> - <td><a href="SONAR-1074-commented-code.html">SONAR-1074-commented-code</a></td> -</tr> -<tr> - <td><a href="SONAR-981-clover-skip.html">SONAR-981-clover-skip</a></td> -</tr> -<tr> - <td><a href="SONAR-1032-ws-api.html">SONAR-1032-ws-api</a></td> -</tr> -<tr> - <td><a href="SONAR-1772-findbugs-violations.html">SONAR-1772-findbugs-violations</a></td> -</tr> -<tr> - <td><a href="SONAR-1709-static-resources.html">SONAR-1709-static-resources</a></td> -</tr> - -<tr> - <td><a href="many-source-dirs.html">many-source-dirs</a></td> -</tr> - -<tr> - <td><a - href="alerts/create_and_delete_alert_on_lines_of_code.html">alerts/create_and_delete_alert_on_lines_of_code</a> - </td> -</tr> -<tr> - <td><a href="alerts/should_validate_alert_on_creation.html">alerts/should_validate_alert_on_creation</a></td> -</tr> - -<tr> - <td><a - href="profiles/SONAR-560_remove_a_rule_from_sonar_way.html">profiles/SONAR-560_remove_a_rule_from_sonar_way</a> - </td> -</tr> - -<tr> - <td><a href="duplicated-lines/drilldown-without-ratio.html">duplicated lines - drilldown without ratio</a></td> -</tr> -<tr> - <td><a href="footer-data.html">footer data</a></td> -</tr> -<tr> - <td><a href="dashboard/deprecated-url-format.html">dashboard/deprecated-url-format</a></td> -</tr> -<tr> - <td><a href="dashboard/SONAR-601-project-without-measures.html">dashboard/SONAR-601-project-without-measures</a> - </td> -</tr> -<tr> - <td><a href="events/create_event_with_special_characters.html">events create_event_with_special_characters</a></td> -</tr> -<tr> - <td><a href="events/create_event_without_snapshot.html">events/create_event_without_snapshot</a></td> -</tr> -<tr> - <td><a href="events/no_events_widget_on_module_and_package.html">events/no_events_widget_on_module_and_package</a> - </td> -</tr> -<tr> - <td><a href="event_categories/should_create_category.html">event_categories should_create_category</a></td> -</tr> -<tr> - <td><a href="event_categories/should_delete_category.html">event_categories should_delete_category</a></td> -</tr> -<tr> - <td><a href="event_categories/should_edit_category.html">event_categories should_edit_category</a></td> -</tr> -<tr> - <td><a href="event_categories/should_validate_category.html">event_categories should_validate_category</a></td> -</tr> - -<tr> - <td><a href="exclusions/SONAR-1115-do-not-exclude-unit-tests.html">exclusions/SONAR-1115-do-not-exclude-unit-tests</a></td> -</tr> -<tr> - <td><a href="exclusions/cobertura_exclusions.html">exclusions/cobertura_exclusions</a></td> -</tr> -<tr> - <td><a href="exclusions/cpd_exclusions.html">exclusions/cpd_exclusions</a></td> -</tr> -<tr> - <td><a href="exclusions/javancss_exclusions.html">exclusions/javancss_exclusions</a></td> -</tr> -<tr> - <td><a href="exclusions/set_exclusions_from_project_settings_page.html">exclusions/set_exclusions_from_project_settings_page</a> - </td> -</tr> - -<tr> - <td><a - href="sourceviewers/SONAR-582-violations-without-lines.html">sourceviewers/SONAR-582-violations-without-lines</a> - </td> -</tr> -<tr> - <td><a href="sourceviewers/SONAR-517_violations_drilldown.html">sourceviewers/SONAR-517_violations_drilldown</a> - </td> -</tr> -<tr> - <td><a href="sourceviewers/SONAR-659-test_success_percentage.html">sourceviewers/SONAR-659-test_success_percentage</a> - </td> -</tr> -<tr> - <td><a href="sourceviewers/SONAR-538-duplications_viewer.html">sourceviewers/SONAR-538-duplications_viewer</a></td> -</tr> -<tr> - <td><a href="sourceviewers/SONAR-300-tests_details.html">sourceviewers/SONAR-300-tests_details</a></td> -</tr> -<tr> - <td><a href="sourceviewers/SONAR-1007_violations_tab_when_no_violations.html">sourceviewers/SONAR-1007_violations_tab_when_no_violations</a> - </td> -</tr> -<tr> - <td><a href="hotspots/function_complexity_hotspot.html">hotspots/function_complexity_hotspot</a></td> -</tr> -<tr> - <td><a href="hotspots/no_measures.html">hotspots/no_measures</a></td> -</tr> -<tr> - <td><a href="hotspots/rules_violations_hotspot.html">hotspots/rules_violations_hotspot</a></td> -</tr> -<tr> - <td><a href="hotspots/violations_hotspot.html">hotspots/violations_hotspot</a></td> -</tr> -<tr> - <td><a href="hotspots/test_execution_time_hotspot.html">hotspots/test_execution_time_hotspot</a></td> -</tr> -<tr> - <td><a href="hotspots/ccn_hotspot.html">hotspots/ccn_hotspot</a></td> -</tr> -<tr> - <td><a href="hotspots/duplicated_lines_hotspot.html">hotspots/duplicated_lines_hotspot</a></td> -</tr> -<tr> - <td><a href="hotspots/popup-on-rules.html">hotspots/popup-on-rules</a></td> -</tr> - -<tr> - <td><a href="libraries/display_tests.html">libraries/display_tests</a></td> -</tr> -<tr> - <td><a href="libraries/keyword_filter.html">libraries/keyword_filter</a></td> -</tr> -<tr> - <td><a href="libraries/module_libraries.html">libraries/module_libraries</a></td> -</tr> - -<tr> - <td><a href="i18n/default_locale_is_english.html">i18n/default_locale_is_english</a></td> -</tr> -<tr> - <td><a href="i18n/french-france.html">i18n/french-france</a></td> -</tr> -<tr> - <td><a href="i18n/french-switzerland.html">i18n/french-switzerland</a></td> -</tr> -<tr> - <td><a href="i18n/french.html">i18n/french</a></td> -</tr> -<tr> - <td><a href="i18n/japanese_duplications.html">i18n/japanese_duplications</a></td> -</tr> -<tr> - <td><a href="i18n/japanese_sources.html">i18n/japanese_sources</a></td> -</tr> -<tr> - <td><a href="branch.html">branch</a></td> -</tr> -<tr> - <td><a href="modules.html">modules</a></td> -</tr> -<tr> - <td><a href="do-not-import-sources.html">do-not-import-sources</a></td> -</tr> -<tr> - <td><a href="disabled-project.html">disabled-project</a></td> -</tr> -<tr> - <td><a href="clover/clover2.html">clover/clover2</a></td> -</tr> -<tr> - <td><a href="clover/clover3.html">clover/clover3</a></td> -</tr> - -<tr> - <td><a href="rules-on-tests.html">rules-on-tests</a></td> -</tr> -<tr> - <td><a href="authentication/login_successful.html">authentication/login_successful</a></td> -</tr> -<tr> - <td><a href="authentication/login_wrong_password.html">authentication/login_wrong_password</a></td> -</tr> -<tr> - <td><a href="authentication/login_cancel.html">authentication/login_cancel</a></td> -</tr> - -<tr> - <td><a href="dashboard/basic-archetype-widget.html">dashboard/basic-archetype-widget</a></td> -</tr> -<tr> - <td><a href="dashboard/display_files_and_classes.html">dashboard/display_files_and_classes</a></td> -</tr> -<tr> - <td><a href="dashboard/reference.html">dashboard/reference</a></td> -</tr> -<tr> - <td><a href="dashboard/chidamber_kemerer_widget.html">dashboard/chidamber_kemerer_widget</a></td> -</tr> -<tr> - <td><a href="dashboard/file_widget_on_packages.html">dashboard/file_widget_on_packages</a></td> -</tr> -<tr> - <td><a href="dashboard/no_file_design_widget_on_projects.html">dashboard/no_file_design_widget_on_projects</a></td> -</tr> -<tr> - <td><a href="dashboard/no_package_design_widget_on_packages.html">dashboard/no_package_design_widget_on_packages</a></td> -</tr> -<tr> - <td><a href="dashboard/package_design_widget_on_projects.html">dashboard/package_design_widget_on_projects</a></td> -</tr> - -<tr> - <td><a href="design/drilldown_on_lcom4.html">design/drilldown_on_lcom4</a></td> -</tr> -<tr> - <td><a href="design/drilldown_on_rfc.html">design/drilldown_on_rfc</a></td> -</tr> -<tr> - <td><a href="design/drilldown_to_dsm.html">design/drilldown_to_dsm</a></td> -</tr> -<tr> - <td><a href="design/lcom4_tab.html">design/lcom4_tab</a></td> -</tr> -<tr> - <td><a href="design/load_dsm_at_startup_when_drilldown_to_zero_package_tangles.html">design/load_dsm_at_startup_when_drilldown_to_zero_package_tangles</a></td> -</tr> - - - -<tr> - <td><a href="unit_tests/some-test-failures.html">unit_tests/some-test-failures</a></td> -</tr> -<tr> - <td><a href="unit_tests/no-test-failures.html">unit_tests/no-test-failures</a></td> -</tr> -<tr> - <td><a href="unit_tests/zero-when-no-tests.html">unit_tests/zero-when-no-tests</a></td> -</tr> -<tr> - <td><a href="unit_tests/no-tests-data-on-static-analysis.html">unit_tests/no-tests-data-on-static-analysis</a></td> -</tr> -<tr> - <td><a href="unit_tests/skip-surefire-tests.html">skip-surefire-tests</a></td> -</tr> -<tr> - <td><a href="unit_tests/reuse-clover-and-junit-reports.html">unit_tests/reuse-clover-and-junit-reports</a></td> -</tr> -<!--<tr> - <td><a href="unit_tests/reuse-cobertura-and-junit-reports.html">unit_tests/reuse-cobertura-and-junit-reports</a> - </td> -</tr>--> -<tr> - <td><a href="unit_tests/reuse-junit-reports-only.html">unit_tests/reuse-junit-reports-only</a></td> -</tr> -<tr> - <td><a href="unit_tests/reuse-maven-coverage-reports.html">unit_tests/reuse-maven-coverage-reports</a></td> -</tr> -<tr> - <td><a href="unit_tests/SONAR-1099-html-chars.html">unit_tests/SONAR-1099-html-chars</a></td> -</tr> - -<tr> - <td><a href="measures_drilldown/SONAR-564_show_zero_measures.html">measures_drilldown/SONAR-564_show_zero_measures</a> - </td> -</tr> -<tr> - <td><a href="measures_drilldown/dont-display-resources-without-violations.html">measures_drilldown/dont-display-resources-without-violations</a> - </td> -</tr> -<tr> - <td><a href="measures_drilldown/show_from_modules_to_classes.html">measures_drilldown/show_from_modules_to_classes</a> - </td> -</tr> -<tr> - <td><a href="measures_drilldown/SONAR-1016_file_level_resources_only.html">measures_drilldown/SONAR-1016_file_level_resources_only</a> - </td> -</tr> -<tr> - <td><a href="profiles/create_java_profile.html">profiles/create_java_profile</a></td> -</tr> -<tr> - <td><a href="profiles/backup-profile.html">profiles/backup-profile</a></td> -</tr> -<tr> - <td><a href="profiles/bulk-change.html">profiles/bulk-change</a></td> -</tr> -<tr> - <td><a href="profiles/do-not-create-profile-with-existing-name.html">profiles/do-not-create-profile-with-existing-name</a> - </td> -</tr> -<tr> - <td><a href="profiles/cancel-profile-creation.html">profiles/cancel-profile-creation</a></td> -</tr> -<tr> - <td><a href="profiles/delete-profile.html">profiles/delete-profile</a></td> -</tr> -<tr> - <td><a href="profiles/activate-profile.html">profiles/activate-profile</a></td> -</tr> -<tr> - <td><a href="profiles/copy-profile.html">profiles/copy-profile</a></td> -</tr> -<tr> - <td><a href="profiles/do-not-copy-with-blank-name.html">profiles/do-not-copy-with-blank-name</a></td> -</tr> -<tr> - <td><a href="profiles/do-not-copy-with-existing-name.html">profiles/do-not-copy-with-existing-name</a> - </td> -</tr> -<tr> - <td><a href="profiles/read-only-mode-when-anonymous-user.html">profiles/read-only-mode-when-anonymous-user</a></td> -</tr> -<tr> - <td><a href="profiles/do-not-delete-provided-profiles.html">profiles/do-not-delete-provided-profiles</a> - </td> -</tr> -<tr> - <td><a href="profiles/permalink-to-checkstyle-configuration.html">profiles/permalink-to-checkstyle-configuration</a> - </td> -</tr> -<tr> - <td><a href="profiles/permalink-to-default-checkstyle-configuration.html">profiles/permalink-to-default-checkstyle-configuration</a> - </td> -</tr> -<tr> - <td><a href="profiles/permalink-to-pmd-configuration.html">profiles/permalink-to-pmd-configuration</a> - </td> -</tr> -<tr> - <td><a href="profiles/display-permalinks-to-tools.html">profiles/display-permalinks-to-tools</a> - </td> -</tr> -<tr> - <td><a href="profiles/link-profile-to-project.html">profiles/profile_to_project_link_unlink</a></td> -</tr> -<tr> - <td><a href="profiles/should_import_checkstyle_findbugs_pmd.html">profiles/should_import_checkstyle_findbugs_pmd</a> - </td> -</tr> -<tr> - <td><a href="profiles/dashboard_links_to_used_profile.html">profiles/dashboard_links_to_used_profile</a></td> -</tr> -<tr> - <td><a href="profiles/profile-overriden-by-maven-parameter.html">profiles/profile-overriden-by-maven-parameter</a> - </td> -</tr> -<tr> - <td><a href="rules/violations_tab.html">rules/violations_tab</a> - </td> -</tr> - -<tr> - <td><a href="profiles/user-profiles-are-editable.html">profiles/user-profiles-are-editable</a> - </td> -</tr> -<tr> - <td><a href="profiles/provided-profiles-are-not-editable.html">profiles/provided-profiles-are-not-editable</a> - </td> -</tr> -<tr> - <td><a href="rules/check_rules_extensions.html">rules/check_rules_extensions</a></td> -</tr> -<tr> - <td><a href="rules/pmd_xpath_rule_extension.html">rules/pmd_xpath_rule_extension</a></td> -</tr> -<tr> - <td><a href="rules/copy_a_provided_profile_and_modify_a_rule_param.html">rules/copy_a_provided_profile_and_modify_a_rule_param</a> - </td> -</tr> -<tr> - <td><a href="rules/search_by_plugin.html">rules/search_by_plugin</a></td> -</tr> -<tr> - <td><a href="rules/search_by_rule_title.html">rules/search_by_rule_title</a></td> -</tr> -<tr> - <td><a href="rules/search_and_display_inactive_rules.html">rules/search_and_display_inactive_rules</a></td> -</tr> -<tr> - <td><a href="rules/rule_search_verify_form_values_on_first_call.html">rules/rule_search_verify_form_values_on_first_call</a> - </td> -</tr> -<tr> - <td><a href="rules/search_by_rule_priority.html">rules/search_by_rule_priority</a></td> -</tr> -<tr> - <td><a href="rules/search_by_rule_status.html">rules/search_by_rule_status</a></td> -</tr> -<tr> - <td><a href="rules/search_any_rules.html">rules/search_any_rules</a></td> -</tr> -<tr> - <td><a href="rules/copy_and_edit_rule_template.html">rules/copy_and_edit_rule_template</a></td> -</tr> -<tr> - <td><a href="rules/SONAR-1000_quality_profile_with_space_or_dot.html">rules/SONAR-1000_quality_profile_with_space_or_dot</a> - </td> -</tr> -<tr> - <td><a href="reviews/create_then_edit_type.html">create then edit a review type</a></td> -</tr> -<tr> - <td><a href="reviews/insert_then_delete_review_measure.html">insert then delete review measure</a></td> -</tr> -<tr> - <td><a href="reviews/reviews_should_not_create_review_in_futur.html">reviews_should_not_create_review_in_futur</a> - </td> -</tr> - -<tr> - <td><a href="system_info/system_info.html">system_info/system_info</a> - </td> -</tr> - -<tr> - <td><a href="google_analytics_plugin/activate_google_analytics.html">google_analytics_plugin/activate google - analytics</a></td> -</tr> -<tr> - <td><a href="google_analytics_plugin/deactivate_google_analytics.html">google_analytics_plugin/deactivate google - analytics</a></td> -</tr> - -<tr> - <td><a href="manual_metrics/predefined_metrics.html">manual_metrics/predefined_metrics</a></td> -</tr> - -<tr> - <td><a href="timemachine/display-first-and-last-five-events.html">timemachine/display-first-and-last-five-events</a> - </td> -</tr> -<tr> - <td><a - href="timemachine/should-not-display-rows-without-data.html">timemachine/should-not-display-rows-without-data</a> - </td> -</tr> -<tr> - <td><a href="timemachine/SONAR-506_number_of_rules_violations_is_incorrect.html">timemachine/SONAR-506_number_of_rules_violations_is_incorrect</a> - </td> -</tr> -<tr> - <td><a href="timemachine/SONAR-506_number_of_rules_violations_is_incorrect.html">timemachine/violations-timemachine</a></td> -</tr> -<tr> - <td><a href="treemap/treemap_check_gradient_direction.html">treemap_check_gradient_direction</a></td> -</tr> -<tr> - <td><a href="treemap/treemap_file_drilldown_link.html">treemap_file_drilldown_link</a></td> -</tr> - -<tr> - <td><a href="coverage_clouds/coverage_clouds_project_risk.html">coverage_clouds/coverage_clouds_project_risk</a> - </td> -</tr> -<tr> - <td><a href="coverage_clouds/coverage_clouds_quick_wins.html">coverage_clouds/coverage_clouds_quick_wins</a></td> -</tr> -<tr> - <td><a href="coverage_clouds/coverage_clouds_source_tab.html">coverage_clouds/coverage_clouds_source_tab</a></td> -</tr> -<tr> - <td><a href="coverage_clouds/clouds_on_packages.html">coverage_clouds/clouds_on_packages</a></td> -</tr> - -<tr> - <td><a - href="projects_columns/projects_columns_add_and_remove_column.html">projects_columns_add_and_remove_column</a> - </td> -</tr> -<tr> - <td><a href="projects_columns/projects_columns_update_default_column_sort.html">projects_columns_update_default_column_sort</a> - </td> -</tr> -<tr> - <td><a href="projects_columns/projects_columns_remove_default_column_sort.html">projects_columns_remove_default_column_sort</a> - </td> -</tr> -<tr> - <td><a href="projects_columns/projects_columns_disable_and_enable_treemap.html">projects_columns_disable_and_enable_treemap</a> - </td> -</tr> -<tr> - <td><a href="projects_columns/projects_columns_move_column_to_left_and_right.html">projects_columns_move_column_to_left_and_right</a> - </td> -</tr> - -<tr> - <td><a - href="violations_drilldown/SONAR-455_hide_zero_measures.html">violations_drilldown/SONAR-455_hide_zero_measures</a> - </td> -</tr> -<tr> - <td><a href="violations_drilldown/check_violations_on_extensions.html">violations_drilldown/check_violations_on_extensions</a> - </td> -</tr> -<tr> - <td><a href="violations_drilldown/select_resource.html">violations_drilldown/select_resource</a></td> -</tr> -<tr> - <td><a href="violations_drilldown/popup-on-rules.html">violations_drilldown/popup-on-rules</a> - </td> -</tr> - -<tr> - <td><a href="static-analysis/deprecated_light_mode.html">static-analysis/deprecated_light_mode</a></td> -</tr> -<tr> - <td><a href="static-analysis/static-analysis.html">static-analysis/static-analysis</a></td> -</tr> - - -<tr> - <td><a href="users/admin-has-default-groups.html">users/admin-has-default-groups</a></td> -</tr> -<tr> - <td><a href="users/accept-login-with-whitespace.html">users/accept-login-with-whitespace</a></td> -</tr> -<tr> - <td><a href="users/affect-new-user-to-default-group.html">users/affect-new-user-to-default-group</a></td> -</tr> -<tr> - <td><a href="users/authenticate-new-user.html">users/authenticate-new-user</a></td> -</tr> -<tr> - <td><a href="users/can-not-delete-myself.html">users/can-not-delete-myself</a></td> -</tr> -<tr> - <td><a href="users/change-username-without-changing-password.html">users/change-username-without-changing-password</a></td> -</tr> -<tr> - <td><a href="users/confirm-password-when-creating-user.html">users/confirm-password-when-creating-user</a></td> -</tr> -<tr> - <td><a href="users/create-and-delete-groups.html">users/create-and-delete-groups</a></td> -</tr> -<tr> - <td><a href="users/create-and-delete-users.html">users/create-and-delete-users</a></td> -</tr> -<tr> - <td><a href="users/my-profile-display-basic-data.html">users/my-profile-display-basic-data</a></td> -</tr> -<tr> - <td><a href="users/add-user-to-group.html">users/add-user-to-group</a></td> -</tr> -<tr> - <td><a href="users/affect-user-to-group.html">users/affect-user-to-group</a></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/authentication/login_cancel.html b/tests/integration/tests/src/test/selenium/authentication/login_cancel.html deleted file mode 100644 index 4652916b195..00000000000 --- a/tests/integration/tests/src/test/selenium/authentication/login_cancel.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>login_cancel</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">login_cancel</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Cancel</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>link=Log in</td> - <td>Log in</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/authentication/login_successful.html b/tests/integration/tests/src/test/selenium/authentication/login_successful.html deleted file mode 100644 index 4732f593a19..00000000000 --- a/tests/integration/tests/src/test/selenium/authentication/login_successful.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>login_successful</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">login_successful</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>link=Log in</td> - <td>Log in</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Log out</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log out</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>link=Log in</td> - <td>Log in</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/authentication/login_wrong_password.html b/tests/integration/tests/src/test/selenium/authentication/login_wrong_password.html deleted file mode 100644 index 9ea486801d2..00000000000 --- a/tests/integration/tests/src/test/selenium/authentication/login_wrong_password.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>login_wrong_password</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">login_wrong_password</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>wrong</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Authentication failed</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/branch.html b/tests/integration/tests/src/test/selenium/branch.html deleted file mode 100644 index 8df4c0eef7b..00000000000 --- a/tests/integration/tests/src/test/selenium/branch.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>branch</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">branch</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Sonar tests - reference BRANCH-0.9</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Sonar tests - reference BRANCH-0.9</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Sonar tests - reference BRANCH-0.9</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/clover/clover2.html b/tests/integration/tests/src/test/selenium/clover/clover2.html deleted file mode 100644 index c6f83726442..00000000000 --- a/tests/integration/tests/src/test/selenium/clover/clover2.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>clover2</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">clover2</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.clover2:parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>66.7%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>40.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>12</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/clover/clover3.html b/tests/integration/tests/src/test/selenium/clover/clover3.html deleted file mode 100644 index 822d634b111..00000000000 --- a/tests/integration/tests/src/test/selenium/clover/clover3.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>clover3</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">clover3</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.clover3:parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>66.7%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>40.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>12</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/contextualized-breadcrumb.html b/tests/integration/tests/src/test/selenium/contextualized-breadcrumb.html deleted file mode 100644 index dcfce01a137..00000000000 --- a/tests/integration/tests/src/test/selenium/contextualized-breadcrumb.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>contextualized-breadcrumb</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">contextualized-breadcrumb</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/components/index/org.sonar.tests.modules:module_a</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>crumbs</td> - <td>glob:*Sonar tests*Module A*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Sonar tests - modules</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>crumbs</td> - <td>glob:*Module A*</td> -</tr> -<tr> - <td>assertLocation</td> - <td>glob:*components/index/*</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/coverage_clouds/clouds_on_packages.html b/tests/integration/tests/src/test/selenium/coverage_clouds/clouds_on_packages.html deleted file mode 100644 index a447f7016ca..00000000000 --- a/tests/integration/tests/src/test/selenium/coverage_clouds/clouds_on_packages.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>clouds_on_packages</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">clouds_on_packages</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference:org.sonar.samples?page=org.sonar.plugins.core.clouds.GwtClouds</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>crumbs</td> - <td>glob:*org.sonar.samples*</td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>glob:*InnerClass*Utf8Characters*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_project_risk.html b/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_project_risk.html deleted file mode 100644 index 03bb33ac1a8..00000000000 --- a/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_project_risk.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>coverage_clouds_project_risk</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">coverage_clouds_project_risk</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>InnerClass</td> - <td>class_name</td> -</tr> -<tr> - <td>store</td> - <td>Avg. complexity by method : 1.2, Coverage : 33.3%</td> - <td>class_tooltip</td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Clouds</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>top_risk_tab_title</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>top_risk_tab_title</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>${class_name}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//div[@id='top_risk_tab_content']//span[text()='${class_name}']</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_quick_wins.html b/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_quick_wins.html deleted file mode 100644 index 359cbb0cb3d..00000000000 --- a/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_quick_wins.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>coverage_clouds_quick_wins</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">coverage_clouds_quick_wins</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>InnerClass</td> - <td>class_name</td> -</tr> -<tr> - <td>store</td> - <td>Complexity : 15, Coverage : 33.3%</td> - <td>class_tooltip</td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Clouds</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>quick_wins_tab_title</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>quick_wins_tab_title</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${class_name}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//div[@id='quick_wins_tab_content']//span[text()='${class_name}']</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_source_tab.html b/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_source_tab.html deleted file mode 100644 index fe97fa76f06..00000000000 --- a/tests/integration/tests/src/test/selenium/coverage_clouds/coverage_clouds_source_tab.html +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>coverage_clouds_source_tab</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">coverage_clouds_source_tab</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>InnerClass</td> - <td>class_name</td> -</tr> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference?page=org.sonar.plugins.core.clouds.GwtClouds</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Clouds</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>quick_wins_tab_content</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>//div[@id='quick_wins_tab_content']//span[text()='${class_name}']</td> - <td></td> -</tr> -<tr> - <td>waitForPopUp</td> - <td>resource</td> - <td></td> -</tr> -<tr> - <td>selectWindow</td> - <td>resource</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>InnerClass</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*Line coverage*</td> -</tr> -<tr> - <td>close</td> - <td>resource</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/custom-maven-type.html b/tests/integration/tests/src/test/selenium/custom-maven-type.html deleted file mode 100644 index 2de41995d5b..00000000000 --- a/tests/integration/tests/src/test/selenium/custom-maven-type.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>custom-maven-type</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">custom-maven-type</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:maven-custom-type</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>hd</td> - <td>glob:*Maven custom type*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>9</td> -</tr> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:maven-custom-type</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>col_categories</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/SONAR-601-project-without-measures.html b/tests/integration/tests/src/test/selenium/dashboard/SONAR-601-project-without-measures.html deleted file mode 100644 index ab5c78defee..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/SONAR-601-project-without-measures.html +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-601-project-without-measures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-601-project-without-measures</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>POM without modules</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>JAR without sources</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:jar-without-sources</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Version 1.0-SNAPSHOT</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>resource_key</td> - <td>org.sonar.tests:jar-without-sources</td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:pom-without-modules</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>POM without modules</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>org.sonar.tests:pom-without-modules</td> - <td></td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/basic-archetype-widget.html b/tests/integration/tests/src/test/selenium/dashboard/basic-archetype-widget.html deleted file mode 100644 index 7fbb6228e93..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/basic-archetype-widget.html +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>basic-archetype-widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">basic-archetype-widget</td></tr> -</thead><tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>dashboard</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configure widgets</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>def_sample</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>def_sample</td> - <td>glob:*Sample*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/chidamber_kemerer_widget.html b/tests/integration/tests/src/test/selenium/dashboard/chidamber_kemerer_widget.html deleted file mode 100644 index 61200df6da6..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/chidamber_kemerer_widget.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>chidamber_kemerer_widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">chidamber_kemerer_widget</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_lcom4</td> - <td>glob:1.*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_suspect_lcom4_density</td> - <td>glob:2*%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_rfc</td> - <td>regexp:[0-9][0-9]</td> -</tr> -<tr> - <td>assertText</td> - <td>css=#dashboard .ckjm</td> - <td>glob:*LCOM4*RFC*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/deprecated-url-format.html b/tests/integration/tests/src/test/selenium/dashboard/deprecated-url-format.html deleted file mode 100644 index ce97ebe10f0..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/deprecated-url-format.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>deprecated-url-format</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">deprecated-url-format</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/project/index/org.sonar.tests:reference?foo=bar</td> - <td></td> -</tr> -<tr> - <td>assertLocation</td> - <td>glob:*/dashboard/index/org.sonar.tests:reference?foo=bar</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Sonar tests - reference</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/display_files_and_classes.html b/tests/integration/tests/src/test/selenium/dashboard/display_files_and_classes.html deleted file mode 100644 index a130c97380a..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/display_files_and_classes.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>metric_files</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">metric_files</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_files</td> - <td>494</td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>518</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/file_widget_on_packages.html b/tests/integration/tests/src/test/selenium/dashboard/file_widget_on_packages.html deleted file mode 100644 index e3bae072c61..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/file_widget_on_packages.html +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>file_widget_on_packages</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">file_widget_on_packages</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-core:org.apache.struts.config</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_file_tangle_index</td> - <td>glob:*%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_file_cycles</td> - <td>glob:*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_file_feedback_edges</td> - <td>glob:*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/no_file_design_widget_on_projects.html b/tests/integration/tests/src/test/selenium/dashboard/no_file_design_widget_on_projects.html deleted file mode 100644 index 72c6f778ac9..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/no_file_design_widget_on_projects.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>no_file_design_widget_on_projects</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no_file_design_widget_on_projects</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_file_tangle_index</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_file_tangles</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/no_package_design_widget_on_packages.html b/tests/integration/tests/src/test/selenium/dashboard/no_package_design_widget_on_packages.html deleted file mode 100644 index a1eca984a13..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/no_package_design_widget_on_packages.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>no_package_design_widget_on_packages</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no_package_design_widget_on_packages</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-core:org.apache.struts.config</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_package_tangles</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_package_cycles</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/package_design_widget_on_projects.html b/tests/integration/tests/src/test/selenium/dashboard/package_design_widget_on_projects.html deleted file mode 100644 index ee98448bfb3..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/package_design_widget_on_projects.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>package_design_widget_on_projects</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">package_design_widget_on_projects</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>css=#dashboard .package_design</td> - <td>glob:*Package*cycles*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_package_tangle_index</td> - <td>glob:*%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_package_cycles</td> - <td>regexp:[0-9][0-9]</td> -</tr> -<tr> - <td>assertText</td> - <td>m_package_feedback_edges</td> - <td>regexp:[0-9][0-9]</td> -</tr> -<tr> - <td>assertText</td> - <td>m_package_tangles</td> - <td>regexp:[0-9][0-9]</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dashboard/reference.html b/tests/integration/tests/src/test/selenium/dashboard/reference.html deleted file mode 100644 index 0eaacf28f4a..00000000000 --- a/tests/integration/tests/src/test/selenium/dashboard/reference.html +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>reference</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">reference</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>338</td> -</tr> -<tr> - <td>assertText</td> - <td>m_packages</td> - <td>6</td> -</tr> -<tr> - <td>assertText</td> - <td>m_functions</td> - <td>38</td> -</tr> -<tr> - <td>assertText</td> - <td>m_function_complexity</td> - <td>1.9</td> -</tr> -<tr> - <td>assertText</td> - <td>m_class_complexity</td> - <td>4.3</td> -</tr> -<tr> - <td>assertText</td> - <td>m_complexity</td> - <td>73</td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_lines_density</td> - <td>40.7%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_violations_density</td> - <td>68.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_major_violations</td> - <td>36</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dependencies/no_results.html b/tests/integration/tests/src/test/selenium/dependencies/no_results.html deleted file mode 100644 index 4a7c9af5bde..00000000000 --- a/tests/integration/tests/src/test/selenium/dependencies/no_results.html +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>no_results</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no_results</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dependencies/index</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>search_input</td> - <td>unknown</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>search_submit</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>artifacts_col</td> - <td>glob:*No data*</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>versions_col</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>results_col</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dependencies/search_subprojects.html b/tests/integration/tests/src/test/selenium/dependencies/search_subprojects.html deleted file mode 100644 index 74afc395802..00000000000 --- a/tests/integration/tests/src/test/selenium/dependencies/search_subprojects.html +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>search_subprojects</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_subprojects</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dependencies/index</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>search_input</td> - <td>struts</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>search_submit</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>artifacts_col</td> - <td>glob:*org.apache.struts:struts-parent*org.apache.struts:struts-core*org.apache.struts:struts-faces*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dependencies/standard_usage.html b/tests/integration/tests/src/test/selenium/dependencies/standard_usage.html deleted file mode 100644 index 87790d7f21b..00000000000 --- a/tests/integration/tests/src/test/selenium/dependencies/standard_usage.html +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>standard_usage</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">standard_usage</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dependencies/index</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>search_input</td> - <td>commons</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>search_submit</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>artifacts_col</td> - <td>glob:*commons-io*commons-logging*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=commons-io:commons-io</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>versions_col</td> - <td>glob:*1.1*</td> -</tr> -<tr> - <td>assertText</td> - <td>results_col</td> - <td>glob:*Struts Core*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Struts Core</td> - <td></td> -</tr> -<tr> - <td>assertLocation</td> - <td>glob:*org.sonar.plugins.design.ui.libraries.LibrariesPage*</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>keywordFilter</td> - <td>commons-io:commons-io</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/dependencies/too_short_search.html b/tests/integration/tests/src/test/selenium/dependencies/too_short_search.html deleted file mode 100644 index 5ced0c3eaed..00000000000 --- a/tests/integration/tests/src/test/selenium/dependencies/too_short_search.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>too_short_search</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">too_short_search</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dependencies/index</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>search_input</td> - <td>ab</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>search_submit</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>info</td> - <td>glob:*Minimum search is 3 characters*</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>artifacts_col</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/design/drilldown_on_lcom4.html b/tests/integration/tests/src/test/selenium/design/drilldown_on_lcom4.html deleted file mode 100644 index d7239ee8ee0..00000000000 --- a/tests/integration/tests/src/test/selenium/design/drilldown_on_lcom4.html +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>drilldown_on_lcom4</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">drilldown_on_lcom4</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_lcom4</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>LCOM4</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_PRJ</td> - <td>glob:*Struts Scripting*Struts Tiles*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_DIR</td> - <td>glob:*org.apache.struts.mock*org.apache.struts.taglib*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*MockHttpServletRequest*MockPageContext*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/design/drilldown_on_rfc.html b/tests/integration/tests/src/test/selenium/design/drilldown_on_rfc.html deleted file mode 100644 index 9279fd91970..00000000000 --- a/tests/integration/tests/src/test/selenium/design/drilldown_on_rfc.html +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>drilldown_on_rfc</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">drilldown_on_rfc</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_rfc</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>RFC</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_PRJ</td> - <td>glob:*Struts Scripting*Struts Tiles*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_DIR</td> - <td>glob:*org.apache.struts.mock*org.apache.struts.taglib*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*MockHttpServletRequest*MockPageContext*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/design/drilldown_to_dsm.html b/tests/integration/tests/src/test/selenium/design/drilldown_to_dsm.html deleted file mode 100644 index 165725f621a..00000000000 --- a/tests/integration/tests/src/test/selenium/design/drilldown_to_dsm.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>drilldown_to_dsm</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">drilldown_to_dsm</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_package_tangle_index</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Struts Core</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>gwtpage-org.sonar.plugins.design.ui.page.DesignPage</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>gwtpage-org.sonar.plugins.design.ui.page.DesignPage</td> - <td>glob:*org.apache.struts.chain*org.apache.struts.config*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/design/lcom4_tab.html b/tests/integration/tests/src/test/selenium/design/lcom4_tab.html deleted file mode 100644 index e892ad559bb..00000000000 --- a/tests/integration/tests/src/test/selenium/design/lcom4_tab.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>lcom4_tab</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">lcom4_tab</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.apache.struts:struts-parent?metric=lcom4</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=MockHttpServletRequest</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>rvstitle</td> - <td>glob:*org.apache.struts.mock.MockHttpServletRequest*</td> -</tr> -<tr> - <td>waitForVisible</td> - <td>gwtpage-org.sonar.plugins.design.ui.lcom4.Lcom4Tab</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>gwtpage-org.sonar.plugins.design.ui.lcom4.Lcom4Tab</td> - <td>glob:*1*2*3*4*5*6*7*8*9*10*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/design/load_dsm_at_startup_when_drilldown_to_zero_package_tangles.html b/tests/integration/tests/src/test/selenium/design/load_dsm_at_startup_when_drilldown_to_zero_package_tangles.html deleted file mode 100644 index ffa9db63e74..00000000000 --- a/tests/integration/tests/src/test/selenium/design/load_dsm_at_startup_when_drilldown_to_zero_package_tangles.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>load_dsm_at_startup_when_drilldown_to_zero_package_tangles</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">load_dsm_at_startup_when_drilldown_to_zero_package_tangles</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-faces</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_package_tangle_index</td> - <td>0.0%</td> -</tr> -<tr> - <td>click</td> - <td>m_package_tangle_index</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>rvstitle</td> - <td>glob:*Struts Faces*</td> -</tr> -<tr> - <td>waitForText</td> - <td>gwtpage-org.sonar.plugins.design.ui.page.DesignPage</td> - <td>glob:*org.apache.struts.faces*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/disabled-project.html b/tests/integration/tests/src/test/selenium/disabled-project.html deleted file mode 100644 index ed1b7e492ba..00000000000 --- a/tests/integration/tests/src/test/selenium/disabled-project.html +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>disabled-project</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">disabled-project</td></tr> -</thead><tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>disabled project</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:disabled-project</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Settings</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>//input[@value='Delete project']</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure you want to delete this project?</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>disabled project</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/do-not-import-sources.html b/tests/integration/tests/src/test/selenium/do-not-import-sources.html deleted file mode 100644 index 4f1edb3906f..00000000000 --- a/tests/integration/tests/src/test/selenium/do-not-import-sources.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>do-not-import-sources</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">do-not-import-sources</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests:do-not-import-sources</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Swiss</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>glob:*Coverage*Violations*</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>public class Swiss</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/duplicated-lines/drilldown-without-ratio.html b/tests/integration/tests/src/test/selenium/duplicated-lines/drilldown-without-ratio.html deleted file mode 100644 index 67f90296e0e..00000000000 --- a/tests/integration/tests/src/test/selenium/duplicated-lines/drilldown-without-ratio.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>drilldown-without-ratio</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">drilldown-without-ratio</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>m_duplicated_lines_density</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_duplicated_lines_density</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_lines_density</td> - <td>40.7%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_lines</td> - <td>222 Duplicated lines</td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:*org.sonar.samples.duplicated_lines_within_package*84*org.sonar.samples.duplicated_lines_within_same_class*60*</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:*DuplicatedLinesInSameClass*60*DuplicatedLinesInSamePackage2*42*</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/event_categories/should_create_category.html b/tests/integration/tests/src/test/selenium/event_categories/should_create_category.html deleted file mode 100644 index 0962cbbd411..00000000000 --- a/tests/integration/tests/src/test/selenium/event_categories/should_create_category.html +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_create_category</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_create_category</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/event_categories</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>categName</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${categName}</td> -</tr> -<tr> - <td>type</td> - <td>description</td> - <td>desc of ${categName}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Category saved</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>event_categories</td> - <td>glob:*${categName}*desc of ${categName}*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/event_categories/should_delete_category.html b/tests/integration/tests/src/test/selenium/event_categories/should_delete_category.html deleted file mode 100644 index 85f4e163321..00000000000 --- a/tests/integration/tests/src/test/selenium/event_categories/should_delete_category.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_delete_category</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_delete_category</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/event_categories</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>categName</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${categName}</td> -</tr> -<tr> - <td>type</td> - <td>description</td> - <td>desc of ${categName}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Category saved</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>event_categories</td> - <td>glob:*${categName}*desc of ${categName}*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_${categName}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Info : events with this category will not be deleted.</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Category deleted</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>${categName}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/event_categories/should_edit_category.html b/tests/integration/tests/src/test/selenium/event_categories/should_edit_category.html deleted file mode 100644 index 90cb63a046c..00000000000 --- a/tests/integration/tests/src/test/selenium/event_categories/should_edit_category.html +++ /dev/null @@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_edit_category</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_edit_category</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/event_categories</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>date</td> -</tr> -<tr> - <td>store</td> - <td>OLD ${date}</td> - <td>categName</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${categName}</td> -</tr> -<tr> - <td>type</td> - <td>description</td> - <td>desc of ${categName}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Category saved</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>event_categories</td> - <td>glob:*${categName}*desc of ${categName}*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>edit_${categName}</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>name</td> - <td>${categName}</td> -</tr> -<tr> - <td>assertValue</td> - <td>description</td> - <td>desc of ${categName}</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>NEW ${date}</td> -</tr> -<tr> - <td>type</td> - <td>description</td> - <td>NEW DESC ${date}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Category saved</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>${categName}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/event_categories/should_validate_category.html b/tests/integration/tests/src/test/selenium/event_categories/should_validate_category.html deleted file mode 100644 index 563dad6b65f..00000000000 --- a/tests/integration/tests/src/test/selenium/event_categories/should_validate_category.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_validate_category</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_validate_category</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/event_categories</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Name is empty</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Description is empty</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/events/create_event_on_last_snapshot.html b/tests/integration/tests/src/test/selenium/events/create_event_on_last_snapshot.html deleted file mode 100644 index 3f6c0374e38..00000000000 --- a/tests/integration/tests/src/test/selenium/events/create_event_on_last_snapshot.html +++ /dev/null @@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>create_event_on_last_snapshot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create_event_on_last_snapshot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Add an event</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Add an event</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getMilliseconds()}</td> - <td>eventName</td> -</tr> -<tr> - <td>type</td> - <td>event_name</td> - <td>${eventName}</td> -</tr> -<tr> - <td>assertNotVisible</td> - <td>event_cat_desc_Version</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>event_category</td> - <td>label=Version</td> -</tr> -<tr> - <td>assertVisible</td> - <td>event_cat_desc_Version</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>event_description</td> - <td>the description</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>events</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>events</td> - <td>glob:*${eventName}*</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>event_submit</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/events/create_event_with_special_characters.html b/tests/integration/tests/src/test/selenium/events/create_event_with_special_characters.html deleted file mode 100644 index 17f6816ed2d..00000000000 --- a/tests/integration/tests/src/test/selenium/events/create_event_with_special_characters.html +++ /dev/null @@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>create_event_with_special_characters</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create_event_with_special_characters</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Add an event</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Add an event</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getMilliseconds().toString() + "à l'été"}</td> - <td>eventName</td> -</tr> -<tr> - <td>type</td> - <td>event_name</td> - <td>${eventName}</td> -</tr> -<tr> - <td>select</td> - <td>event_category</td> - <td>label=Version</td> -</tr> -<tr> - <td>type</td> - <td>event_description</td> - <td>the description</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>widget_events</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>events</td> - <td>glob:*${eventName}*</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>edit_event_${eventName}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/events/create_event_without_snapshot.html b/tests/integration/tests/src/test/selenium/events/create_event_without_snapshot.html deleted file mode 100644 index 49bea06593a..00000000000 --- a/tests/integration/tests/src/test/selenium/events/create_event_without_snapshot.html +++ /dev/null @@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>create_event_without_snapshot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create_event_without_snapshot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Add an event</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Add an event</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getMilliseconds()}</td> - <td>date</td> -</tr> -<tr> - <td>type</td> - <td>event_name</td> - <td>${date}</td> -</tr> -<tr> - <td>select</td> - <td>event_category</td> - <td>label=Version</td> -</tr> -<tr> - <td>select</td> - <td>event_event_date_1i</td> - <td>label=2006</td> -</tr> -<tr> - <td>type</td> - <td>event_description</td> - <td>the description</td> -</tr> -<tr> - <td>select</td> - <td>event_event_date_2i</td> - <td>label=January</td> -</tr> -<tr> - <td>select</td> - <td>event_event_date_3i</td> - <td>label=31</td> -</tr> -<tr> - <td>click</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>events</td> - <td>glob:*2006-01-31*</td> -</tr> -<tr> - <td>assertText</td> - <td>events</td> - <td>glob:*${date}*</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>snapshot_title</td> - <td>glob:*Version ${date}*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/events/no_events_widget_on_module_and_package.html b/tests/integration/tests/src/test/selenium/events/no_events_widget_on_module_and_package.html deleted file mode 100644 index 189ed9c2d63..00000000000 --- a/tests/integration/tests/src/test/selenium/events/no_events_widget_on_module_and_package.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>no_events_widget_on_module_and_package</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no_events_widget_on_module_and_package</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.modules:parent</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>widget_events</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.modules:module_a</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>widget_events</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.modules:submodule_a1:org.codehaus.sonar.samples.samplewithmodules.submodulea1</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>widget_events</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/events/should_not_create_events_if_anonymous.html b/tests/integration/tests/src/test/selenium/events/should_not_create_events_if_anonymous.html deleted file mode 100644 index 27d2412fe95..00000000000 --- a/tests/integration/tests/src/test/selenium/events/should_not_create_events_if_anonymous.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_not_create_events_if_anonymous</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_not_create_events_if_anonymous</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>link=Add an event</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/events/should_validate_event_on_creation.html b/tests/integration/tests/src/test/selenium/events/should_validate_event_on_creation.html deleted file mode 100644 index 9cba768d623..00000000000 --- a/tests/integration/tests/src/test/selenium/events/should_validate_event_on_creation.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should_validate_event_on_creation</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_validate_event_on_creation</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Add an event</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Add an event</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getMilliseconds()}</td> - <td>date</td> -</tr> -<tr> - <td>type</td> - <td>event_description</td> - <td>the description</td> -</tr> -<tr> - <td>click</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>event_form_errors</td> - <td></td> -</tr> -<tr> - <td>waitForNotText</td> - <td>events</td> - <td>glob:*${date}*</td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>event_submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>event_form_errors</td> - <td>glob:*Name is too short*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/exclusions/SONAR-1115-do-not-exclude-unit-tests.html b/tests/integration/tests/src/test/selenium/exclusions/SONAR-1115-do-not-exclude-unit-tests.html deleted file mode 100644 index b933ae63d42..00000000000 --- a/tests/integration/tests/src/test/selenium/exclusions/SONAR-1115-do-not-exclude-unit-tests.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-1115-do-not-exclude-unit-tests</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1115-do-not-exclude-unit-tests</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:exclusions</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>4</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_tests</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*ClassToExcludeTest*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/exclusions/cobertura_exclusions.html b/tests/integration/tests/src/test/selenium/exclusions/cobertura_exclusions.html deleted file mode 100644 index 770b2fe694f..00000000000 --- a/tests/integration/tests/src/test/selenium/exclusions/cobertura_exclusions.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>cobertura_exclusions</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">cobertura_exclusions</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:exclusions</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>1</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>75.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_line_coverage</td> - <td>13.3%</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_line_coverage</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>col_FIL</td> - <td>glob:*ClassToExclude*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/exclusions/cpd_exclusions.html b/tests/integration/tests/src/test/selenium/exclusions/cpd_exclusions.html deleted file mode 100644 index 9a24ea1315b..00000000000 --- a/tests/integration/tests/src/test/selenium/exclusions/cpd_exclusions.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>cpd_exclusions</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">cpd_exclusions</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:exclusions</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_lines_density</td> - <td>0.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_lines</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_blocks</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_files</td> - <td>0</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/exclusions/javancss_exclusions.html b/tests/integration/tests/src/test/selenium/exclusions/javancss_exclusions.html deleted file mode 100644 index e57babe42e1..00000000000 --- a/tests/integration/tests/src/test/selenium/exclusions/javancss_exclusions.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>javancss_exclusions</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">javancss_exclusions</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:exclusions</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>75</td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_packages</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_functions</td> - <td>8</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/exclusions/set_exclusions_from_project_settings_page.html b/tests/integration/tests/src/test/selenium/exclusions/set_exclusions_from_project_settings_page.html deleted file mode 100644 index d585b1f206c..00000000000 --- a/tests/integration/tests/src/test/selenium/exclusions/set_exclusions_from_project_settings_page.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>set_exclusions_from_project_settings_page</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">set_exclusions_from_project_settings_page</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/metrics</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Settings</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>exclusion_pattern_0</td> - <td>org/sonar/exclude/**</td> -</tr> -<tr> - <td>type</td> - <td>exclusion_pattern_1</td> - <td>**/*Bean.java</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_exclusions</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>exclusion_pattern_0</td> - <td>exact:org/sonar/exclude/**</td> -</tr> -<tr> - <td>assertValue</td> - <td>exclusion_pattern_1</td> - <td>exact:**/*Bean.java</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_exclusions</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure you want to delete all exclusion filters ?</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>exclusion_pattern_0</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>exclusion_pattern_1</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/anonymous-default-filters.html b/tests/integration/tests/src/test/selenium/filters/anonymous-default-filters.html deleted file mode 100644 index 845f037c4db..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/anonymous-default-filters.html +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>anonymous-default-filters</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">anonymous-default-filters</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>filter-tabs</td> - <td>glob:*Projects*Treemap*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>filter-tabs</td> - <td>glob:*favourites*</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>results</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>results_count</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>results-head</td> - <td>glob:*Name*date*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/create-advanced-filter.html b/tests/integration/tests/src/test/selenium/filters/create-advanced-filter.html deleted file mode 100644 index e435b195f23..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/create-advanced-filter.html +++ /dev/null @@ -1,150 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>create-advanced-filter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create-advanced-filter</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>name</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Add filter</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${name}</td> -</tr> -<tr> - <td>click</td> - <td>q-DIR</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>q-TRK</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>metric-0</td> - <td>label=Lines of code</td> -</tr> -<tr> - <td>select</td> - <td>op-0</td> - <td>label=Greater than</td> -</tr> -<tr> - <td>type</td> - <td>val-0</td> - <td>100</td> -</tr> -<tr> - <td>select</td> - <td>metric-1</td> - <td>label=Complexity /class</td> -</tr> -<tr> - <td>select</td> - <td>op-1</td> - <td>label=Less or equals</td> -</tr> -<tr> - <td>type</td> - <td>val-1</td> - <td>20</td> -</tr> -<tr> - <td>click</td> - <td>link=Advanced search</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>lang-java</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>key_regexp</td> - <td>org.apache.*</td> -</tr> -<tr> - <td>select</td> - <td>date_operator</td> - <td>label=During last</td> -</tr> -<tr> - <td>type</td> - <td>date_value</td> - <td>20</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>//input[@value='Save & Preview']</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>results</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>results</td> - <td>glob:*org.apache.struts.*</td> -</tr> -<tr> - <td>assertText</td> - <td>results-head</td> - <td>glob:*Lines of code*Complexity*</td> -</tr> -<tr> - <td>click</td> - <td>link=Delete</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Do you want to delete this filter ?</td> - <td></td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/create-and-delete-filter.html b/tests/integration/tests/src/test/selenium/filters/create-and-delete-filter.html deleted file mode 100644 index ba4efd1defa..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/create-and-delete-filter.html +++ /dev/null @@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>create-and-delete-filter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create-and-delete-filter</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Add filter</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>name</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${name}</td> -</tr> -<tr> - <td>click</td> - <td>shared</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>q-DIR</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>q-TRK</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>metric-0</td> - <td>label=Lines of code</td> -</tr> -<tr> - <td>select</td> - <td>op-0</td> - <td>label=Greater than</td> -</tr> -<tr> - <td>type</td> - <td>val-0</td> - <td>100</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>//input[@value='Save & Preview']</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>results</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>results</td> - <td>glob:*org.apache.struts.*</td> -</tr> -<tr> - <td>assertText</td> - <td>filter-tabs</td> - <td>glob:*${name}*</td> -</tr> -<tr> - <td>click</td> - <td>link=Delete</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Do you want to delete this filter ?</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Filter deleted</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/default-filters-console-for-admins-only.html b/tests/integration/tests/src/test/selenium/filters/default-filters-console-for-admins-only.html deleted file mode 100644 index 1773385c394..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/default-filters-console-for-admins-only.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>default-filters-console-for-admins-only</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">default-filters-console-for-admins-only</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/admin_filters/index</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>login_form</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/default-filters-console.html b/tests/integration/tests/src/test/selenium/filters/default-filters-console.html deleted file mode 100644 index 2e70efc8082..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/default-filters-console.html +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>default-filters-console</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">default-filters-console</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/admin_filters/index</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>admin_console</td> - <td>glob:*Projects*</td> -</tr> -<tr> - <td>assertText</td> - <td>admin_console</td> - <td>glob:*My favourites*</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>shared</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/set-favourite-project.html b/tests/integration/tests/src/test/selenium/filters/set-favourite-project.html deleted file mode 100644 index d3fa6b531f4..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/set-favourite-project.html +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>set-favourite-project</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">set-favourite-project</td></tr> -</thead><tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>filter-tabs</td> - <td>glob:*favourites*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=My favourites</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>results</td> - <td>glob:*Struts*</td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>storeAttribute</td> - <td>xpath=//div[@id='snapshot_title']//a[@class='notfav']/@id</td> - <td>favId</td> -</tr> -<tr> - <td>click</td> - <td>id=${favId}</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=#snapshot_title a.fav</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=My favourites</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>results</td> - <td>glob:*Struts*</td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=#snapshot_title a.fav</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=#snapshot_title a.notfav</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/filters/treemap-filter.html b/tests/integration/tests/src/test/selenium/filters/treemap-filter.html deleted file mode 100644 index 43524e69c9b..00000000000 --- a/tests/integration/tests/src/test/selenium/filters/treemap-filter.html +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>treemap-filter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">treemap-filter</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Treemap</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>treemap</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>treemap</td> - <td>glob:*Struts*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/footer-data.html b/tests/integration/tests/src/test/selenium/footer-data.html deleted file mode 100644 index d036fe1683e..00000000000 --- a/tests/integration/tests/src/test/selenium/footer-data.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>footer-data</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">footer-data</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>ftlinks</td> - <td>glob:*SonarSource*</td> -</tr> -<tr> - <td>assertText</td> - <td>ftlinks</td> - <td>glob:*LGPL*</td> -</tr> -<tr> - <td>assertText</td> - <td>ftlinks</td> - <td>glob:*v.2.*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/google_analytics_plugin/activate_google_analytics.html b/tests/integration/tests/src/test/selenium/google_analytics_plugin/activate_google_analytics.html deleted file mode 100644 index 6ae5aaf7ead..00000000000 --- a/tests/integration/tests/src/test/selenium/google_analytics_plugin/activate_google_analytics.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>activate_google_analytics</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">activate_google_analytics</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>UA-1234567-8</td> - <td>ACCOUNT_ID</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Settings</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Google analytics</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Account key</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>sonar.google-analytics.account</td> - <td>${ACCOUNT_ID}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Google analytics</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Account key</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${ACCOUNT_ID}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>ft</td> - <td>var pageTracker = _gat._getTracker("${ACCOUNT_ID}");</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/google_analytics_plugin/deactivate_google_analytics.html b/tests/integration/tests/src/test/selenium/google_analytics_plugin/deactivate_google_analytics.html deleted file mode 100644 index d7956fe8929..00000000000 --- a/tests/integration/tests/src/test/selenium/google_analytics_plugin/deactivate_google_analytics.html +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>desactive_google_analytics_and_test_javascript_is_not_present</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">desactive_google_analytics_and_test_javascript_is_not_present</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Settings</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Google analytics</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Account key</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>sonar.google-analytics.account</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Parameters updated</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>var pageTracker = _gat._getTracker</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/ccn_hotspot.html b/tests/integration/tests/src/test/selenium/hotspots/ccn_hotspot.html deleted file mode 100644 index 696531d284c..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/ccn_hotspot.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>ccn_hotspot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">ccn_hotspot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.apache.struts:struts-parent?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>complexity-hotspot</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>complexity-hotspot</td> - <td>glob:*ValidWhenLexer*273*</td> -</tr> -<tr> - <td>assertText</td> - <td>complexity-hotspot</td> - <td>glob:*RequestProcessor*163*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>more-complexity</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>content</td> - <td>glob:*Complexity*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/duplicated_lines_hotspot.html b/tests/integration/tests/src/test/selenium/hotspots/duplicated_lines_hotspot.html deleted file mode 100644 index 9eda0219c21..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/duplicated_lines_hotspot.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>duplicated_lines_hotspot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">duplicated_lines_hotspot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.apache.struts:struts-parent?page=org.sonar.plugins.core.hotspots.GwtHotspots&locale=en</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>duplicated_lines-hotspot</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>duplicated_lines-hotspot</td> - <td>glob:*ELRadioTag*</td> -</tr> -<tr> - <td>waitForText</td> - <td>duplicated_lines-hotspot</td> - <td>glob:*ELCheckboxTag*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/function_complexity_hotspot.html b/tests/integration/tests/src/test/selenium/hotspots/function_complexity_hotspot.html deleted file mode 100644 index 2d20582399b..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/function_complexity_hotspot.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>function_complexity_hotspot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">function_complexity_hotspot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.apache.struts:struts-parent?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>function_complexity-hotspot</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>function_complexity-hotspot</td> - <td>glob:*ELImgTagBeanInfo*45.0*</td> -</tr> -<tr> - <td>waitForText</td> - <td>function_complexity-hotspot</td> - <td>glob:*ELTextTagBeanInfo*39.0*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/no_measures.html b/tests/integration/tests/src/test/selenium/hotspots/no_measures.html deleted file mode 100644 index 16430de9314..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/no_measures.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>no_measures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no_measures</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference:org.sonar.samples.duplicated_lines_with_other_package2?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>test_execution_time-hotspot</td> - <td>glob:*No measures*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/popup-on-rules.html b/tests/integration/tests/src/test/selenium/hotspots/popup-on-rules.html deleted file mode 100644 index cd30494d4d6..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/popup-on-rules.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>popup-on-rules</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">popup-on-rules</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>rule0</td> - <td></td> -</tr> -<tr> - <td>waitForPopUp</td> - <td>rule</td> - <td></td> -</tr> -<tr> - <td>selectWindow</td> - <td>rule</td> - <td></td> -</tr> -<tr> - <td>assertLocation</td> - <td>glob:*checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck*</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Magic Number</td> - <td></td> -</tr> -<tr> - <td>close</td> - <td>rule</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/rules_violations_hotspot.html b/tests/integration/tests/src/test/selenium/hotspots/rules_violations_hotspot.html deleted file mode 100644 index 3775c9bf77f..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/rules_violations_hotspot.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>rules_violations_hotspot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">rules_violations_hotspot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>violated-files-hotspot</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>violated-files-hotspot</td> - <td>glob:*Utf8Characters*0*0*9*</td> -</tr> -<tr> - <td>click</td> - <td>css=#violated-files-hotspot a:contains('Utf8Characters')</td> - <td></td> -</tr> -<tr> - <td>selectWindow</td> - <td>resource</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Violations</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*Unused local variable*</td> -</tr> -<tr> - <td>close</td> - <td>resource</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/test_execution_time_hotspot.html b/tests/integration/tests/src/test/selenium/hotspots/test_execution_time_hotspot.html deleted file mode 100644 index 6e894e9e23b..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/test_execution_time_hotspot.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>test_execution_time_hotspot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">test_execution_time_hotspot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>test_execution_time-hotspot</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>test_execution_time-hotspot</td> - <td>glob:*ClassUnderTestTest*ms*</td> -</tr> -<tr> - <td>assertText</td> - <td>test_execution_time-hotspot</td> - <td>glob:*InnerClassTest*ms*</td> -</tr> -<tr> - <td>click</td> - <td>link=ClassUnderTestTest</td> - <td></td> -</tr> -<tr> - <td>selectWindow</td> - <td>resource</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*Duration*</td> -</tr> -<tr> - <td>close</td> - <td>resource</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/hotspots/violations_hotspot.html b/tests/integration/tests/src/test/selenium/hotspots/violations_hotspot.html deleted file mode 100644 index b867fe165fe..00000000000 --- a/tests/integration/tests/src/test/selenium/hotspots/violations_hotspot.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>violations_hotspot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">violations_hotspot</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.sonar.tests:reference?page=org.sonar.plugins.core.hotspots.GwtHotspots</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>rules-hotspot</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>rules-hotspot</td> - <td>glob:*Unused local variable*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Magic Number</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Rule</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/i18n/default_locale_is_english.html b/tests/integration/tests/src/test/selenium/i18n/default_locale_is_english.html deleted file mode 100644 index a9be6c4db8d..00000000000 --- a/tests/integration/tests/src/test/selenium/i18n/default_locale_is_english.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>default_locale_is_english</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">default_locale_is_english</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference?locale=foo</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>snapshot_title</td> - <td>regexp:.*Jan.*|.*Feb.*|.*Mar.*|.*Apr.*|.*May.*|.*Jun.*|.*Jul.*|.*Aug.*|.*Sep.*|.*Oct.*|.*Nov.*|.*Dec.*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100.0%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/i18n/french-france.html b/tests/integration/tests/src/test/selenium/i18n/french-france.html deleted file mode 100644 index 39531c083d2..00000000000 --- a/tests/integration/tests/src/test/selenium/i18n/french-france.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>french-france</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">french-france</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference?locale=fr-FR</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>snapshot_title</td> - <td>regexp:.*janvier.*|.*février.*|.*mars.*|.*avril.*|.*mai.*|.*juin.*|.*juillet.*|.*août.*|.*septembre.*|.*octobre.*|.*novembre.*|.*décembre.*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100,0%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/i18n/french-switzerland.html b/tests/integration/tests/src/test/selenium/i18n/french-switzerland.html deleted file mode 100644 index b8f9756c03c..00000000000 --- a/tests/integration/tests/src/test/selenium/i18n/french-switzerland.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>french-switzerland</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">french-switzerland</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference?locale=fr-CH</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>snapshot_title</td> - <td>regexp:.*janvier.*|.*février.*|.*mars.*|.*avril.*|.*mai.*|.*juin.*|.*juillet.*|.*août.*|.*septembre.*|.*octobre.*|.*novembre.*|.*décembre.*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100.0%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/i18n/french.html b/tests/integration/tests/src/test/selenium/i18n/french.html deleted file mode 100644 index 5c3e347f480..00000000000 --- a/tests/integration/tests/src/test/selenium/i18n/french.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>french</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">french</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference?locale=fr</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>snapshot_title</td> - <td>regexp:.*janvier.*|.*février.*|.*mars.*|.*avril.*|.*mai.*|.*juin.*|.*juillet.*|.*août.*|.*septembre.*|.*octobre.*|.*novembre.*|.*décembre.*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100,0%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/i18n/japanese_duplications.html b/tests/integration/tests/src/test/selenium/i18n/japanese_duplications.html deleted file mode 100644 index 7b9e18cf840..00000000000 --- a/tests/integration/tests/src/test/selenium/i18n/japanese_duplications.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>japanese_duplications</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">japanese_duplications</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:sjis-charset</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_duplicated_files</td> - <td>3</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_duplicated_files</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=AppDuplication</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>gwt-DuplicationsPanel</td> - <td>glob:*expand*</td> -</tr> -<tr> - <td>click</td> - <td>expand-source-panel-org_sonar_tests:sjis-charset:com_test_App</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>source-panel-org_sonar_tests:sjis-charset:com_test_App</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>source-panel-org_sonar_tests:sjis-charset:com_test_App</td> - <td>glob:*証明書パス構築ã«å¤±æ•—ã—ã¾ã—ãŸã€‚*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/i18n/japanese_sources.html b/tests/integration/tests/src/test/selenium/i18n/japanese_sources.html deleted file mode 100644 index d8aabd0bbc2..00000000000 --- a/tests/integration/tests/src/test/selenium/i18n/japanese_sources.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>japanese_sources</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">japanese_sources</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:sjis-charset</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>3</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_classes</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=AppDuplication</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>sourcePanel</td> - <td>glob:*public class AppDuplication*</td> -</tr> -<tr> - <td>assertText</td> - <td>sourcePanel</td> - <td>glob:*証明書パス構築ã«å¤±æ•—ã—ã¾ã—ãŸã€‚*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/java-inner-classes/dashboard.html b/tests/integration/tests/src/test/selenium/java-inner-classes/dashboard.html deleted file mode 100644 index 6e39b3971cf..00000000000 --- a/tests/integration/tests/src/test/selenium/java-inner-classes/dashboard.html +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>dashboard</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">dashboard</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:java-inner-classes</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>11</td> -</tr> -<tr> - <td>assertText</td> - <td>m_packages</td> - <td>1</td> -</tr> -<tr> - <td>assertText</td> - <td>m_functions</td> - <td>16</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/libraries/display_tests.html b/tests/integration/tests/src/test/selenium/libraries/display_tests.html deleted file mode 100644 index 3b13b635a16..00000000000 --- a/tests/integration/tests/src/test/selenium/libraries/display_tests.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>display_tests</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">display_tests</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.apache.struts:struts-parent?page=org.sonar.plugins.design.ui.libraries.LibrariesPage</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>libs-org.apache.struts:struts-extras</td> - <td>glob:*javax.servlet*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>libs-org.apache.struts:struts-extras</td> - <td>glob:*junit*</td> -</tr> -<tr> - <td>click</td> - <td>//span[@id='testCb']/input</td> - <td>Display test libraries</td> -</tr> -<tr> - <td>waitForText</td> - <td>libs-org.apache.struts:struts-extras</td> - <td>glob:*javax.servlet*junit*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/libraries/keyword_filter.html b/tests/integration/tests/src/test/selenium/libraries/keyword_filter.html deleted file mode 100644 index b25387b8c9d..00000000000 --- a/tests/integration/tests/src/test/selenium/libraries/keyword_filter.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>keyword_filter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">keyword_filter</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.apache.struts:struts-parent?page=org.sonar.plugins.design.ui.libraries.LibrariesPage</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>libs-org.apache.struts:struts-core</td> - <td>glob:*antlr*commons-io*</td> -</tr> -<tr> - <td>type</td> - <td>keywordFilter</td> - <td>commons</td> -</tr> -<tr> - <td>waitForText</td> - <td>libs-org.apache.struts:struts-core</td> - <td>glob:*antlr*</td> -</tr> -<tr> - <td>waitForText</td> - <td>libs-org.apache.struts:struts-core</td> - <td>glob:*commons-io*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/libraries/module_libraries.html b/tests/integration/tests/src/test/selenium/libraries/module_libraries.html deleted file mode 100644 index d2b1fdc8226..00000000000 --- a/tests/integration/tests/src/test/selenium/libraries/module_libraries.html +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>module_libraries</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">module_libraries</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/plugins/resource/org.apache.struts:struts-parent?page=org.sonar.plugins.design.ui.libraries.LibrariesPage</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>libs-org.apache.struts:struts-parent</td> - <td>glob:*Struts*1.3.9*No libraries*</td> -</tr> -<tr> - <td>assertText</td> - <td>libs-org.apache.struts:struts-core</td> - <td>glob:*Struts Core*1.3.9*antlr:antlr*commons-io:commons-io*</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>libs-org.apache.struts:struts-el</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/manual_metrics/predefined_metrics.html b/tests/integration/tests/src/test/selenium/manual_metrics/predefined_metrics.html deleted file mode 100644 index 2309d1ae6ff..00000000000 --- a/tests/integration/tests/src/test/selenium/manual_metrics/predefined_metrics.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <link rel="selenium.base" href="http://localhost:9000/"/> - <title>predefined_metrics</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">predefined_metrics</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - - <tr> - <td>open</td> - <td>/metrics</td> - <td></td> - </tr> - <tr> - <td>assertTextPresent</td> - <td>Business value</td> - <td></td> - </tr> - <tr> - <td>assertTextPresent</td> - <td>Team size</td> - <td></td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/many-source-dirs.html b/tests/integration/tests/src/test/selenium/many-source-dirs.html deleted file mode 100644 index 85e50525699..00000000000 --- a/tests/integration/tests/src/test/selenium/many-source-dirs.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>many-source-dirs</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">many-source-dirs</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:many-source-dirs</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_functions</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>2</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_violations</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*FirstClass*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*SecondClass*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-1016_file_level_resources_only.html b/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-1016_file_level_resources_only.html deleted file mode 100644 index 7590c90de67..00000000000 --- a/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-1016_file_level_resources_only.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9001/" /> -<title>SONAR-1016_file_level_resources_only</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1016_file_level_resources_only</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests:reference?metric=classes</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>InnerClass$InnerClassInside</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>InnerClass</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-268.html b/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-268.html deleted file mode 100644 index 62eaccdc34b..00000000000 --- a/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-268.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-268</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-268</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>338</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>//div[@id='col_DIR']/table/tbody/tr[1]/td[1]/a[1]/img</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>hdnav</td> - <td>glob:*org.sonar.samples*</td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Lines of code</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>121</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-564_show_zero_measures.html b/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-564_show_zero_measures.html deleted file mode 100644 index 3092f1708aa..00000000000 --- a/tests/integration/tests/src/test/selenium/measures_drilldown/SONAR-564_show_zero_measures.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-564_show_zero_measures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-564_show_zero_measures</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_coverage</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_DIR</td> - <td>glob:*[default]*0.0%*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*ClassOnDefaultPackage*0.0%*InnerClass*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/measures_drilldown/dont-display-resources-without-violations.html b/tests/integration/tests/src/test/selenium/measures_drilldown/dont-display-resources-without-violations.html deleted file mode 100644 index 0becf2e403f..00000000000 --- a/tests/integration/tests/src/test/selenium/measures_drilldown/dont-display-resources-without-violations.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>dont-display-resources-without-violations</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">dont-display-resources-without-violations</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Blocker</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>No violations</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>Avoid Enum As Identifier</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/measures_drilldown/show_from_modules_to_classes.html b/tests/integration/tests/src/test/selenium/measures_drilldown/show_from_modules_to_classes.html deleted file mode 100644 index be826c9da9c..00000000000 --- a/tests/integration/tests/src/test/selenium/measures_drilldown/show_from_modules_to_classes.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>show_from_modules_to_classes</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">show_from_modules_to_classes</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests.modules:parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>39</td> -</tr> -<tr> - <td>assertText</td> - <td>col_PRJ</td> - <td>glob:*Module A*Sub-module A1*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_DIR</td> - <td>glob:*org.codehaus.sonar.samples*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*HelloA1*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/modules.html b/tests/integration/tests/src/test/selenium/modules.html deleted file mode 100644 index 72c70ca006e..00000000000 --- a/tests/integration/tests/src/test/selenium/modules.html +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>modules</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">modules</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.modules:parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_packages</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>39</td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.sonar.tests.modules:parent</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Module A</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Module B</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>Module to skip</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Module A</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Module A</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>21</td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>2</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Components</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Sub-module A1</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Sub-module A1</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>12</td> -</tr> -<tr> - <td>assertText</td> - <td>m_classes</td> - <td>1</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/plugins/settings_on_core_plugins.html b/tests/integration/tests/src/test/selenium/plugins/settings_on_core_plugins.html deleted file mode 100644 index 9a816245dac..00000000000 --- a/tests/integration/tests/src/test/selenium/plugins/settings_on_core_plugins.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>settings_on_core_plugins</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">settings_on_core_plugins</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>link=Log in</td> - <td>Log in</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/settings</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>plugins</td> - <td>glob:*Clover*Core*Design*Findbugs*Google analytics*Squid*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/SONAR-560_remove_a_rule_from_sonar_way.html b/tests/integration/tests/src/test/selenium/profiles/SONAR-560_remove_a_rule_from_sonar_way.html deleted file mode 100644 index eec3f8cfa2d..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/SONAR-560_remove_a_rule_from_sonar_way.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-560_remove_a_rule_from_sonar_way</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-560_remove_a_rule_from_sonar_way</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Sonar way</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>search_plugin</td> - <td>label=Checkstyle</td> -</tr> -<tr> - <td>type</td> - <td>searchtext</td> - <td>Need braces</td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Inactive</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Need Braces*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/activate-profile.html b/tests/integration/tests/src/test/selenium/profiles/activate-profile.html deleted file mode 100644 index 454fb7bbe75..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/activate-profile.html +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>activate_profile</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">activate_profile</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>activate_java_Sun%20checks</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to set the profile 'Sun checks' as default ?</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>is_active_java_Sun%20checks</td> - <td></td> -</tr> -<tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>activate_java_Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to set the profile 'Sonar way' as default ?</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/backup-profile.html b/tests/integration/tests/src/test/selenium/profiles/backup-profile.html deleted file mode 100644 index 88b7fca66ca..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/backup-profile.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>backup-profile</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">backup-profile</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>java</td> - <td>LANGUAGE</td> -</tr> -<tr> - <td>store</td> - <td>Integration%20tests</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>storeText</td> - <td>activated_rules_${LANGUAGE}_${PROFILE}</td> - <td>NUMBER_OF_RULES</td> -</tr> -<tr> - <td>open</td> - <td>/api/rules.xml?categories=&language=${LANGUAGE}&plugins=&priorities=&profile=${PROFILE}&status=ACTIVE</td> - <td></td> -</tr> -<tr> - <td>assertXpathCount</td> - <td>//rule</td> - <td>${NUMBER_OF_RULES}</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/bulk-change.html b/tests/integration/tests/src/test/selenium/profiles/bulk-change.html deleted file mode 100644 index 42c28dce64e..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/bulk-change.html +++ /dev/null @@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>bulk-change</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">bulk-change</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>java</td> - <td>LANGUAGE</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'copied_'+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>answerOnNextPrompt</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>copy_${LANGUAGE}_Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>answerOnNextPrompt</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-${LANGUAGE}-${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>bulk_action</td> - <td>label=Deactivate all</td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>activated_rules_${LANGUAGE}_${PROFILE}</td> - <td>0</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-${LANGUAGE}-${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>searchtext</td> - <td>unused</td> -</tr> -<tr> - <td>removeSelection</td> - <td>search_plugin</td> - <td>label=Any</td> -</tr> -<tr> - <td>addSelection</td> - <td>search_plugin</td> - <td>label=Checkstyle</td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Inactive</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>bulk_action</td> - <td>label=Activate all</td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>activated_rules_${LANGUAGE}_${PROFILE}</td> - <td>1</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/cancel-profile-creation.html b/tests/integration/tests/src/test/selenium/profiles/cancel-profile-creation.html deleted file mode 100644 index f18e0fe3215..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/cancel-profile-creation.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>cancel-profile-creation</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">cancel-profile-creation</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>canceled-profile</td> -</tr> -<tr> - <td>click</td> - <td>link=Cancel</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>//table[@id='profiles_java']/thead/tr/th[1]</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>profiles_java</td> - <td>glob:*canceled-profile*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/copy-profile.html b/tests/integration/tests/src/test/selenium/profiles/copy-profile.html deleted file mode 100644 index 55872603f47..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/copy-profile.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>copy-profile</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">copy-profile</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>javascript{'copied_'+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>storeText</td> - <td>activated_rules_java_Sonar%20way</td> - <td>RULES_COUNT</td> -</tr> -<tr> - <td>answerOnNextPrompt</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>copy_java_Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>answerOnNextPrompt</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>activated_rules_java_${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>activated_rules_java_${PROFILE}</td> - <td>${RULES_COUNT}</td> -</tr> -<tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_java_${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to delete the profile '${PROFILE}' ?</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/create_java_profile.html b/tests/integration/tests/src/test/selenium/profiles/create_java_profile.html deleted file mode 100644 index c46324ac347..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/create_java_profile.html +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>create_java_profile</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create_java_profile</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>java</td> - <td>LANGUAGE</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'test_profile_java'+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>waitForValue</td> - <td>name</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${PROFILE}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>create-submit-java</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Quality profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_${LANGUAGE}_${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to delete the profile '${PROFILE}' ?</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Profile '${PROFILE}' is deleted.</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/dashboard_links_to_used_profile.html b/tests/integration/tests/src/test/selenium/profiles/dashboard_links_to_used_profile.html deleted file mode 100644 index a72547ccaf1..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/dashboard_links_to_used_profile.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>dashboard_links_to_used_profile</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">dashboard_links_to_used_profile</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>resource_profile</td> - <td>Integration tests</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Integration tests</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:*Quality profiles*Integration tests*</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/delete-profile.html b/tests/integration/tests/src/test/selenium/profiles/delete-profile.html deleted file mode 100644 index 35cce1e3eaf..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/delete-profile.html +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>delete-profile</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">delete-profile</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>java</td> - <td>LANGUAGE</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'test_profile_'+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>waitForValue</td> - <td>name</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${PROFILE}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>create-submit-java</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_${LANGUAGE}_${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to delete the profile '${PROFILE}' ?</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Profile '${PROFILE}' is deleted</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/display-permalinks-to-tools.html b/tests/integration/tests/src/test/selenium/profiles/display-permalinks-to-tools.html deleted file mode 100644 index c9b46536c31..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/display-permalinks-to-tools.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>display-permalinks-to-tools</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">display-permalinks-to-tools</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles/index</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Sonar way</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Permalinks</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>permalinks-table</td> - <td>glob:*Checkstyle*Findbugs*PMD*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/do-not-copy-with-blank-name.html b/tests/integration/tests/src/test/selenium/profiles/do-not-copy-with-blank-name.html deleted file mode 100644 index 27d4a823df7..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/do-not-copy-with-blank-name.html +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>do-not-copy-with-blank-name</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">do-not-copy-with-blank-name</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>javascript{'test_profile_java'+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>answerOnNextPrompt</td> - <td></td> - <td></td> -</tr> -<tr> - <td>assertNotVisible</td> - <td>errormsg</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>copy_java_Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>assertPromptPresent</td> - <td>Name for the new profile</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>errormsg</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/do-not-copy-with-existing-name.html b/tests/integration/tests/src/test/selenium/profiles/do-not-copy-with-existing-name.html deleted file mode 100644 index f03cf49a6c3..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/do-not-copy-with-existing-name.html +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <link rel="selenium.base" href=""/> - <title>profile_duplication_with_name_already_exists</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">profile_duplication_with_name_already_exists</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/profiles</td> - <td></td> - </tr> - - <tr> - <td>answerOnNextPrompt</td> - <td>Sonar way</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>copy_java_Sonar%20way</td> - <td></td> - </tr> - <tr> - <td>assertPromptPresent</td> - <td>Name for the new profile</td> - <td></td> - </tr> - <tr> - <td>assertTextPresent</td> - <td>Name has already been taken</td> - <td></td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/do-not-create-profile-with-existing-name.html b/tests/integration/tests/src/test/selenium/profiles/do-not-create-profile-with-existing-name.html deleted file mode 100644 index f476d882ad0..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/do-not-create-profile-with-existing-name.html +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>do-not-create-profile-with-existing-name</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">do-not-create-profile-with-existing-name</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>Sonar way</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>create-submit-java</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>errormsg</td> - <td>glob:*already exist*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/do-not-delete-provided-profiles.html b/tests/integration/tests/src/test/selenium/profiles/do-not-delete-provided-profiles.html deleted file mode 100644 index cb3544fcf6d..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/do-not-delete-provided-profiles.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>do-not-delete-provided-profiles</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">do-not-delete-provided-profiles</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>delete_java_Sonar%20way</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/link-profile-to-project.html b/tests/integration/tests/src/test/selenium/profiles/link-profile-to-project.html deleted file mode 100644 index 7c92ed7d581..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/link-profile-to-project.html +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>link-profile-to-project</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">link-profile-to-project</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Projects</td> - <td></td> -</tr> -<tr> - <td>addSelection</td> - <td>from</td> - <td>label=Sonar tests - reference</td> -</tr> -<tr> - <td>click</td> - <td>select_right</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Profile 'Sonar way' associated to 1 projects</td> - <td></td> -</tr> -<tr> - <td>assertSelectOptions</td> - <td>to</td> - <td>Sonar tests - reference</td> -</tr> -<tr> - <td>addSelection</td> - <td>to</td> - <td>label=Sonar tests - reference</td> -</tr> -<tr> - <td>click</td> - <td>select_left</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save</td> - <td></td> -</tr> -<tr> - <td>assertSelectOptions</td> - <td>to</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/permalink-to-checkstyle-configuration.html b/tests/integration/tests/src/test/selenium/profiles/permalink-to-checkstyle-configuration.html deleted file mode 100644 index 15f76b375e8..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/permalink-to-checkstyle-configuration.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>permalink-to-checkstyle-configuration</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">permalink-to-checkstyle-configuration</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles/export?format=checkstyle&language=java&name=Sonar%2520way</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>//module[@name='Checker']</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//module[@name='Checker']/module[@name='TreeWalker']</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/permalink-to-default-checkstyle-configuration.html b/tests/integration/tests/src/test/selenium/profiles/permalink-to-default-checkstyle-configuration.html deleted file mode 100644 index bac5068633e..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/permalink-to-default-checkstyle-configuration.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>permalink-to-default-checkstyle-configuration</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">permalink-to-default-checkstyle-configuration</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles/export?language=java&format=checkstyle</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//module[@name='Checker']</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/permalink-to-pmd-configuration.html b/tests/integration/tests/src/test/selenium/profiles/permalink-to-pmd-configuration.html deleted file mode 100644 index 5e5882c30bc..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/permalink-to-pmd-configuration.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>permalink-to-pmd-configuration</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">permalink-to-pmd-configuration</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles/export?format=pmd&language=java&name=Sonar%2520way</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>//ruleset</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//ruleset/rule</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/profile-overriden-by-maven-parameter.html b/tests/integration/tests/src/test/selenium/profiles/profile-overriden-by-maven-parameter.html deleted file mode 100644 index 7b708f1460a..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/profile-overriden-by-maven-parameter.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>profile-overriden-by-maven-parameter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">profile-overriden-by-maven-parameter</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:single-classes</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>resource_profile</td> - <td>single-classes</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=single-classes</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Quality profiles</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>single-classes</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/provided-profiles-are-not-editable.html b/tests/integration/tests/src/test/selenium/profiles/provided-profiles-are-not-editable.html deleted file mode 100644 index f4828490f98..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/provided-profiles-are-not-editable.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>rule_provided_rules_profile_cant_be_modified</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">rule_provided_rules_profile_cant_be_modified</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//table[@id='result_table']//form[1]/input[@disabled='disabled'][1]</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/read-only-mode-when-anonymous-user.html b/tests/integration/tests/src/test/selenium/profiles/read-only-mode-when-anonymous-user.html deleted file mode 100644 index e5bd2485c06..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/read-only-mode-when-anonymous-user.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>read-only-mode-when-anonymous-user</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">read-only-mode-when-anonymous-user</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>activate_java_Sun%20checks</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>copy_java_Sun%20checks</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>Create</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>profiles_java</td> - <td>glob:*Copy*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>profiles_java</td> - <td>glob:*Delete*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/should_import_checkstyle_findbugs_pmd.html b/tests/integration/tests/src/test/selenium/profiles/should_import_checkstyle_findbugs_pmd.html deleted file mode 100644 index 31ead326d1e..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/should_import_checkstyle_findbugs_pmd.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>should_import_checkstyle_findbugs_pmd</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should_import_checkstyle_findbugs_pmd</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>waitForValue</td> - <td>name</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>create-form-java</td> - <td>glob:*Checkstyle*Findbugs*PMD*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/profiles/user-profiles-are-editable.html b/tests/integration/tests/src/test/selenium/profiles/user-profiles-are-editable.html deleted file mode 100644 index f5ab2feee61..00000000000 --- a/tests/integration/tests/src/test/selenium/profiles/user-profiles-are-editable.html +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>user-profiles-are-editable</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">user-profiles-are-editable</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>java</td> - <td>LANGUAGE</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'test_profile_'+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>waitForValue</td> - <td>name</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${PROFILE}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>create-submit-java</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-${LANGUAGE}-${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Inactive</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>verifyElementNotPresent</td> - <td>//form[1]/input[@disabled='disabled'][1]</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>delete_${LANGUAGE}_${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to delete the profile '${PROFILE}' ?</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_add_and_remove_column.html b/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_add_and_remove_column.html deleted file mode 100644 index c25039c4a48..00000000000 --- a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_add_and_remove_column.html +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>projects_columns_add_and_remove_column</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">projects_columns_add_and_remove_column</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>comment_lines</td> - <td>column_id</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>configure-on</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>select_add_column</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>select_add_column</td> - <td>value=${column_id}</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//span[@id="project_title_${column_id}"]</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>remove_${column_id}</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>//span[@id="project_title_${column_id}"]</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_disable_and_enable_treemap.html b/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_disable_and_enable_treemap.html deleted file mode 100644 index f73961c0770..00000000000 --- a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_disable_and_enable_treemap.html +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>projects_columns_disable_and_enable_treemap</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">projects_columns_disable_and_enable_treemap</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>comment_lines</td> - <td>column_id</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>configure-on</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Disable treemap</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>//div[@id='treemap']</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Enable treemap</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//div[@id='treemap']</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_move_column_to_left_and_right.html b/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_move_column_to_left_and_right.html deleted file mode 100644 index dc1cee7e738..00000000000 --- a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_move_column_to_left_and_right.html +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>projects_columns_move_column_to_left_and_right</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">projects_columns_move_column_to_left_and_right</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>comment_lines</td> - <td>column_id</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>configure-on</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>select_add_column</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>select_add_column</td> - <td>value=${column_id}</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>move_right_${column_id}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>move_left_${column_id}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>move_left_${column_id}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>move_right_${column_id}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>move_left_${column_id}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>move_right_comment_lines</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>move_right_${column_id}</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>move_left_${column_id}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>remove_${column_id}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_remove_default_column_sort.html b/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_remove_default_column_sort.html deleted file mode 100644 index fe285d7cbc8..00000000000 --- a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_remove_default_column_sort.html +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>projects_columns_remove_default_column_sort</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">projects_columns_remove_default_column_sort</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>comment_lines</td> - <td>column_id</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>configure-on</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>select_add_column</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>select_add_column</td> - <td>value=${column_id}</td> -</tr> -<tr> - <td>selectAndWait</td> - <td>select_default_sorting</td> - <td>value=${column_id}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>remove_${column_id}</td> - <td></td> -</tr> -<tr> - <td>assertSelectedValue</td> - <td>select_default_sorting</td> - <td>project</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_update_default_column_sort.html b/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_update_default_column_sort.html deleted file mode 100644 index cb21e85cf1f..00000000000 --- a/tests/integration/tests/src/test/selenium/projects_columns/projects_columns_update_default_column_sort.html +++ /dev/null @@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>projects_columns_update_default_column_sort</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">projects_columns_update_default_column_sort</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>comment_lines</td> - <td>column_id</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>configure-on</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>select_add_column</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>select_add_column</td> - <td>value=${column_id}</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>default_sort_on_${column_id}</td> - <td></td> -</tr> -<tr> - <td>selectAndWait</td> - <td>select_default_sorting</td> - <td>value=${column_id}</td> -</tr> -<tr> - <td>assertSelectedValue</td> - <td>select_default_sorting</td> - <td>${column_id}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>remove_${column_id}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/reviews/create_then_edit_type.html b/tests/integration/tests/src/test/selenium/reviews/create_then_edit_type.html deleted file mode 100644 index 62c422e20a7..00000000000 --- a/tests/integration/tests/src/test/selenium/reviews/create_then_edit_type.html +++ /dev/null @@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>create_then_edit_type</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create_then_edit_type</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/metrics</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{'type_'+(new Date()).getTime()}</td> - <td>REVIEW_TYPE_NAME</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'description_'+(new Date()).getTime()}</td> - <td>REVIEW_TYPE_DESCRIPTION</td> -</tr> -<tr> - <td>type</td> - <td>metric_short_name</td> - <td>${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>metric_description</td> - <td>${REVIEW_TYPE_DESCRIPTION}</td> -</tr> -<tr> - <td>select</td> - <td>metric_val_type</td> - <td>label=Percent</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${REVIEW_TYPE_NAME}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${REVIEW_TYPE_DESCRIPTION}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>edit_${REVIEW_TYPE_NAME}</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>metric_short_name</td> - <td>${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>assertValue</td> - <td>metric_description</td> - <td>${REVIEW_TYPE_DESCRIPTION}</td> -</tr> -<tr> - <td>assertSelectedLabel</td> - <td>metric_val_type</td> - <td>Percent</td> -</tr> -<tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_${REVIEW_TYPE_NAME}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Warning : all the measures will be deleted.</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/reviews/insert_then_delete_review_measure.html b/tests/integration/tests/src/test/selenium/reviews/insert_then_delete_review_measure.html deleted file mode 100644 index aae074638fe..00000000000 --- a/tests/integration/tests/src/test/selenium/reviews/insert_then_delete_review_measure.html +++ /dev/null @@ -1,196 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>insert_then_delete_review_measure</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">insert_then_delete_review_measure</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>javascript{'type_'+(new Date()).getTime()}</td> - <td>REVIEW_TYPE_NAME</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'description_'+(new Date()).getTime()}</td> - <td>REVIEW_TYPE_DESCRIPTION</td> -</tr> -<tr> - <td>store</td> - <td>Sonar tests - reference</td> - <td>PROJECT_NAME</td> -</tr> -<tr> - <td>store</td> - <td>org.sonar.tests:reference</td> - <td>PROJECT_KEY</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/metrics</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>metric_short_name</td> - <td>${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>metric_description</td> - <td>${REVIEW_TYPE_DESCRIPTION}</td> -</tr> -<tr> - <td>select</td> - <td>metric_val_type</td> - <td>label=Percent</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/${PROJECT_KEY}</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>add_review</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>review_metric_id</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>review_metric_id</td> - <td>label=${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>review_value</td> - <td>35.5</td> -</tr> -<tr> - <td>select</td> - <td>review_measure_date_1i</td> - <td>label=2008</td> -</tr> -<tr> - <td>select</td> - <td>review_measure_date_2i</td> - <td>label=January</td> -</tr> -<tr> - <td>select</td> - <td>review_measure_date_3i</td> - <td>label=20</td> -</tr> -<tr> - <td>storeValue</td> - <td>review_measure_date_1i</td> - <td>REVIEW_YEAR</td> -</tr> -<tr> - <td>storeValue</td> - <td>review_measure_date_2i</td> - <td>REVIEW_MONTH</td> -</tr> -<tr> - <td>storeValue</td> - <td>review_measure_date_3i</td> - <td>REVIEW_DAY</td> -</tr> -<tr> - <td>click</td> - <td>save_review</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>review_name_${REVIEW_TYPE_NAME}</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>review_name_${REVIEW_TYPE_NAME}</td> - <td>${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>assertText</td> - <td>review_value_${REVIEW_TYPE_NAME}</td> - <td>35.5%</td> -</tr> -<tr> - <td>assertText</td> - <td>review_date_${REVIEW_TYPE_NAME}</td> - <td>${REVIEW_YEAR}-0${REVIEW_MONTH}-${REVIEW_DAY}</td> -</tr> -<tr> - <td>open</td> - <td>/metrics</td> - <td></td> -</tr> -<tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete_${REVIEW_TYPE_NAME}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Warning : all the measures will be deleted.</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/${PROJECT_KEY}</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>review_name_${REVIEW_TYPE_NAME}</td> - <td></td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/reviews/reviews_should_not_create_review_in_futur.html b/tests/integration/tests/src/test/selenium/reviews/reviews_should_not_create_review_in_futur.html deleted file mode 100644 index 9fef8d4cbd1..00000000000 --- a/tests/integration/tests/src/test/selenium/reviews/reviews_should_not_create_review_in_futur.html +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>reviews_should_not_create_review_in_futur</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">reviews_should_not_create_review_in_futur</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>javascript{'type_'+(new Date()).getTime()}</td> - <td>REVIEW_TYPE_NAME</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'description_'+(new Date()).getTime()}</td> - <td>REVIEW_TYPE_DESCRIPTION</td> -</tr> -<tr> - <td>store</td> - <td>org.sonar.tests:reference</td> - <td>PROJECT_KEY</td> -</tr> -<tr> - <td>store</td> - <td>Sonar tests - reference</td> - <td>PROJECT_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/metrics</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>metric_short_name</td> - <td>${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>metric_description</td> - <td>${REVIEW_TYPE_DESCRIPTION}</td> -</tr> -<tr> - <td>select</td> - <td>metric_val_type</td> - <td>label=Percent</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboard/index/${PROJECT_KEY}</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>add_review</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>review_metric_id</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>review_metric_id</td> - <td>label=${REVIEW_TYPE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>review_value</td> - <td>35.5</td> -</tr> -<tr> - <td>select</td> - <td>review_measure_date_1i</td> - <td>label=2014</td> -</tr> -<tr> - <td>click</td> - <td>save_review</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>error</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/ruby-api.html b/tests/integration/tests/src/test/selenium/ruby-api.html deleted file mode 100644 index eb82f02edd2..00000000000 --- a/tests/integration/tests/src/test/selenium/ruby-api.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>ruby-api</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">ruby-api</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Ruby API tests</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>sidebar</td> - <td>glob:*Ruby API tests*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Ruby API tests</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result</td> - <td>OK</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules-on-tests.html b/tests/integration/tests/src/test/selenium/rules-on-tests.html deleted file mode 100644 index 7eaa72d06d5..00000000000 --- a/tests/integration/tests/src/test/selenium/rules-on-tests.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>rules-on-tests</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">rules-on-tests</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:rulesOnTests</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_major_violations</td> - <td>6</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Major</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>HelloTest</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Hello</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/SONAR-1000_quality_profile_with_space_or_dot.html b/tests/integration/tests/src/test/selenium/rules/SONAR-1000_quality_profile_with_space_or_dot.html deleted file mode 100644 index d1d87c743bb..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/SONAR-1000_quality_profile_with_space_or_dot.html +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-1000_quality_profile_with_space_or_dot</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1000_quality_profile_with_space_or_dot</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>javascript{'space dot. '+(new Date()).getTime()}</td> - <td>PROFILE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-java</td> - <td></td> -</tr> -<tr> - <td>waitForValue</td> - <td>name</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${PROFILE}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>create-submit-java</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=${PROFILE}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Quality profiles / java / ${PROFILE}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/check_rules_extensions.html b/tests/integration/tests/src/test/selenium/rules/check_rules_extensions.html deleted file mode 100644 index 1a249a0af2b..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/check_rules_extensions.html +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>check_rules_extensions</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">check_rules_extensions</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>Methods Count Check</td> - <td>CHECKSTYLE_EXTENSION</td> -</tr> -<tr> - <td>store</td> - <td>Maximum Methods Count Check</td> - <td>PMD_EXTENSION_1</td> -</tr> -<tr> - <td>store</td> - <td>Avoid if without using brace</td> - <td>PMD_EXTENSION_2</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Inactive</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${CHECKSTYLE_EXTENSION}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${PMD_EXTENSION_1}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${PMD_EXTENSION_2}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/copy_a_provided_profile_and_modify_a_rule_param.html b/tests/integration/tests/src/test/selenium/rules/copy_a_provided_profile_and_modify_a_rule_param.html deleted file mode 100644 index 2e863a48bbb..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/copy_a_provided_profile_and_modify_a_rule_param.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <link rel="selenium.base" href=""/> - <title>copy_a_provided_profile_and_modify_a_rule_param</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">copy_a_provided_profile_and_modify_a_rule_param</td> - </tr> - </thead> - <tbody> - <tr> - <td>store</td> - <td>javascript{'profile_'+(new Date()).getTime()}</td> - <td>PROFILE</td> - </tr> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/profiles</td> - <td></td> - </tr> - <tr> - <td>answerOnNextPrompt</td> - <td>${PROFILE}</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>copy_java_Sonar%20way</td> - <td></td> - </tr> - <tr> - <td>assertPromptPresent</td> - <td>Name for the new profile</td> - <td></td> - </tr> - <tr> - <td>verifyTextPresent</td> - <td>${PROFILE}</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>rules-java-${PROFILE}</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>rules-java-${PROFILE}</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>searchtext</td> - <td>Anon Inner Length</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>link=Anon Inner Length</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>value</td> - <td>5</td> - </tr> - <tr> - <td>click</td> - <td>//input[@name='commit' and @value='update']</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>searchtext</td> - <td>Anon Inner Length</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>link=Anon Inner Length</td> - <td></td> - </tr> - <tr> - <td>waitForTextPresent</td> - <td></td> - <td>anonymous inner classes</td> - </tr> - <tr> - <td>assertValue</td> - <td>value</td> - <td>5</td> - </tr> - <tr> - <td>open</td> - <td>/profiles</td> - <td></td> - </tr> - <tr> - <td>chooseOkOnNextConfirmation</td> - <td></td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>delete_java_${PROFILE}</td> - <td></td> - </tr> - <tr> - <td>assertConfirmation</td> - <td>Are you sure that you want to delete the profile '${PROFILE}' ?</td> - <td></td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/copy_and_edit_rule_template.html b/tests/integration/tests/src/test/selenium/rules/copy_and_edit_rule_template.html deleted file mode 100644 index 9362eaab5ae..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/copy_and_edit_rule_template.html +++ /dev/null @@ -1,181 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>copy_and_edit_rule_template</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">copy_and_edit_rule_template</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>XPath rule template</td> - <td>RULE_PARENT</td> -</tr> -<tr> - <td>store</td> - <td>javascript{'My new rule ' + (new Date()).getTime()}</td> - <td>RULE_NAME</td> -</tr> -<tr> - <td>store</td> - <td>//FieldDeclaration</td> - <td>RULE_XPATH</td> -</tr> -<tr> - <td>store</td> - <td>//ClassDeclaration</td> - <td>RULE_XPATH_EDIT</td> -</tr> -<tr> - <td>store</td> - <td>That's too bad</td> - <td>RULE_MESSAGE</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Empty%20profile</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>searchtext</td> - <td>${RULE_PARENT}</td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Inactive</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=${RULE_PARENT}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>copy-pmd%3AXPathRule</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>rule[name]</td> - <td>${RULE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>rule_param[message]</td> - <td>${RULE_MESSAGE}</td> -</tr> -<tr> - <td>type</td> - <td>rule_param[xpath]</td> - <td>${RULE_XPATH}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>//input[@value='Create']</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>1 results</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${RULE_NAME}</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=${RULE_NAME}</td> - <td></td> -</tr> -<!--<tr> - <td>waitForValue</td> - <td>value</td> - <td>${RULE_XPATH}</td> -</tr>--> -<tr> - <td>clickAndWait</td> - <td>//input[@value='Edit rule']</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>rule[name]</td> - <td>Updated ${RULE_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>rule_param[xpath]</td> - <td>${RULE_XPATH_EDIT}</td> -</tr> -<tr> - <td>type</td> - <td>rule_param[message]</td> - <td>Another message</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>//input[@value='Update']</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>${RULE_NAME}</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Updated ${RULE_NAME}</td> - <td></td> -</tr> -<tr> - <td>waitForValue</td> - <td>value</td> - <td>${RULE_XPATH_EDIT}</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/pmd_xpath_rule_extension.html b/tests/integration/tests/src/test/selenium/rules/pmd_xpath_rule_extension.html deleted file mode 100644 index 9bb23ff9f86..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/pmd_xpath_rule_extension.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>pmd_xpath_rule_extension</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">pmd_xpath_rule_extension</td></tr> -</thead><tbody> -<tr> - <td>store</td> - <td>Methods Count Check</td> - <td>CHECKSTYLE_EXTENSION</td> -</tr> -<tr> - <td>store</td> - <td>org.sonar.tests:reference</td> - <td>PROJECT_ID</td> -</tr> -<tr> - <td>store</td> - <td>Prevent use of EmptyClass</td> - <td>RULE_TITLE</td> -</tr> -<tr> - <td>open</td> - <td>/drilldown/violations/${PROJECT_ID}</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=${RULE_TITLE}</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>InterfaceWithConstants</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/rule_search.html b/tests/integration/tests/src/test/selenium/rules/rule_search.html deleted file mode 100644 index 881d277d408..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/rule_search.html +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>rule_search</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">rule_search</td></tr> -</thead><tbody> - -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Anon Inner Length</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/rule_search_verify_form_values_on_first_call.html b/tests/integration/tests/src/test/selenium/rules/rule_search_verify_form_values_on_first_call.html deleted file mode 100644 index cd42140ef57..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/rule_search_verify_form_values_on_first_call.html +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>rule_search_verify_form_values_on_first_call</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">rule_search_verify_form_values_on_first_call</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>//select[@id="search_plugin"]/option[@selected="selected"]/@value</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>//select[@id="search_status"]/option[@selected="selected"]/@value</td> - <td>ACTIVE</td> -</tr> -<tr> - <td>assertValue</td> - <td>//select[@id="search_priority"]/option[@selected="selected"]/@value</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>//input[@id="searchtext"]</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//table[@id="result_table"]//tr[100]</td> - <td></td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_all_rules.html b/tests/integration/tests/src/test/selenium/rules/search_all_rules.html deleted file mode 100644 index c73f70eb1f2..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_all_rules.html +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_all_rules</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_all_rules</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>check</td> - <td>search_mandatory</td> - <td></td> -</tr> -<tr> - <td>check</td> - <td>search_optional</td> - <td></td> -</tr> -<tr> - <td>check</td> - <td>search_inactive</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//input[@class="mandatory_button" and @checked="checked"]</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//input[@class="optional_button" and @checked="checked"]</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//input[@class="inactive_button" and @checked="checked"]</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>xpath=(//input[@class="mandatory_button" and @checked="checked"])[10]</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>xpath=(//input[@class="optional_button" and @checked="checked"])[10]</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>xpath=(//input[@class="inactive_button" and @checked="checked"])[10]</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_and_display_inactive_rules.html b/tests/integration/tests/src/test/selenium/rules/search_and_display_inactive_rules.html deleted file mode 100644 index 927b3bbb1c6..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_and_display_inactive_rules.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_and_display_inactive_rules</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_and_display_inactive_rules</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>searchtext</td> - <td>SW_SWING_METHODS_INVOKED_IN_SWING_THREAD </td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>0 results</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>+1 found in inactive rules</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>inactive-rules-link</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>1 results</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_any_rules.html b/tests/integration/tests/src/test/selenium/rules/search_any_rules.html deleted file mode 100644 index d7f6cc3a61e..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_any_rules.html +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_any_rules</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_any_rules</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>search_plugin</td> - <td>label=Any</td> -</tr> -<tr> - <td>select</td> - <td>search_priority</td> - <td>label=Any</td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Any</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>results</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>result_table</td> - <td></td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_by_plugin.html b/tests/integration/tests/src/test/selenium/rules/search_by_plugin.html deleted file mode 100644 index 74d183aaffe..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_by_plugin.html +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_by_plugin</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_by_plugin</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>search_plugin</td> - <td>label=PMD</td> -</tr> -<tr> - <td>addSelection</td> - <td>search_plugin</td> - <td>label=Checkstyle</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Checkstyle*</td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Pmd*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>result_table</td> - <td>glob:*Findbugs*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>result_table</td> - <td>glob:*Squid*</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_by_rule_priority.html b/tests/integration/tests/src/test/selenium/rules/search_by_rule_priority.html deleted file mode 100644 index 6ebb5a42f27..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_by_rule_priority.html +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_by_rule_priority</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_by_rule_priority</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>removeSelection</td> - <td>search_plugin</td> - <td>label=Any</td> -</tr> -<tr> - <td>addSelection</td> - <td>search_plugin</td> - <td>label=Checkstyle</td> -</tr> -<tr> - <td>select</td> - <td>search_priority</td> - <td>label=Critical</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>results</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Equals Hash Code*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>result_table</td> - <td>glob:*Anon Inner Length *</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_by_rule_status.html b/tests/integration/tests/src/test/selenium/rules/search_by_rule_status.html deleted file mode 100644 index 6d1d67ac633..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_by_rule_status.html +++ /dev/null @@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_by_rule_status</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_by_rule_status</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>removeSelection</td> - <td>search_plugin</td> - <td>label=Any</td> -</tr> -<tr> - <td>addSelection</td> - <td>search_plugin</td> - <td>label=Checkstyle</td> -</tr> -<tr> - <td>select</td> - <td>search_priority</td> - <td>label=Critical</td> -</tr> -<tr> - <td>addSelection</td> - <td>search_priority</td> - <td>label=Major</td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Any</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>result_table</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Abstract Class Name*</td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Anon Inner Length *</td> -</tr> -<tr> - <td>select</td> - <td>search_status</td> - <td>label=Inactive</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>result_table</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Abstract Class Name *</td> -</tr> -<tr> - <td>assertNotText</td> - <td>result_table</td> - <td>glob:*Anon Inner Length *</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/search_by_rule_title.html b/tests/integration/tests/src/test/selenium/rules/search_by_rule_title.html deleted file mode 100644 index a4085c8b735..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/search_by_rule_title.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>search_by_rule_title</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">search_by_rule_title</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/profiles</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>rules-java-Sonar%20way</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>searchtext</td> - <td>Buffering</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>submit_search</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>1 results</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>result_table</td> - <td>glob:*Inefficient String Buffering*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/rules/violations_tab.html b/tests/integration/tests/src/test/selenium/rules/violations_tab.html deleted file mode 100644 index 1dfe4605674..00000000000 --- a/tests/integration/tests/src/test/selenium/rules/violations_tab.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>violations_tab</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">violations_tab</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/violations/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=ValidWhenLexer</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*public class ValidWhenLexer*</td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*Unused Imports*</td> -</tr> -<tr> - <td>click</td> - <td>link=ValidWhenParser</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*public class ValidWhenParser*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-1007_violations_tab_when_no_violations.html b/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-1007_violations_tab_when_no_violations.html deleted file mode 100644 index a13f33ba7f5..00000000000 --- a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-1007_violations_tab_when_no_violations.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-1007_violations_tab_when_no_violations</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1007_violations_tab_when_no_violations</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/resource/index/org.sonar.tests:reference:org.sonar.samples.EmptyClass?metric=violations</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>org.sonar.samples.EmptyClass</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>gwtpage-org.sonar.plugins.core.violationsviewer.ViolationsViewer</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>gwtpage-org.sonar.plugins.core.violationsviewer.ViolationsViewer</td> - <td>glob:*0*0*0*0*0*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-300-tests_details.html b/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-300-tests_details.html deleted file mode 100644 index 997434885be..00000000000 --- a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-300-tests_details.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-300-tests_details</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-300-tests_details</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests.test-failures:moduleB?metric=skipped_tests&resource=org.sonar.tests.test-failures:moduleB:ch.hortis.sonar.samples.testFailures.moduleB.SkippedTest</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Unit test name</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>pageselector</td> - <td>glob:*SkippedTest*</td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*normalTest*</td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*skippedTest*</td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*1*+1 skipped*</td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*100%*</td> -</tr> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests.test-failures:moduleA?metric=test_success_density&resource=org.sonar.tests.test-failures:moduleA:ch.hortis.sonar.samples.testFailures.moduleA.FailTest</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Unit test name</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*3*</td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*1/1*</td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*33.3%*</td> -</tr> -<tr> - <td>click</td> - <td>link=expand</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*junit.framework.AssertionFailedError*</td> -</tr> -<tr> - <td>click</td> - <td>link=collapse</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>gwtpage-org.sonar.plugins.core.testdetailsviewer.TestsViewer</td> - <td>glob:*junit.framework.AssertionFailedError*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-517_violations_drilldown.html b/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-517_violations_drilldown.html deleted file mode 100644 index 931e40a7715..00000000000 --- a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-517_violations_drilldown.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-517_violations_drilldown</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-517_violations_drilldown</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=InnerClass</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>pageselector</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*InnerClass*</td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*Unused local variable*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-538-duplications_viewer.html b/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-538-duplications_viewer.html deleted file mode 100644 index df116a6912d..00000000000 --- a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-538-duplications_viewer.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-538-duplications_viewer</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-538-duplications_viewer</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.apache.struts:struts-parent?metric=duplicated_blocks&resource=org.apache.struts:struts-el:org.apache.strutsel.taglib.html.ELButtonTag</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>gwtpage-org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer</td> - <td>glob:*Lines:*904*</td> -</tr> -<tr> - <td>waitForText</td> - <td>gwtpage-org.sonar.plugins.core.duplicationsviewer.DuplicationsViewer</td> - <td>glob:*733*37*org.apache.strutsel.taglib.html.ELSubmitTag*37*</td> -</tr> -<tr> - <td>click</td> - <td>//div[@id='expand-source-panel-org_apache_struts:struts-el:org_apache_strutsel_taglib_html_ELSubmitTag']/a</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>source-panel-org_apache_struts:struts-el:org_apache_strutsel_taglib_html_ELSubmitTag</td> - <td>glob:*public class ELButtonTag*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-582-violations-without-lines.html b/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-582-violations-without-lines.html deleted file mode 100644 index 88bf6d2d0d2..00000000000 --- a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-582-violations-without-lines.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-582-violations-without-lines</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-582-violations-without-lines</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:single-classes</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Violations drilldown</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=SONAR582ViolationsWithoutLines</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>pageselector</td> - <td>glob:*public class SONAR582ViolationsWithoutLines*</td> -</tr> -<tr> - <td>assertText</td> - <td>pageselector</td> - <td>glob:*Newline At End Of File*package*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-659-test_success_percentage.html b/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-659-test_success_percentage.html deleted file mode 100644 index 9f36164d032..00000000000 --- a/tests/integration/tests/src/test/selenium/sourceviewers/SONAR-659-test_success_percentage.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>SONAR-659-test_success_percentage</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-659-test_success_percentage</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.test-failures:moduleA</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_test_success_density</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=FailTest</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*33.3%*</td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>testAWithFailure</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>pageselector</td> - <td>glob:*33.3%*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/static-analysis/deprecated_light_mode.html b/tests/integration/tests/src/test/selenium/static-analysis/deprecated_light_mode.html deleted file mode 100644 index 4210d8478f7..00000000000 --- a/tests/integration/tests/src/test/selenium/static-analysis/deprecated_light_mode.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>deprecated_light_mode</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">deprecated_light_mode</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:deprecated-sonar-light</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>hd</td> - <td>glob:*deprecated-sonar-light*</td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>22</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_coverage</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/static-analysis/static-analysis.html b/tests/integration/tests/src/test/selenium/static-analysis/static-analysis.html deleted file mode 100644 index a402649257f..00000000000 --- a/tests/integration/tests/src/test/selenium/static-analysis/static-analysis.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>static-analysis</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">static-analysis</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:ant-static</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_ncloc</td> - <td>22</td> -</tr> -<tr> - <td>assertText</td> - <td>m_comment_lines_density</td> - <td>4.3%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_class_complexity</td> - <td>4.0</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_coverage</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_test_success_density</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_tests</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/system_info/system_info.html b/tests/integration/tests/src/test/selenium/system_info/system_info.html deleted file mode 100644 index a8ffc1911da..00000000000 --- a/tests/integration/tests/src/test/selenium/system_info/system_info.html +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>system_info</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">system_info</td></tr> -</thead><tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - -<tr> - <td>open</td> - <td>/system/index</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>system_info</td> - <td>glob:*Apache Tomcat*</td> -</tr> -<tr> - <td>assertText</td> - <td>sonar</td> - <td>glob:*Version*2.?-SNAPSHOT*</td> -</tr> -<tr> - <td>assertText</td> - <td>plugins</td> - <td>glob:*Duplications*Findbugs*My Sonar plugin*</td> -</tr> -<tr> - <td>assertText</td> - <td>system_properties</td> - <td>glob:*java.class.path*java.specification.version*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/timemachine/SONAR-506_number_of_rules_violations_is_incorrect.html b/tests/integration/tests/src/test/selenium/timemachine/SONAR-506_number_of_rules_violations_is_incorrect.html deleted file mode 100644 index 15845369d24..00000000000 --- a/tests/integration/tests/src/test/selenium/timemachine/SONAR-506_number_of_rules_violations_is_incorrect.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-506_number_of_rules_violations_is_incorrect</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-506_number_of_rules_violations_is_incorrect</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:ant-static</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Time machine</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>timemachine_matrix</td> - <td>glob:*Rules compliance 0.0%*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/timemachine/display-first-and-last-five-events.html b/tests/integration/tests/src/test/selenium/timemachine/display-first-and-last-five-events.html deleted file mode 100644 index 190da20f27a..00000000000 --- a/tests/integration/tests/src/test/selenium/timemachine/display-first-and-last-five-events.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>display-first-and-last-five-events</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">display-first-and-last-five-events</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/timemachine/index/org.sonar.tests:timemachine</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>timemachine_matrix</td> - <td>glob:*2007-10-20*Version 0.6*2007-12-10*Version 0.7*2008-04-15*Version 0.8*2008-10-19*Version 0.9*Version 1.0-SNAPSHOT*</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/timemachine/should-not-display-rows-without-data.html b/tests/integration/tests/src/test/selenium/timemachine/should-not-display-rows-without-data.html deleted file mode 100644 index 7d26f1e36a9..00000000000 --- a/tests/integration/tests/src/test/selenium/timemachine/should-not-display-rows-without-data.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>should-not-display-rows-without-data</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">should-not-display-rows-without-data</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/timemachine/index/org.sonar.tests:ant-static</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>timemachine_matrix</td> - <td>glob:*Coverage*</td> -</tr> -<tr> - <td>open</td> - <td>/timemachine/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>timemachine_matrix</td> - <td>glob:*Coverage*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/timemachine/violations-timemachine.html b/tests/integration/tests/src/test/selenium/timemachine/violations-timemachine.html deleted file mode 100644 index 86fdf398933..00000000000 --- a/tests/integration/tests/src/test/selenium/timemachine/violations-timemachine.html +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>violations-timemachine</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">violations-timemachine</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>http://localhost:9000/dashboard/index/org.sonar.tests:violations-timemachine</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>resource_profile</td> - <td>violations-timemachine</td> -</tr> -<tr> - <td>assertText</td> - <td>m_violations</td> - <td>7</td> -</tr> -<tr> - <td>assertText</td> - <td>m_critical_violations</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_major_violations</td> - <td>4</td> -</tr> -<tr> - <td>assertText</td> - <td>m_minor_violations</td> - <td>3</td> -</tr> -<tr> - <td>assertText</td> - <td>m_blocker_violations</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_info_violations</td> - <td>0</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/treemap/treemap_check_gradient_direction.html b/tests/integration/tests/src/test/selenium/treemap/treemap_check_gradient_direction.html deleted file mode 100644 index 2cbabc12081..00000000000 --- a/tests/integration/tests/src/test/selenium/treemap/treemap_check_gradient_direction.html +++ /dev/null @@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>treemap_check_gradient_direction</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">treemap_check_gradient_direction</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/components/index/org.apache.struts:struts-parent</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>coverage</td> - <td>metric_direction_positive</td> -</tr> -<tr> - <td>store</td> - <td>duplicated_lines_density</td> - <td>metric_direction_negative</td> -</tr> -<tr> - <td>select</td> - <td>select_color_metric</td> - <td>value=${metric_direction_positive}</td> -</tr> -<tr> - <td>click</td> - <td>submit_treemap</td> - <td></td> -</tr> -<tr> - <td>waitForNotVisible</td> - <td>tm_loading</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>treemap_gradient_direction_positive</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>select_color_metric</td> - <td>value=${metric_direction_negative}</td> -</tr> -<tr> - <td>click</td> - <td>submit_treemap</td> - <td></td> -</tr> -<tr> - <td>waitForNotVisible</td> - <td>tm_loading</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>treemap_gradient_direction_negative</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/components/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>select_color_metric</td> - <td>value=${metric_direction_positive}</td> -</tr> -<tr> - <td>click</td> - <td>submit_treemap</td> - <td></td> -</tr> -<tr> - <td>waitForNotVisible</td> - <td>tm_loading</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>treemap_gradient_direction_positive</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>select_color_metric</td> - <td>value=${metric_direction_negative}</td> -</tr> -<tr> - <td>click</td> - <td>submit_treemap</td> - <td></td> -</tr> -<tr> - <td>waitForNotVisible</td> - <td>tm_loading</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>treemap_gradient_direction_negative</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/treemap/treemap_file_drilldown_link.html b/tests/integration/tests/src/test/selenium/treemap/treemap_file_drilldown_link.html deleted file mode 100644 index 2e42f865d7e..00000000000 --- a/tests/integration/tests/src/test/selenium/treemap/treemap_file_drilldown_link.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>treemap_file_drilldown_link</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">treemap_file_drilldown_link</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/components/index/org.sonar.tests:reference:org.sonar.samples.duplicated_lines_within_package</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>treemap</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link_node-1</td> - <td></td> -</tr> -<tr> - <td>waitForPopUp</td> - <td>resource</td> - <td></td> -</tr> -<tr> - <td>selectWindow</td> - <td>resource</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>pageselector</td> - <td>glob:*Violations*</td> -</tr> -<tr> - <td>close</td> - <td>resource</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/SONAR-1099-html-chars.html b/tests/integration/tests/src/test/selenium/unit_tests/SONAR-1099-html-chars.html deleted file mode 100644 index b912a440bf5..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/SONAR-1099-html-chars.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-1099-html-chars</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-1099-html-chars</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/measures/org.sonar.tests.test-failures:parent?metric=test_failures&resource=org.sonar.tests.test-failures:moduleA:ch.hortis.sonar.samples.testFailures.moduleA.FailTest</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>stack-paneltestAWithFailure</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=expand</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>stack-paneltestAWithFailure</td> - <td>glob:expected:<true> but was:<false>*expected:<true> but was:<false>*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/no-test-failures.html b/tests/integration/tests/src/test/selenium/unit_tests/no-test-failures.html deleted file mode 100644 index b578b4ac99c..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/no-test-failures.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>no-test-failures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no-test-failures</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>0</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_test_success_density</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100.0%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/no-tests-data-on-static-analysis.html b/tests/integration/tests/src/test/selenium/unit_tests/no-tests-data-on-static-analysis.html deleted file mode 100644 index d098b886196..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/no-tests-data-on-static-analysis.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>no-tests-data-on-static-analysis</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">no-tests-data-on-static-analysis</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:ant-static</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Version 1.0</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_coverage</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_test_success_density</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_tests</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/reuse-clover-and-junit-reports.html b/tests/integration/tests/src/test/selenium/unit_tests/reuse-clover-and-junit-reports.html deleted file mode 100644 index ffc48b56cf2..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/reuse-clover-and-junit-reports.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>reuse-clover-and-junit-reports</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">reuse-clover-and-junit-reports</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:ant-dynamic-clover</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>93.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>23</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>m_test_execution_time</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>0</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/reuse-cobertura-and-junit-reports.html b/tests/integration/tests/src/test/selenium/unit_tests/reuse-cobertura-and-junit-reports.html deleted file mode 100644 index 35dca44e9ff..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/reuse-cobertura-and-junit-reports.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>reuse-cobertura-and-junit-reports</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">reuse-cobertura-and-junit-reports</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:ant-dynamic-cobertura</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>40.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_line_coverage</td> - <td>40.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>4</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>m_test_execution_time</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>50.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>0</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/reuse-junit-reports-only.html b/tests/integration/tests/src/test/selenium/unit_tests/reuse-junit-reports-only.html deleted file mode 100644 index 952ebcc58dc..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/reuse-junit-reports-only.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>reuse-junit-reports-only</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">reuse-junit-reports-only</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:ant-dynamic-junit</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>4</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>m_test_execution_time</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>50.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>2</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>0</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_coverage</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/reuse-maven-coverage-reports.html b/tests/integration/tests/src/test/selenium/unit_tests/reuse-maven-coverage-reports.html deleted file mode 100644 index 648cd780895..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/reuse-maven-coverage-reports.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>reuse-maven-coverage-reports</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">reuse-maven-coverage-reports</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reuse-coverage-reports</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>2</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>m_test_execution_time</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>100.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>57.1%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/skip-surefire-tests.html b/tests/integration/tests/src/test/selenium/unit_tests/skip-surefire-tests.html deleted file mode 100644 index c96c9831764..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/skip-surefire-tests.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>skip-surefire-tests</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">skip-surefire-tests</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:skip-surefire-tests</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>0.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>0</td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>Test success</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_test_failures</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_test_errors</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/some-test-failures.html b/tests/integration/tests/src/test/selenium/unit_tests/some-test-failures.html deleted file mode 100644 index 27f0c9f1c85..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/some-test-failures.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>some-test-failures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">some-test-failures</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests.test-failures:parent</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Sonar tests - test failures</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_success_density</td> - <td>50.0%</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_failures</td> - <td>1</td> -</tr> -<tr> - <td>assertText</td> - <td>m_test_errors</td> - <td>2</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>m_test_success_density</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:*Unit test success*50.0%*</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/unit_tests/zero-when-no-tests.html b/tests/integration/tests/src/test/selenium/unit_tests/zero-when-no-tests.html deleted file mode 100644 index 8d7f7ac6127..00000000000 --- a/tests/integration/tests/src/test/selenium/unit_tests/zero-when-no-tests.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>zero-when-no-tests</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">zero-when-no-tests</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:no-tests</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>No tests</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_test_success_density</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>m_test_failures</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>m_tests</td> - <td>0</td> -</tr> -<tr> - <td>assertText</td> - <td>m_coverage</td> - <td>0.0%</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/accept-login-with-whitespace.html b/tests/integration/tests/src/test/selenium/users/accept-login-with-whitespace.html deleted file mode 100644 index 51cc7ce04ff..00000000000 --- a/tests/integration/tests/src/test/selenium/users/accept-login-with-whitespace.html +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>accept-login-with-whitespace</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">accept-login-with-whitespace</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{'user ' + new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:User*created</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log out</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Logged in</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>nav</td> - <td>glob:*Name of ${userId}*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/add-user-to-group.html b/tests/integration/tests/src/test/selenium/users/add-user-to-group.html deleted file mode 100644 index ca9618320dd..00000000000 --- a/tests/integration/tests/src/test/selenium/users/add-user-to-group.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>add-user-to-group</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">add-user-to-group</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Groups</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>groupId</td> -</tr> -<tr> - <td>type</td> - <td>group_name</td> - <td>${groupId}</td> -</tr> -<tr> - <td>type</td> - <td>group_description</td> - <td>Description of ${groupId}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>count-${groupId}</td> - <td>0</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>select-${groupId}</td> - <td></td> -</tr> -<tr> - <td>addSelection</td> - <td>from</td> - <td>label=admin</td> -</tr> -<tr> - <td>click</td> - <td>select_right</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>count-${groupId}</td> - <td>1</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/admin-has-default-groups.html b/tests/integration/tests/src/test/selenium/users/admin-has-default-groups.html deleted file mode 100644 index a6f3e419aaf..00000000000 --- a/tests/integration/tests/src/test/selenium/users/admin-has-default-groups.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>admin-has-default-groups</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">admin-has-default-groups</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>user-admin</td> - <td>glob:*sonar-administrators*</td> -</tr> -<tr> - <td>assertText</td> - <td>user-admin</td> - <td>glob:*sonar-users*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/affect-new-user-to-default-group.html b/tests/integration/tests/src/test/selenium/users/affect-new-user-to-default-group.html deleted file mode 100644 index 84d88b75e8e..00000000000 --- a/tests/integration/tests/src/test/selenium/users/affect-new-user-to-default-group.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>affect-new-user-to-default-group</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">affect-new-user-to-default-group</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:User*created</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>user-${userId}</td> - <td>glob:*Name of ${userId}*</td> -</tr> -<tr> - <td>assertText</td> - <td>user-${userId}</td> - <td>glob:*sonar-users*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>user-${userId}</td> - <td>glob:*sonar-administrators*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/affect-user-to-group.html b/tests/integration/tests/src/test/selenium/users/affect-user-to-group.html deleted file mode 100644 index 656d03a1354..00000000000 --- a/tests/integration/tests/src/test/selenium/users/affect-user-to-group.html +++ /dev/null @@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>affect-user-to-group</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">affect-user-to-group</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:User*created</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>user-${userId}</td> - <td>glob:*Name of ${userId}*</td> -</tr> -<tr> - <td>assertText</td> - <td>user-${userId}</td> - <td>glob:*sonar-users*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>user-${userId}</td> - <td>glob:*sonar-administrators*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>select-${userId}</td> - <td></td> -</tr> -<tr> - <td>addSelection</td> - <td>from</td> - <td>label=sonar-administrators</td> -</tr> -<tr> - <td>click</td> - <td>select_right</td> - <td></td> -</tr> -<tr> - <td>addSelection</td> - <td>to</td> - <td>label=sonar-users</td> -</tr> -<tr> - <td>click</td> - <td>select_left</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>user-${userId}</td> - <td>glob:*sonar-administrators*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>user-${userId}</td> - <td>glob:*sonar-users*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/authenticate-new-user.html b/tests/integration/tests/src/test/selenium/users/authenticate-new-user.html deleted file mode 100644 index 13f4ef6d575..00000000000 --- a/tests/integration/tests/src/test/selenium/users/authenticate-new-user.html +++ /dev/null @@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>authenticate-new-user</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">authenticate-new-user</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:User*created</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log out</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Log in</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Logged in</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>nav</td> - <td>glob:*Name of ${userId}*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/can-not-delete-myself.html b/tests/integration/tests/src/test/selenium/users/can-not-delete-myself.html deleted file mode 100644 index 564e87fa6c2..00000000000 --- a/tests/integration/tests/src/test/selenium/users/can-not-delete-myself.html +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>can-not-delete-myself</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">can-not-delete-myself</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete-admin</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Warning : are you sure to delete this user ?</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>user-admin</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>error</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/change-username-without-changing-password.html b/tests/integration/tests/src/test/selenium/users/change-username-without-changing-password.html deleted file mode 100644 index b7c2bc33f64..00000000000 --- a/tests/integration/tests/src/test/selenium/users/change-username-without-changing-password.html +++ /dev/null @@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>change-username-without-changing-password</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">change-username-without-changing-password</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>glob:User*created</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>edit-${userId}</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>New name of ${userId}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>info</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>user-${userId}</td> - <td>glob:*New name of ${userId}*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/confirm-password-when-creating-user.html b/tests/integration/tests/src/test/selenium/users/confirm-password-when-creating-user.html deleted file mode 100644 index 40ff5dd0a33..00000000000 --- a/tests/integration/tests/src/test/selenium/users/confirm-password-when-creating-user.html +++ /dev/null @@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>confirm-password-when-creating-user</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">confirm-password-when-creating-user</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>wrong</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>error</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>user-${userId}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/create-and-delete-groups.html b/tests/integration/tests/src/test/selenium/users/create-and-delete-groups.html deleted file mode 100644 index cb95a8be5a6..00000000000 --- a/tests/integration/tests/src/test/selenium/users/create-and-delete-groups.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>create-and-delete-groups</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create-and-delete-groups</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Groups</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>groupId</td> -</tr> -<tr> - <td>type</td> - <td>group_name</td> - <td>${groupId}</td> -</tr> -<tr> - <td>type</td> - <td>group_description</td> - <td>Description of ${groupId}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>info</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>group-${groupId}</td> - <td>glob:*Description of ${groupId}*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete-${groupId}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Are you sure to delete this group ? Members will not be deleted.</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>info</td> - <td></td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>group-${groupId}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/create-and-delete-users.html b/tests/integration/tests/src/test/selenium/users/create-and-delete-users.html deleted file mode 100644 index 2221c0ae104..00000000000 --- a/tests/integration/tests/src/test/selenium/users/create-and-delete-users.html +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>create-and-delete-users</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">create-and-delete-users</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configuration</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Users</td> - <td></td> -</tr> -<tr> - <td>store</td> - <td>javascript{new Date().getTime()}</td> - <td>userId</td> -</tr> -<tr> - <td>type</td> - <td>user_login</td> - <td>${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_name</td> - <td>Name of ${userId}</td> -</tr> -<tr> - <td>type</td> - <td>user_password</td> - <td>password</td> -</tr> -<tr> - <td>type</td> - <td>user_password_confirmation</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>delete-${userId}</td> - <td></td> -</tr> -<tr> - <td>assertConfirmation</td> - <td>Warning : are you sure to delete this user ?</td> - <td></td> -</tr> -<tr> - <td>assertVisible</td> - <td>info</td> - <td></td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>user-${userId}</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/users/my-profile-display-basic-data.html b/tests/integration/tests/src/test/selenium/users/my-profile-display-basic-data.html deleted file mode 100644 index b3951d0b0ed..00000000000 --- a/tests/integration/tests/src/test/selenium/users/my-profile-display-basic-data.html +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>my-profile-display-basic-data</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">my-profile-display-basic-data</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Administrator</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>assertText</td> - <td>name</td> - <td>Administrator</td> -</tr> -<tr> - <td>assertText</td> - <td>groups</td> - <td>glob:*sonar-administrators*sonar-users*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/violations_drilldown/SONAR-455_hide_zero_measures.html b/tests/integration/tests/src/test/selenium/violations_drilldown/SONAR-455_hide_zero_measures.html deleted file mode 100644 index 6fd6106ba47..00000000000 --- a/tests/integration/tests/src/test/selenium/violations_drilldown/SONAR-455_hide_zero_measures.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>SONAR-455_hide_zero_measures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">SONAR-455_hide_zero_measures</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Violations drilldown</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>col_FIL</td> - <td>glob:*EmptyClass*0*</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/violations_drilldown/check_violations_on_extensions.html b/tests/integration/tests/src/test/selenium/violations_drilldown/check_violations_on_extensions.html deleted file mode 100644 index b4765c3ed71..00000000000 --- a/tests/integration/tests/src/test/selenium/violations_drilldown/check_violations_on_extensions.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>check_violations_on_extensions</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">check_violations_on_extensions</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/dashboard/index/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Violations drilldown</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Maximum Methods Count Check</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Avoid if without using brace</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Methods Count Check</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/violations_drilldown/popup-on-rules.html b/tests/integration/tests/src/test/selenium/violations_drilldown/popup-on-rules.html deleted file mode 100644 index f493332b858..00000000000 --- a/tests/integration/tests/src/test/selenium/violations_drilldown/popup-on-rules.html +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="http://localhost:9000/" /> -<title>popup-on-rules</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">popup-on-rules</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:reference</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>rule1</td> - <td></td> -</tr> -<tr> - <td>waitForPopUp</td> - <td>rule</td> - <td></td> -</tr> -<tr> - <td>waitForPopUp</td> - <td>rule</td> - <td></td> -</tr> -<tr> - <td>selectWindow</td> - <td>rule</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Key:</td> - <td></td> -</tr> - -<tr> - <td>close</td> - <td>rule</td> - <td></td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/integration/tests/src/test/selenium/violations_drilldown/select_resource.html b/tests/integration/tests/src/test/selenium/violations_drilldown/select_resource.html deleted file mode 100644 index 9970a5e6af4..00000000000 --- a/tests/integration/tests/src/test/selenium/violations_drilldown/select_resource.html +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head profile="http://selenium-ide.openqa.org/profiles/test-case"> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link rel="selenium.base" href="" /> -<title>select_resource</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">select_resource</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/drilldown/violations/org.sonar.tests:reference?filter=category</td> - <td></td> -</tr> -<tr> - <td>assertText</td> - <td>col_rules</td> - <td>glob:*Unused local variable*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_DIR</td> - <td>glob:*org.sonar.samples*[default]*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*Utf8Characters*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=org.sonar.samples.duplicated_lines_within_package</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>col_FIL</td> - <td>glob:*Utf8Characters*</td> -</tr> -<tr> - <td>assertText</td> - <td>col_FIL</td> - <td>glob:*DuplicatedLinesInSamePackage1*</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/tests/volume/README.txt b/tests/volume/README.txt deleted file mode 100644 index fbb3bfbdf4f..00000000000 --- a/tests/volume/README.txt +++ /dev/null @@ -1,7 +0,0 @@ ----------- -Scenario 1 : test the Oracle limitation on the number of elements in the clause 'IN' (1 000 elements) - -# generate and analyze 1010 projects. Each project has 5 packages and 5*10 classes -mvn clean install -Pfirefox,oracle -DprojectsCount=1010 -DpackagesCount=5 -DclassesCount=10 - -# NOTE FOR MAC OS : add the parameter -Djava.io.tmpdir=/tmp
\ No newline at end of file diff --git a/tests/volume/build.xml b/tests/volume/build.xml deleted file mode 100644 index 46df0e0b89d..00000000000 --- a/tests/volume/build.xml +++ /dev/null @@ -1,71 +0,0 @@ -<project name="Volumetry tests" basedir="."> - <property environment="env"/> - - <taskdef resource="net/sf/antcontrib/antlib.xml"> - <classpath> - <pathelement location="${basedir}/lib/ant-contrib-1.0b3.jar"/> - </classpath> - </taskdef> - - <target name="analyze-projects"> - <exec executable="ruby" failonerror="true" dir="${basedir}"> - <!-- >1000 in order to test SONAR-1339 : pb with Oracle when more than 1000 projects --> - <arg line="duplicate_project.rb ${projectsCount} ${packagesCount} ${classesCount}"/> - </exec> - - <mvn args="clean install" dir="${basedir}/project" /> - <mvnsonar pom="${basedir}/project/pom.xml"/> - - <for param="pom"> - <path> - <fileset dir="${basedir}/project" includes="pom.xml.*"/> - </path> - <sequential> - <mvnsonar pom="@{pom}"/> - </sequential> - </for> - </target> - - - <macrodef name="mvn"> - <attribute name="failonerror" default="true"/> - <attribute name="args" default=""/> - <attribute name="dir"/> - - <sequential> - <echo>Executing ${maven.home}/bin/mvn @{args}</echo> - <exec dir="@{dir}" failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows"> - <arg line="@{args} -B -e"/> - </exec> - <exec dir="@{dir}" failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix"> - <arg line="@{args} -B -e"/> - </exec> - </sequential> - </macrodef> - - <macrodef name="mvnsonar"> - <attribute name="failonerror" default="true"/> - <attribute name="args" default=""/> - <attribute name="pom"/> - - <sequential> - <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows"> - <arg line="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-1:sonar @{args} -B -e"/> - <arg line="-f @{pom}"/> - <arg value='-Dsonar.jdbc.url="${jdbcUrl}"'/> - <arg value="-Dsonar.jdbc.driver=${jdbcDriver}"/> - <arg value="-Dsonar.jdbc.username=${jdbcUsername}"/> - <arg value="-Dsonar.jdbc.password=${jdbcPassword}"/> - </exec> - <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix"> - <arg line="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-1:sonar @{args} -B -e"/> - <arg line="-f @{pom}"/> - <arg value='-Dsonar.jdbc.url=${jdbcUrl}'/> - <arg value="-Dsonar.jdbc.driver=${jdbcDriver}"/> - <arg value="-Dsonar.jdbc.username=${jdbcUsername}"/> - <arg value="-Dsonar.jdbc.password=${jdbcPassword}"/> - </exec> - </sequential> - </macrodef> - -</project>
\ No newline at end of file diff --git a/tests/volume/duplicate_project.rb b/tests/volume/duplicate_project.rb deleted file mode 100644 index 80bf61c5b09..00000000000 --- a/tests/volume/duplicate_project.rb +++ /dev/null @@ -1,83 +0,0 @@ -require 'fileutils.rb' - -class SourceGenerator - - def initialize - FileUtils.remove_dir "project/src/main/java", true - end - - def template - if @template.nil? - @template = '' - f = File.open("project/Template.java", "r") - f.each_line do |line| - @template += line - end - end - @template - end - - def sources(package_name, class_name) - template.gsub(/#PACKAGE/,package_name).gsub(/#CLASS/, class_name) - end - - def generate(package_name, class_name) - content=sources(package_name, class_name) - dir="project/src/main/java/" + package_name.gsub(/\./, '/') - save(dir, "#{class_name}.java", content) - end - - private - def save(dir, filename,content) - FileUtils::mkdir_p dir - my_file = File.new("#{dir}/#{filename}", 'w') - my_file<<content - my_file.close - end -end - - -class ProjectDuplicator - def initialize - FileUtils.rm_f 'project/pom.xml' - FileUtils.rm Dir.glob('project/pom.xml.*') - end - def duplicate_pom(index) - pom=template().gsub(/#ID/,index.to_s) - filename=(index==1 ? "project/pom.xml" : "project/pom.xml.#{index}") - pom_file = File.new(filename, 'w') - pom_file<<pom - pom_file.close - end - - def template - if @template.nil? - @template = '' - f = File.open("project/pom.template", "r") - f.each_line do |line| - @template += line - end - end - @template - end - -end - -projects_count=(ARGV.size>0 ? ARGV[0].to_i : 10) -packages_count=(ARGV.size>1 ? ARGV[1].to_i : 10) -classes_count=(ARGV.size>2 ? ARGV[2].to_i : 10) - - -source_generator=SourceGenerator.new -for index_package in (1..packages_count) - for index_class in (1..classes_count) - source_generator.generate("org.sonar.tests.volume#{index_package}", "Class#{index_class}") - end -end -puts "#{classes_count * packages_count} classes saved in #{packages_count} packages." - -duplicator=ProjectDuplicator.new -for index in (1..projects_count) - puts "Generating project #{index}..." - duplicator.duplicate_pom(index) -end
\ No newline at end of file diff --git a/tests/volume/lib/ant-contrib-1.0b3.jar b/tests/volume/lib/ant-contrib-1.0b3.jar Binary files differdeleted file mode 100644 index 062537661a5..00000000000 --- a/tests/volume/lib/ant-contrib-1.0b3.jar +++ /dev/null diff --git a/tests/volume/pom.xml b/tests/volume/pom.xml deleted file mode 100644 index 519a817dcce..00000000000 --- a/tests/volume/pom.xml +++ /dev/null @@ -1,268 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar</artifactId> - <version>2.6-SNAPSHOT</version> - <relativePath>../..</relativePath> - </parent> - <groupId>org.codehaus.sonar.tests</groupId> - <artifactId>volume</artifactId> - <name>Sonar :: Volume Testing</name> - <description>High volume testing, for example to check the Oracle constraint on max number of elements in the clause IN.</description> - - <properties> - <sonar.url>http://localhost:9000/</sonar.url> - <sonar.runtimeVersion>${project.version}</sonar.runtimeVersion> - <projectsCount>1010</projectsCount> - <packagesCount>5</packagesCount> - <classesCount>5</classesCount> - </properties> - - - <build> - <testSourceDirectory>src/it/java</testSourceDirectory> - <testResources> - <testResource> - <filtering>false</filtering> - <directory>src/it/resources</directory> - </testResource> - </testResources> - - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <version>2.1</version> - <executions> - <execution> - <id>copy</id> - - <!-- must be executed after the ant task that builds the directory target/extensions --> - <phase>package</phase> - <goals> - <goal>copy</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.3.0</version> - <type>jar</type> - <overWrite>false</overWrite> - <outputDirectory>${basedir}/target/extensions/jdbc-driver/oracle</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.codehaus.sonar</groupId> - <artifactId>sonar-dev-maven-plugin</artifactId> - <executions> - <execution> - <id>start-server</id> - <phase>pre-integration-test</phase> - <configuration> - <background>true</background> - <dropDatabase>false</dropDatabase> - <extensionsDir>${basedir}/target/extensions</extensionsDir> - </configuration> - <goals> - <goal>start-war</goal> - </goals> - </execution> - <execution> - <id>stop-server</id> - <phase>post-integration-test</phase> - <goals> - <goal>stop-war</goal> - </goals> - </execution> - </executions> - </plugin> - - - <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.4</version> - <dependencies> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-nodeps</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-junit</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-trax</artifactId> - <version>1.7.1</version> - </dependency> - </dependencies> - <executions> - <execution> - <id>analyze-projects</id> - <phase>pre-integration-test</phase> - <configuration> - <tasks> - <ant dir="${basedir}" inheritRefs="true"> - <property name="projectsCount" value="${projectsCount}" /> - <property name="packagesCount" value="${packagesCount}" /> - <property name="classesCount" value="${classesCount}" /> - <property name="jdbcDriver" value="${sonar.jdbc.driver}" /> - <property name="jdbcUrl" value="${sonar.jdbc.url}" /> - <property name="jdbcUsername" value="${sonar.jdbc.username}" /> - <property name="jdbcPassword" value="${sonar.jdbc.password}" /> - <property name="sonarVersion" value="${sonar.runtimeVersion}" /> - <target name="analyze-projects" /> - </ant> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>selenium-maven-plugin</artifactId> - <version>1.0.1</version> - <executions> - <execution> - <id>start-selenium</id> - <phase>pre-integration-test</phase> - <goals> - <goal>start-server</goal> - </goals> - <configuration> - <background>true</background> - </configuration> - </execution> - <execution> - <id>stop-selenium</id> - <phase>post-integration-test</phase> - <goals> - <goal>stop-server</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <!-- Skip the normal tests, we'll run them in the integration-test phase --> - <skip>true</skip> - </configuration> - <executions> - <execution> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <skip>false</skip> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-nodeps</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-junit</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-trax</artifactId> - <version>1.7.1</version> - </dependency> - <dependency> - <groupId>com.oracle</groupId> - <artifactId>ojdbc14</artifactId> - <version>10.2.0.3.0</version> - </dependency> - <dependency> - <groupId>org.seleniumhq.selenium.client-drivers</groupId> - <artifactId>selenium-java-client-driver</artifactId> - <version>1.0.2</version> - </dependency> - </dependencies> - - <profiles> - - <!-- BROWSERS --> - <profile> - <id>firefox</id> - <properties> - <selenium.browser>*firefox</selenium.browser> - </properties> - </profile> - <profile> - <id>ie</id> - <properties> - <selenium.browser>*iexplore</selenium.browser> - </properties> - </profile> - - <profile> - <id>oracle</id> - <properties> - <sonar.jdbc.url>jdbc:oracle:thin:@localhost/XE</sonar.jdbc.url> - <sonar.jdbc.username>sonar_volume</sonar.jdbc.username> - <sonar.jdbc.password>sonar_volume</sonar.jdbc.password> - <sonar.jdbc.driver>oracle.jdbc.driver.OracleDriver</sonar.jdbc.driver> - </properties> - </profile> - - <profile> - <id>postgresql</id> - <properties> - <sonar.jdbc.url>jdbc:postgresql://localhost/sonar</sonar.jdbc.url> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.jdbc.driver>org.postgresql.Driver</sonar.jdbc.driver> - </properties> - </profile> - - <profile> - <id>mssql</id> - <properties> - <sonar.jdbc.url>jdbc:jtds:sqlserver://localhost;databaseName=SONAR;SelectMethod=Cursor</sonar.jdbc.url> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - <sonar.jdbc.driver>net.sourceforge.jtds.jdbc.Driver</sonar.jdbc.driver> - </properties> - </profile> - - <profile> - <id>mysql</id> - <properties> - <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url> - <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver> - <sonar.jdbc.username>sonar</sonar.jdbc.username> - <sonar.jdbc.password>sonar</sonar.jdbc.password> - </properties> - </profile> - </profiles> - -</project>
\ No newline at end of file diff --git a/tests/volume/project/Template.java b/tests/volume/project/Template.java deleted file mode 100644 index 94e7e574b55..00000000000 --- a/tests/volume/project/Template.java +++ /dev/null @@ -1,38 +0,0 @@ -package #PACKAGE; - -import java.util.*; - -public class #CLASS { - public void hello( ) { - System.out.println("hello");; - int index=333; - } - - public void Hello( ) { - for (int i=0 ; i<1000 ; i++) { - int j=i*2; - } - } - - public static final int FOO() { - int j=111; - j++; - Vector v = new Vector(); - Vector v2 = new Vector(); - String s=null; - System.out.println(s); - return 222; - } - - public Object clone() { - return new Object(); - } - - public String toString() { - return "xxxxxxxxxxxxxxxx"; - } - - public String toString(String s) { - return s; - } -}
\ No newline at end of file diff --git a/tests/volume/project/pom.template b/tests/volume/project/pom.template deleted file mode 100644 index 5381b7707e3..00000000000 --- a/tests/volume/project/pom.template +++ /dev/null @@ -1,10 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.sonar.tests</groupId>
- <artifactId>volume-#ID</artifactId>
- <version>1.0-SNAPSHOT</version>
- <name>Volume #ID</name>
- <properties>
- <sonar.dynamicAnalysis>false</sonar.dynamicAnalysis>
- </properties>
-</project>
\ No newline at end of file diff --git a/tests/volume/src/it/java/org/sonar/tests/volume/HomepageTest.java b/tests/volume/src/it/java/org/sonar/tests/volume/HomepageTest.java deleted file mode 100644 index 453f817198a..00000000000 --- a/tests/volume/src/it/java/org/sonar/tests/volume/HomepageTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.tests.volume; - -import com.thoughtworks.selenium.DefaultSelenium; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import static org.junit.Assert.assertTrue; - -public class HomepageTest { - private DefaultSelenium selenium; - - @Before - public void before() throws Exception { - selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://localhost:9000"); - selenium.start(); - } - - @After - public void after() { - selenium.stop(); - } - - @Test - public void testHomepage() throws Exception { - selenium.open("/"); - selenium.waitForPageToLoad("30000"); - assertTrue(selenium.isElementPresent("results")); - } - -} |