http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/pom.xml b/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/pom.xml deleted file mode 100644 index 5cb7b92..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/pom.xml +++ /dev/null @@ -1,57 +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/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.plugins.surefire</groupId> - <artifactId>Surefire-510-systemprops</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Surefire-510-systemprops</name> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <forkMode>${forkMode}</forkMode> - </configuration> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> - -</project>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java b/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java deleted file mode 100644 index 012b1fb..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java +++ /dev/null @@ -1,40 +0,0 @@ -package surefire510; - -/* - * 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. - */ - - -import junit.framework.TestCase; - -import java.io.IOException; - -public class Test1 - extends TestCase -{ - - public void test1() - throws IOException - { - String tcp = System.getProperty( "surefire.test.class.path" ); - if ( tcp != null ) - { - System.out.println( "tcp is set" ); - } - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/module1/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/module1/pom.xml b/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/module1/pom.xml deleted file mode 100644 index d173770..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/module1/pom.xml +++ /dev/null @@ -1,50 +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.apache.maven.surefire</groupId> - <artifactId>surefire-569-RunTestFromDependencyJars</artifactId> - <version>0.0.1-SNAPSHOT</version> - <relativePath>../</relativePath> - </parent> - - <groupId>org.apache.maven.plugins.surefire.dependency-jar</groupId> - <artifactId>module1</artifactId> - <version>0.0.1-SNAPSHOT</version> - - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.8.1</version> - <type>jar</type> - <scope>test</scope> - </dependency> - - <dependency> - <groupId>org.apache.maven.plugins.surefire.dependency-jar</groupId> - <artifactId>testjar</artifactId> - <version>${project.version}</version> - <classifier>tests</classifier> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <includes> - <include>**/*A*.java</include> - </includes> - <dependenciesToScan> - <dependency>org.apache.maven.plugins.surefire.dependency-jar:testjar</dependency> - </dependenciesToScan> - </configuration> - </plugin> - </plugins> - </build> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/pom.xml b/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/pom.xml deleted file mode 100644 index e69ac9d..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/pom.xml +++ /dev/null @@ -1,17 +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.apache.maven.surefire</groupId> - <artifactId>it-parent</artifactId> - <version>1.0</version> - </parent> - <artifactId>surefire-569-RunTestFromDependencyJars</artifactId> - <version>0.0.1-SNAPSHOT</version> - <packaging>pom</packaging> - - <modules> - <module>testjar</module> - <module>module1</module> - </modules> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/pom.xml b/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/pom.xml deleted file mode 100644 index 7778331..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/pom.xml +++ /dev/null @@ -1,47 +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.apache.maven.surefire</groupId> - <artifactId>surefire-569-RunTestFromDependencyJars</artifactId> - <version>0.0.1-SNAPSHOT</version> - <relativePath>../</relativePath> - </parent> - - <groupId>org.apache.maven.plugins.surefire.dependency-jar</groupId> - <artifactId>testjar</artifactId> - <version>0.0.1-SNAPSHOT</version> - - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.8.1</version> - <type>jar</type> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <artifactId>maven-jar-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>test-jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <skipTests>true</skipTests> - </configuration> - </plugin> - </plugins> - </build> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestA.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestA.java b/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestA.java deleted file mode 100644 index 404377a..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestA.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.test; - -/* - * 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. - */ - -import org.junit.Test; - -public class TestA { - - @Test - public void shouldRun() { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestB.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestB.java b/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestB.java deleted file mode 100644 index 1295e97..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-569-RunTestFromDependencyJars/testjar/src/test/java/org/test/TestB.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.test; - -/* - * 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. - */ - -import org.junit.Test; - -public class TestB { - - @Test - public void shouldRun() { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/pom.xml b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/pom.xml deleted file mode 100644 index 5b8fd7c..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/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.apache.maven.surefire-report</groupId> - <artifactId>surefire-570-multipleReportDirectories</artifactId> - <version>0.0.1-SNAPSHOT</version> - </parent> - - <groupId>org.apache.maven.surefire-report.module1</groupId> - <artifactId>module1</artifactId> - <version>0.0.1-SNAPSHOT</version> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - <type>jar</type> - <scope>test</scope> - </dependency> - </dependencies> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/main/java/org/apache/maven/surefire570/MyModule1Class.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/main/java/org/apache/maven/surefire570/MyModule1Class.java b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/main/java/org/apache/maven/surefire570/MyModule1Class.java deleted file mode 100644 index 830d0f0..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/main/java/org/apache/maven/surefire570/MyModule1Class.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.apache.maven.surefire570; - -/* - * 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. - */ - -public class MyModule1Class { - public int getFoo() { - return 42; - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/java/org/apache/maven/surefire570/MyModule1ClassTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/java/org/apache/maven/surefire570/MyModule1ClassTest.java b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/java/org/apache/maven/surefire570/MyModule1ClassTest.java deleted file mode 100644 index 521fb6c..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/java/org/apache/maven/surefire570/MyModule1ClassTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.apache.maven.surefire570; - -/* - * 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. - */ - - -import junit.framework.Assert; -import junit.framework.TestCase; -import org.apache.maven.surefire570.MyModule1Class; - -public class MyModule1ClassTest extends TestCase { - - public void testGetFooKO() { - MyModule1Class mc = new MyModule1Class(); - Assert.assertEquals(18, mc.getFoo()); - } - - public void testGetFooOK() { - MyModule1Class mc = new MyModule1Class(); - Assert.assertEquals(42, mc.getFoo()); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml deleted file mode 100644 index 6f7c3c5..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<testsuite failures="1" time="0.04" errors="0" skipped="0" tests="2" name="org.apache.maven.surefireReport.surefireReportTest.MyClassTest"> - <properties> - <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/> - <property name="sun.boot.library.path" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386"/> - <property name="java.vm.version" value="14.0-b16"/> - <property name="java.vm.vendor" value="Sun Microsystems Inc."/> - <property name="java.vendor.url" value="http://java.sun.com/"/> - <property name="path.separator" value=":"/> - <property name="java.vm.name" value="Java HotSpot(TM) Server VM"/> - <property name="file.encoding.pkg" value="sun.io"/> - <property name="user.country" value="FR"/> - <property name="sun.java.launcher" value="SUN_STANDARD"/> - <property name="sun.os.patch.level" value="unknown"/> - <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> - <property name="user.dir" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test"/> - <property name="java.runtime.version" value="1.6.0_14-b08"/> - <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/> - <property name="basedir" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test"/> - <property name="java.endorsed.dirs" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/endorsed"/> - <property name="os.arch" value="i386"/> - <property name="surefire.real.class.path" value="/tmp/surefirebooter5998945456175966466.jar"/> - <property name="java.io.tmpdir" value="/tmp"/> - <property name="line.separator" value=" -"/> - <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/> - <property name="os.name" value="Linux"/> - <property name="sun.jnu.encoding" value="UTF-8"/> - <property name="java.library.path" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib"/> - <property name="surefire.test.class.path" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/test-classes:/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/classes:/home/tsauzedde/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar:"/> - <property name="java.specification.name" value="Java Platform API Specification"/> - <property name="java.class.version" value="50.0"/> - <property name="sun.management.compiler" value="HotSpot Tiered Compilers"/> - <property name="os.version" value="2.6.28-15-generic"/> - <property name="user.home" value="/home/tsauzedde"/> - <property name="user.timezone" value=""/> - <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/> - <property name="file.encoding" value="UTF-8"/> - <property name="java.specification.version" value="1.6"/> - <property name="user.name" value="tsauzedde"/> - <property name="java.class.path" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/test-classes:/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/classes:/home/tsauzedde/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar:"/> - <property name="java.vm.specification.version" value="1.0"/> - <property name="sun.arch.data.model" value="32"/> - <property name="java.home" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre"/> - <property name="java.specification.vendor" value="Sun Microsystems Inc."/> - <property name="user.language" value="fr"/> - <property name="java.vm.info" value="mixed mode"/> - <property name="java.version" value="1.6.0_14"/> - <property name="java.ext.dirs" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext:/usr/java/packages/lib/ext"/> - <property name="sun.boot.class.path" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/classes"/> - <property name="java.vendor" value="Sun Microsystems Inc."/> - <property name="localRepository" value="/home/tsauzedde/.m2/repository"/> - <property name="file.separator" value="/"/> - <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/> - <property name="sun.cpu.endian" value="little"/> - <property name="sun.io.unicode.encoding" value="UnicodeLittle"/> - <property name="sun.desktop" value="gnome"/> - <property name="sun.cpu.isalist" value=""/> - </properties> - <testcase time="0.005" classname="org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassM1Test" name="testGetFooKO"> - <failure message="expected:<18> but was:<42>" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: expected:<18> but was:<42> - at junit.framework.Assert.fail(Assert.java:47) - at junit.framework.Assert.failNotEquals(Assert.java:280) - at junit.framework.Assert.assertEquals(Assert.java:64) - at junit.framework.Assert.assertEquals(Assert.java:198) - at junit.framework.Assert.assertEquals(Assert.java:204) - at org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest.testGetFooKO(MyClassTest.java:10) -</failure> - </testcase> - <testcase time="0" classname="org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassM1Test" name="testGetFooOK"/> -</testsuite> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt deleted file mode 100644 index 9964f13..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module1/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt +++ /dev/null @@ -1,13 +0,0 @@ -------------------------------------------------------------------------------- -Test set: org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest -------------------------------------------------------------------------------- -Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec <<< FAILURE! -testGetFooKO(org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest) Time elapsed: 0.01 sec <<< FAILURE! -junit.framework.AssertionFailedError: expected:<18> but was:<42> - at junit.framework.Assert.fail(Assert.java:47) - at junit.framework.Assert.failNotEquals(Assert.java:280) - at junit.framework.Assert.assertEquals(Assert.java:64) - at junit.framework.Assert.assertEquals(Assert.java:198) - at junit.framework.Assert.assertEquals(Assert.java:204) - at org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest.testGetFooKO(MyClassTest.java:10) - http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/pom.xml b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/pom.xml deleted file mode 100644 index 9972a51..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/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.apache.maven.surefire-report</groupId> - <artifactId>surefire-570-multipleReportDirectories</artifactId> - <version>0.0.1-SNAPSHOT</version> - </parent> - - <groupId>org.apache.maven.surefire-report.module2</groupId> - <artifactId>module2</artifactId> - <version>0.0.1-SNAPSHOT</version> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.2</version> - <type>jar</type> - <scope>test</scope> - </dependency> - </dependencies> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/main/java/org/apache/maven/surefire570/module2/MyModule2Class.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/main/java/org/apache/maven/surefire570/module2/MyModule2Class.java b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/main/java/org/apache/maven/surefire570/module2/MyModule2Class.java deleted file mode 100644 index 54a1fe3..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/main/java/org/apache/maven/surefire570/module2/MyModule2Class.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.apache.maven.surefire570.module2; -public class MyModule2Class { - public int getFoo() { - return 42; - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/java/org/apache/maven/surefire570/module2/MyModule2ClassTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/java/org/apache/maven/surefire570/module2/MyModule2ClassTest.java b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/java/org/apache/maven/surefire570/module2/MyModule2ClassTest.java deleted file mode 100644 index 4f0194a..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/java/org/apache/maven/surefire570/module2/MyModule2ClassTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.apache.maven.surefire570.module2; - -import junit.framework.Assert; -import junit.framework.TestCase; -import org.apache.maven.surefire570.module2.MyModule2Class; - -public class MyModule2ClassTest extends TestCase { - - public void testGetFooKO() { - MyModule2Class mc = new MyModule2Class(); - Assert.assertEquals(18, mc.getFoo()); - } - - public void testGetFooOK() { - MyModule2Class mc = new MyModule2Class(); - Assert.assertEquals(42, mc.getFoo()); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml deleted file mode 100644 index 2c9cbed..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/TEST-org.apache.maven.surefireReport.surefireReportTest.MyClassTest.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<testsuite failures="1" time="0.04" errors="0" skipped="0" tests="2" name="org.apache.maven.surefireReport.surefireReportTest.MyClassTest"> - <properties> - <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/> - <property name="sun.boot.library.path" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386"/> - <property name="java.vm.version" value="14.0-b16"/> - <property name="java.vm.vendor" value="Sun Microsystems Inc."/> - <property name="java.vendor.url" value="http://java.sun.com/"/> - <property name="path.separator" value=":"/> - <property name="java.vm.name" value="Java HotSpot(TM) Server VM"/> - <property name="file.encoding.pkg" value="sun.io"/> - <property name="user.country" value="FR"/> - <property name="sun.java.launcher" value="SUN_STANDARD"/> - <property name="sun.os.patch.level" value="unknown"/> - <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> - <property name="user.dir" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test"/> - <property name="java.runtime.version" value="1.6.0_14-b08"/> - <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/> - <property name="basedir" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test"/> - <property name="java.endorsed.dirs" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/endorsed"/> - <property name="os.arch" value="i386"/> - <property name="surefire.real.class.path" value="/tmp/surefirebooter5998945456175966466.jar"/> - <property name="java.io.tmpdir" value="/tmp"/> - <property name="line.separator" value=" -"/> - <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/> - <property name="os.name" value="Linux"/> - <property name="sun.jnu.encoding" value="UTF-8"/> - <property name="java.library.path" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib"/> - <property name="surefire.test.class.path" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/test-classes:/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/classes:/home/tsauzedde/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar:"/> - <property name="java.specification.name" value="Java Platform API Specification"/> - <property name="java.class.version" value="50.0"/> - <property name="sun.management.compiler" value="HotSpot Tiered Compilers"/> - <property name="os.version" value="2.6.28-15-generic"/> - <property name="user.home" value="/home/tsauzedde"/> - <property name="user.timezone" value=""/> - <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/> - <property name="file.encoding" value="UTF-8"/> - <property name="java.specification.version" value="1.6"/> - <property name="user.name" value="tsauzedde"/> - <property name="java.class.path" value="/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/test-classes:/home/tsauzedde/Work/eclipse-workspace/surefire-report-test/target/classes:/home/tsauzedde/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar:"/> - <property name="java.vm.specification.version" value="1.0"/> - <property name="sun.arch.data.model" value="32"/> - <property name="java.home" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre"/> - <property name="java.specification.vendor" value="Sun Microsystems Inc."/> - <property name="user.language" value="fr"/> - <property name="java.vm.info" value="mixed mode"/> - <property name="java.version" value="1.6.0_14"/> - <property name="java.ext.dirs" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext:/usr/java/packages/lib/ext"/> - <property name="sun.boot.class.path" value="/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/classes"/> - <property name="java.vendor" value="Sun Microsystems Inc."/> - <property name="localRepository" value="/home/tsauzedde/.m2/repository"/> - <property name="file.separator" value="/"/> - <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/> - <property name="sun.cpu.endian" value="little"/> - <property name="sun.io.unicode.encoding" value="UnicodeLittle"/> - <property name="sun.desktop" value="gnome"/> - <property name="sun.cpu.isalist" value=""/> - </properties> - <testcase time="0.005" classname="org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassM2Test" name="testGetFooKO"> - <failure message="expected:<18> but was:<42>" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: expected:<18> but was:<42> - at junit.framework.Assert.fail(Assert.java:47) - at junit.framework.Assert.failNotEquals(Assert.java:280) - at junit.framework.Assert.assertEquals(Assert.java:64) - at junit.framework.Assert.assertEquals(<Assert class="ja"></Assert>va:198) - at junit.framework.Assert.assertEquals(Assert.java:204) - at org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest.testGetFooKO(MyClassTest.java:10) -</failure> - </testcase> - <testcase time="0" classname="org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassM2Test" name="testGetFooOK"/> -</testsuite> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt deleted file mode 100644 index 9964f13..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/module2/src/test/resources/surefire-reports/org.apache.maven.surefireReport.surefireReportTest.MyClassTest.txt +++ /dev/null @@ -1,13 +0,0 @@ -------------------------------------------------------------------------------- -Test set: org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest -------------------------------------------------------------------------------- -Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec <<< FAILURE! -testGetFooKO(org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest) Time elapsed: 0.01 sec <<< FAILURE! -junit.framework.AssertionFailedError: expected:<18> but was:<42> - at junit.framework.Assert.fail(Assert.java:47) - at junit.framework.Assert.failNotEquals(Assert.java:280) - at junit.framework.Assert.assertEquals(Assert.java:64) - at junit.framework.Assert.assertEquals(Assert.java:198) - at junit.framework.Assert.assertEquals(Assert.java:204) - at org.apache.maven.surefireReport.surefireReportTest.module1.MyDummyClassTest.testGetFooKO(MyClassTest.java:10) - http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/pom.xml b/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/pom.xml deleted file mode 100644 index b3238ea..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-570-multipleReportDirectories/pom.xml +++ /dev/null @@ -1,117 +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.apache.maven.surefire-report</groupId> - <artifactId>surefire-570-multipleReportDirectories</artifactId> - <version>0.0.1-SNAPSHOT</version> - <packaging>pom</packaging> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - </plugin> - </plugins> - </pluginManagement> - </build> - - - <profiles> - <profile> - <id>maven-3</id> - <activation> - <file> - <!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) --> - <exists>${basedir}</exists> - </file> - </activation> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - <version>${surefire.version}</version> - <inherited>true</inherited> - <configuration> - <reportsDirectories> - <reportsDirectory>${basedir}/target/surefire-reports</reportsDirectory> - <reportsDirectory>${basedir}/src/test/resources/surefire-reports</reportsDirectory> - </reportsDirectories> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <version>3.1</version> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <plugin> - <artifactId>maven-site-plugin</artifactId> - <executions> - <execution> - <id>attach-descriptor</id> - <goals> - <goal>attach-descriptor</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - </plugin> - </plugins> - </build> - </profile> - </profiles> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - <version>${surefire.version}</version> - <inherited>true</inherited> - <configuration> - <reportsDirectories> - <reportsDirectory>${basedir}/target/surefire-reports</reportsDirectory> - <reportsDirectory>${basedir}/src/test/resources/surefire-reports</reportsDirectory> - </reportsDirectories> - </configuration> - <reportSets> - <reportSet> - <reports> - <report>report-only</report> - </reports> - </reportSet> - </reportSets> - </plugin> - </plugins> - </reporting> - - <modules> - <module>module1</module> - <module>module2</module> - </modules> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/pom.xml b/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/pom.xml deleted file mode 100644 index 8175d3f..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/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.apache.maven.plugins.surefire</groupId> - <artifactId>junit4-test</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>junit4-test</name> - <url>http://maven.apache.org</url> - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.8.1</version> - </dependency> - </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <forkMode>once</forkMode> - <parallel>methods</parallel> - <threadCount>10</threadCount> - <includes> - <include>**/Test*.java</include> - </includes> - </configuration> - </plugin> - </plugins> - </build> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test1.java b/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test1.java deleted file mode 100644 index 6256635..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test1.java +++ /dev/null @@ -1,90 +0,0 @@ -package surefire613; - -/* - * 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. - */ - -import org.junit.Test; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assume.*; -public class Test1 -{ - @Test - public void testWithFailingAssumption1() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption2() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption3() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption4() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption5() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption6() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption7() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption8() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption9() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption10() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption11() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption12() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption13() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption14() { - assumeThat( 2, is(3)); - } - @Test - public void testWithFailingAssumption15() { - assumeThat( 2, is(3)); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java b/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java deleted file mode 100644 index c6d5840..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java +++ /dev/null @@ -1,127 +0,0 @@ -package surefire613; - -/* - * 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. - */ - -import org.junit.Ignore; -import org.junit.Test; - -import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assume.*; -import static junit.framework.Assert.fail; - -/** - * @author Kristian Rosenvold - */ -public class Test2 -{ - @Test - public void testAllok() - { - System.out.println( "testAllok to stdout" ); - System.err.println( "testAllok to stderr" ); - } - - @Ignore - @Test - public void testWithIgnore1() - { - } - - @Ignore("Ignorance is bliss2") - @Test - public void testWithIgnore2() - { - } - - @Test - public void testiWithFail1() - { - fail( "We excpect this" ); - } - - @Test - public void testiWithFail2() - { - fail( "We excpect this" ); - } - - @Test - public void testiWithFail3() - { - fail( "We excpect this" ); - } - - @Test - public void testiWithFail4() - { - fail( "We excpect this" ); - } - - @Test - public void testWithException1() - { - System.out.println( "testWithException1 to stdout" ); - System.err.println( "testWithException1 to stderr" ); - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException2() - { - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException3() - { - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException4() - { - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException5() - { - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException6() - { - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException7() - { - throw new RuntimeException( "We expect this" ); - } - - @Test - public void testWithException8() - { - throw new RuntimeException( "We expect this" ); - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/pom.xml b/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/pom.xml deleted file mode 100644 index 412035d..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/pom.xml +++ /dev/null @@ -1,217 +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.apache.maven.plugins.surefire</groupId> - <artifactId>surefire-test</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>junit-test</name> - <url>http://maven.apache.org</url> - <properties> - <junit.version>4.8.1</junit.version> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>${junit.version}</version> - </dependency> - </dependencies> - - <build> - <testSourceDirectory>src/it/java</testSourceDirectory> - </build> - - <profiles> - <profile> - <id>all-parallel-junit3-testcases</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <skip>true</skip> - <parallel>all</parallel> - <threadCount>10</threadCount> - <perCoreThreadCount>false</perCoreThreadCount> - </configuration> - <executions> - <execution> - <id>surefire-it</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <skip>false</skip> - <testFailureIgnore>true</testFailureIgnore> - <includes> - <include>**/MySuiteTest1.java</include> - <include>**/MySuiteTest2.java</include> - <include>**/MySuiteTest3.java</include> - </includes> - <forkMode>once</forkMode> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>parallel-junit3-testcases</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <skip>true</skip> - <parallel>classes</parallel> - <threadCount>10</threadCount> - </configuration> - <executions> - <execution> - <id>surefire-it</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <skip>false</skip> - <testFailureIgnore>true</testFailureIgnore> - <includes> - <include>**/MySuiteTest1.java</include> - <include>**/MySuiteTest2.java</include> - <include>**/MySuiteTest3.java</include> - </includes> - <forkMode>once</forkMode> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>junit3-testcases</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <skip>true</skip> - </configuration> - <executions> - <execution> - <id>surefire-it</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <skip>false</skip> - <testFailureIgnore>true</testFailureIgnore> - <includes> - <include>**/MySuiteTest1.java</include> - <include>**/MySuiteTest2.java</include> - <include>**/MySuiteTest3.java</include> - </includes> - <forkMode>once</forkMode> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.maven.surefire</groupId> - <artifactId>surefire-junit47</artifactId> - <version>${surefire.version}</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>parallel-junit3-testsuite</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <skip>true</skip> - <parallel>all</parallel> - <threadCount>10</threadCount> - <perCoreThreadCount>false</perCoreThreadCount> - </configuration> - <executions> - <execution> - <id>surefire-it</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <skip>false</skip> - <testFailureIgnore>true</testFailureIgnore> - <includes> - <include>JUnit4AdapterSuiteTest</include> - </includes> - <forkMode>once</forkMode> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>junit3-testsuite</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <skip>true</skip> - </configuration> - <executions> - <execution> - <id>surefire-it</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <skip>false</skip> - <testFailureIgnore>true</testFailureIgnore> - <includes> - <include>JUnit4AdapterSuiteTest</include> - </includes> - <forkMode>once</forkMode> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.maven.surefire</groupId> - <artifactId>surefire-junit47</artifactId> - <version>${surefire.version}</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - </profile> - </profiles> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/JUnit4AdapterSuiteTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/JUnit4AdapterSuiteTest.java b/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/JUnit4AdapterSuiteTest.java deleted file mode 100644 index 47c2d75..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/JUnit4AdapterSuiteTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package mho; - -/* - * 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. - */ - -import junit.framework.JUnit4TestAdapter; -import junit.framework.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@Suite.SuiteClasses( { - MySuiteTest1.class, - MySuiteTest2.class, - MySuiteTest3.class -} ) -@RunWith( Suite.class ) -public class JUnit4AdapterSuiteTest -{ - public static Test suite() - { - return new JUnit4TestAdapter( JUnit4AdapterSuiteTest.class ); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest1.java b/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest1.java deleted file mode 100644 index edd5781..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest1.java +++ /dev/null @@ -1,48 +0,0 @@ -package mho; - -/* - * 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. - */ - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - - -public class MySuiteTest1 extends TestCase { - - public static Test suite () { - TestSuite suite = new TestSuite(); - - suite.addTest (new MySuiteTest1("testMe", 1)); - - return suite; - } - - private final int number; - - public MySuiteTest1(String name, int number) { - super (name); - this.number = number; - } - - public void testMe() { - System.out.println ("### "+ this.getClass().getName()+":"+this.getName()+" - number "+number); - assertTrue (true); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest2.java b/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest2.java deleted file mode 100644 index 6ef92f6..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest2.java +++ /dev/null @@ -1,49 +0,0 @@ -package mho; - -/* - * 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. - */ - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - - -public class MySuiteTest2 extends TestCase { - - public static Test suite () { - TestSuite suite = new TestSuite(); - - suite.addTest (new MySuiteTest2("testMe", 1)); - suite.addTest (new MySuiteTest2("testMe", 2)); - - return suite; - } - - private final int number; - - public MySuiteTest2(String name, int number) { - super (name); - this.number = number; - } - - public void testMe() { - System.out.println ("### "+ this.getClass().getName()+":"+this.getName()+" - number "+number); - assertTrue (true); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest3.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest3.java b/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest3.java deleted file mode 100644 index 6618566..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest3.java +++ /dev/null @@ -1,49 +0,0 @@ -package mho; - -/* - * 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. - */ - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -public class MySuiteTest3 extends TestCase { - - public static Test suite () { - TestSuite suite = new TestSuite(); - - suite.addTest (new MySuiteTest3("testMe", 1)); - suite.addTest (new MySuiteTest3("testMe", 2)); - suite.addTest (new MySuiteTest3("testMe", 3)); - - return suite; - } - - private final int number; - - public MySuiteTest3(String name, int number) { - super (name); - this.number = number; - } - - public void testMe() { - System.out.println ("### "+ this.getClass().getName()+":"+this.getName()+" - number "+number); - assertTrue (true); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/pom.xml b/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/pom.xml deleted file mode 100644 index 9c975a8..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/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.apache.maven.plugins.surefire</groupId> - <artifactId>junit4-test</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>junit4-test</name> - <url>http://maven.apache.org</url> - <properties> - <junit.version>4.8.1</junit.version> - <parallel>methods</parallel> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>${junit.version}</version> - </dependency> - </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <forkMode>once</forkMode> - <threadCount>5</threadCount> - <includes> - <include>**/Test*.java</include> - </includes> - </configuration> - </plugin> - </plugins> - </build> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test1.java b/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test1.java deleted file mode 100644 index 91d1201..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test1.java +++ /dev/null @@ -1,48 +0,0 @@ -package surefire628; - -/* - * 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. - */ - -import org.junit.Test; -import org.junit.BeforeClass; -import org.junit.AfterClass; - - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assume.*; -public class Test1 -{ - @Test - public void test6281() { - System.out.println( "628Test1 on" + Thread.currentThread().getName()); - } - - @BeforeClass - public static void testWithFailingAssumption2() { - System.out.println( "Before628Test1 on" + Thread.currentThread().getName()); - } - - @AfterClass - public static void testWithFailingAssumption3() { - System.out.println( "After628Test1 on" + Thread.currentThread().getName()); - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test2.java b/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test2.java deleted file mode 100644 index 5be3fa3..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-628-consoleoutputbeforeandafterclass/src/test/java/surefire628/Test2.java +++ /dev/null @@ -1,42 +0,0 @@ -package surefire628; -/* - * 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. - */ - - -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -public class Test2 -{ - @Test - public void test6281() { - System.out.println( "628Test2 on" + Thread.currentThread().getName()); - } - - @BeforeClass - public static void testWithFailingAssumption2() { - System.out.println( "BeforeClass628Test2 on" + Thread.currentThread().getName()); - } - - @AfterClass - public static void testWithFailingAssumption3() { - System.out.println( "AfterClass628Test2 on" + Thread.currentThread().getName()); - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/pom.xml b/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/pom.xml deleted file mode 100644 index 211a99d..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/pom.xml +++ /dev/null @@ -1,61 +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/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.plugins.surefire</groupId> - <artifactId>surefire-634-propertiesWarning</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Test for warning about system properties that cannot be set</name> - - <properties> - <junitVersion>4.4</junitVersion> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>${junitVersion}</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <systemPropertyVariables> - <java.library.path>${basedir}/src/main</java.library.path> - </systemPropertyVariables> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/src/test/java/junit4/BasicTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/src/test/java/junit4/BasicTest.java b/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/src/test/java/junit4/BasicTest.java deleted file mode 100644 index 2d43f8f..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-634-systemPropertiesWarning/src/test/java/junit4/BasicTest.java +++ /dev/null @@ -1,64 +0,0 @@ -package junit4; - -/* - * 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. - */ - -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - - -public class BasicTest -{ - - private boolean setUpCalled = false; - - private static boolean tearDownCalled = false; - - @Before - public void setUp() - { - setUpCalled = true; - tearDownCalled = false; - System.out.println( "Called setUp" ); - } - - @After - public void tearDown() - { - setUpCalled = false; - tearDownCalled = true; - System.out.println( "Called tearDown" ); - } - - @Test - public void testSetUp() - { - Assert.assertTrue( "setUp was not called", setUpCalled ); - } - - @AfterClass - public static void oneTimeTearDown() - { - - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/surefire-649-systemProperties/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/surefire-649-systemProperties/pom.xml b/surefire-integration-tests/src/test/resources/surefire-649-systemProperties/pom.xml deleted file mode 100644 index 985d8df..0000000 --- a/surefire-integration-tests/src/test/resources/surefire-649-systemProperties/pom.xml +++ /dev/null @@ -1,67 +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/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.maven.surefire</groupId> - <artifactId>it-parent</artifactId> - <version>1.0</version> - <relativePath>../pom.xml</relativePath> - </parent> - <groupId>org.apache.maven.plugins.surefire</groupId> - <artifactId>jiras-surefire-649-sys-props</artifactId> - <version>1.0</version> - <url>http://maven.apache.org</url> - <developers> - <developer> - <id>tibordigana</id> - <name>Tibor DigaÅa (tibor17)</name> - <email>tibordig...@apache.org</email> - <roles> - <role>Committer</role> - </roles> - <timezone>Europe/Bratislava</timezone> - </developer> - </developers> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.11</version> - <scope>test</scope> - </dependency> - </dependencies> - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <systemProperties> - <property> - <name>emptyProperty</name> - <value/> - </property> - </systemProperties> - </configuration> - </plugin> - </plugins> - </build> -</project>