http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/junit48-smartStackTrace/src/test/java/junit4/SmartStackTraceTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/junit48-smartStackTrace/src/test/java/junit4/SmartStackTraceTest.java b/surefire-integration-tests/src/test/resources/junit48-smartStackTrace/src/test/java/junit4/SmartStackTraceTest.java deleted file mode 100644 index c367ef5..0000000 --- a/surefire-integration-tests/src/test/resources/junit48-smartStackTrace/src/test/java/junit4/SmartStackTraceTest.java +++ /dev/null @@ -1,50 +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; - -import java.io.IOException; - - -public class SmartStackTraceTest -{ - - @Test(expected = RuntimeException.class) - public void shouldFailInMethodButDoesnt() - { - } - - @Test(expected = IOException.class) - public void incorrectExceptionThrown() - { - throw new RuntimeException("We fail here"); - } - - @Test(expected = IOException.class) - public void shortName() - { - } - -}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/large-test-results/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/large-test-results/pom.xml b/surefire-integration-tests/src/test/resources/large-test-results/pom.xml deleted file mode 100644 index 36caa01..0000000 --- a/surefire-integration-tests/src/test/resources/large-test-results/pom.xml +++ /dev/null @@ -1,55 +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>large-test-results</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Test for large test results</name> - - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <systemProperties> - <property><name>numTests</name><value>${numTests}</value></property> - </systemProperties> - <argLine>-Xmx1024m</argLine> - </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/large-test-results/src/test/java/largeTestResults/BasicTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java b/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java deleted file mode 100644 index bdeeb04..0000000 --- a/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java +++ /dev/null @@ -1,65 +0,0 @@ -package largeTestResults; - -/* - * 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 BasicTest - extends TestCase -{ - - private final int number; - - public BasicTest( String name, int number ) - { - super( name ); - this.number = number; - } - - public static Test suite() - { - int tests = Integer.parseInt( System.getProperty( "numTests", "20" ) ); - TestSuite suite = new TestSuite(); - for ( int i = 0; i < tests; i++ ) - { - if ( i % 4 == 0 ) - { - suite.addTest( new BasicTest( "testPass", i ) ); - } - else - { - suite.addTest( new BasicTest( "testFail", i ) ); - } - } - return suite; - } - - public void testFail() - { - fail( "failure " + number ); - } - - public void testPass() - { - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/long-windows-path/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/long-windows-path/pom.xml b/surefire-integration-tests/src/test/resources/long-windows-path/pom.xml deleted file mode 100644 index c65948c..0000000 --- a/surefire-integration-tests/src/test/resources/long-windows-path/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> - - <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>long-windows-path</artifactId> - <version>1.0</version> - - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.12</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <forkMode>once</forkMode> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/long-windows-path/src/test/java/longwindowspath/BasicTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/long-windows-path/src/test/java/longwindowspath/BasicTest.java b/surefire-integration-tests/src/test/resources/long-windows-path/src/test/java/longwindowspath/BasicTest.java deleted file mode 100644 index bd9cf36..0000000 --- a/surefire-integration-tests/src/test/resources/long-windows-path/src/test/java/longwindowspath/BasicTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package longwindowspath; - -/* - * 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 BasicTest -{ - @Test - public void test() - { - System.out.println( "SUREFIRE-1400 user.dir=" - + System.getProperty( "user.dir" ) ); - - System.out.println( "SUREFIRE-1400 surefire.real.class.path=" - + System.getProperty( "surefire.real.class.path" ) ); - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/modulepath/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/modulepath/pom.xml b/surefire-integration-tests/src/test/resources/modulepath/pom.xml deleted file mode 100644 index e4a7783..0000000 --- a/surefire-integration-tests/src/test/resources/modulepath/pom.xml +++ /dev/null @@ -1,45 +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>foo</groupId> - <artifactId>app</artifactId> - <version>1.0.0-SNAPSHOT</version> - - <name>app</name> - - <properties> - <maven.compiler.release>9</maven.compiler.release> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.6.2</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>joda-time</groupId> - <artifactId>joda-time</artifactId> - <version>2.9.9</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <version>6.11</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/modulepath/src/main/java/com/app/Main.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/modulepath/src/main/java/com/app/Main.java b/surefire-integration-tests/src/test/resources/modulepath/src/main/java/com/app/Main.java deleted file mode 100644 index 6a44492..0000000 --- a/surefire-integration-tests/src/test/resources/modulepath/src/main/java/com/app/Main.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.app; - -/* - * 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.joda.time.DateTime; - -public class Main -{ - public static void main( String... args ) - { - System.out.println( "module path => " + System.getProperty( "jdk.module.path" ) ); - System.out.println( " class path => " + System.getProperty( "java.class.path" ) ); - - DateTime dt = new DateTime(); - System.out.println( dt ); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/modulepath/src/main/java/module-info.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/modulepath/src/main/java/module-info.java b/surefire-integration-tests/src/test/resources/modulepath/src/main/java/module-info.java deleted file mode 100644 index 5f3eed4..0000000 --- a/surefire-integration-tests/src/test/resources/modulepath/src/main/java/module-info.java +++ /dev/null @@ -1,21 +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. - */ -module com.app { - requires joda.time; -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/modulepath/src/test/java/com/app/AppTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/modulepath/src/test/java/com/app/AppTest.java b/surefire-integration-tests/src/test/resources/modulepath/src/test/java/com/app/AppTest.java deleted file mode 100644 index aa836a4..0000000 --- a/surefire-integration-tests/src/test/resources/modulepath/src/test/java/com/app/AppTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.app; - -/* - * 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.testng.annotations.Test; - -@Test -public class AppTest -{ - public void testNoop() - throws Exception - { - } - - public void testMain() - { - Main.main(); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/norunnableTests/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/norunnableTests/pom.xml b/surefire-integration-tests/src/test/resources/norunnableTests/pom.xml deleted file mode 100644 index dd1a3cc..0000000 --- a/surefire-integration-tests/src/test/resources/norunnableTests/pom.xml +++ /dev/null @@ -1,58 +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>norunnabletests</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Test JUnit classes with inner classes</name> - - <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> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <failIfNoTests>true</failIfNoTests> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/norunnableTests/src/test/java/junit/norunnabletests/BasicTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/norunnableTests/src/test/java/junit/norunnabletests/BasicTest.java b/surefire-integration-tests/src/test/resources/norunnableTests/src/test/java/junit/norunnabletests/BasicTest.java deleted file mode 100644 index 30acd3e..0000000 --- a/surefire-integration-tests/src/test/resources/norunnableTests/src/test/java/junit/norunnabletests/BasicTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package junit.norunnabletests; - - -/* - * 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; - - -public class BasicTest extends TestCase -{ -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/parallel-runtime/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/parallel-runtime/pom.xml b/surefire-integration-tests/src/test/resources/parallel-runtime/pom.xml deleted file mode 100644 index f39f949..0000000 --- a/surefire-integration-tests/src/test/resources/parallel-runtime/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.apache.maven.plugins.surefire</groupId> - <artifactId>parallel-runtime</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>parallel-runtime</name> - <url>http://maven.apache.org</url> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.10</version> - </dependency> - </dependencies> - - <properties> - <parallel>classes</parallel> - <threadCount>3</threadCount> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <threadCount>${threadCount}</threadCount> - <perCoreThreadCount>false</perCoreThreadCount> - <parallel>${parallel}</parallel> - <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/parallel-runtime/src/test/java/runorder/parallel/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test1.java b/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test1.java deleted file mode 100755 index 3b6abf3..0000000 --- a/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test1.java +++ /dev/null @@ -1,69 +0,0 @@ -package runorder.parallel; -/* - * 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 Test1 -{ - - public static final int ms = 5000; - - static void sleep( int ms ) - { - long target = System.currentTimeMillis() + ms; - try - { - do - { - Thread.sleep( ms ); - } while ( System.currentTimeMillis() < target); - } - catch ( InterruptedException e ) - { - throw new RuntimeException( e ); - } - } - - @Test - public void testSleep1() - { - Test1.sleep( ms ); - } - - @Test - public void testSleep2() - { - Test1.sleep( ms ); - } - - @Test - public void testSleep3() - { - Test1.sleep( ms ); - } - - @Test - public void testSleep4() - { - Test1.sleep( ms ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test2.java b/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test2.java deleted file mode 100644 index f72c499..0000000 --- a/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test2.java +++ /dev/null @@ -1,54 +0,0 @@ -package runorder.parallel; - -/* - * 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; - -/** - * @author Kristian Rosenvold - */ -public class Test2 -{ - - @Test - public void testSleep1() - { - Test1.sleep( Test1.ms ); - } - - @Test - public void testSleep2() - { - Test1.sleep( Test1.ms ); - } - - @Test - public void testSleep3() - { - Test1.sleep( Test1.ms ); - } - - @Test - public void testSleep4() - { - Test1.sleep( Test1.ms ); - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test3.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test3.java b/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test3.java deleted file mode 100644 index 3557667..0000000 --- a/surefire-integration-tests/src/test/resources/parallel-runtime/src/test/java/runorder/parallel/Test3.java +++ /dev/null @@ -1,55 +0,0 @@ -package runorder.parallel; - -/* - * 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; - -/** - * @author Kristian Rosenvold - */ -public class Test3 -{ - @Test - public void testSleep1() - { - Test1.sleep( Test1.ms ); - } - - @Test - public void testSleep2() - { - Test1.sleep( Test1.ms ); - } - - @Test - public void testSleep3() - { - Test1.sleep( Test1.ms ); - } - - @Test - public void testSleep4() - { - Test1.sleep( Test1.ms ); - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/plain-old-java-classpath/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/plain-old-java-classpath/pom.xml b/surefire-integration-tests/src/test/resources/plain-old-java-classpath/pom.xml deleted file mode 100644 index 72bd38c..0000000 --- a/surefire-integration-tests/src/test/resources/plain-old-java-classpath/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>plain-old-java-classpath</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Test for useManifestOnlyJar=false</name> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <useManifestOnlyJar>false</useManifestOnlyJar> - </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/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java b/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java deleted file mode 100644 index e458631..0000000 --- a/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java +++ /dev/null @@ -1,87 +0,0 @@ -package plainOldJavaClasspath; - -/* - * 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.extensions.TestSetup; -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -public class BasicTest - extends TestCase -{ - - private boolean setUpCalled = false; - - private static boolean tearDownCalled = false; - - public BasicTest( String name, String extraName ) - { - super( name ); - } - - public static Test suite() - { - System.out.println( "suite" ); - TestSuite suite = new TestSuite(); - Test test = new BasicTest( "testSetUp", "dummy" ); - suite.addTest( test ); - - return new TestSetup( suite ) - { - - protected void setUp() - { - //oneTimeSetUp(); - } - - protected void tearDown() - { - oneTimeTearDown(); - } - - }; - } - - protected void setUp() - { - setUpCalled = true; - tearDownCalled = false; - System.out.println( "Called setUp" ); - } - - protected void tearDown() - { - setUpCalled = false; - tearDownCalled = true; - System.out.println( "Called tearDown" ); - } - - public void testSetUp() - { - assertTrue( "setUp was not called", setUpCalled ); - } - - public static void oneTimeTearDown() - { - assertTrue( "tearDown was not called", tearDownCalled ); - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/plexus-conflict/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/plexus-conflict/pom.xml b/surefire-integration-tests/src/test/resources/plexus-conflict/pom.xml deleted file mode 100644 index 338904a..0000000 --- a/surefire-integration-tests/src/test/resources/plexus-conflict/pom.xml +++ /dev/null @@ -1,59 +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>plexus-conflict</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Test for plexus conflict</name> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <dependencies> - <dependency> - <groupId>org.codehaus.plexus</groupId> - <artifactId>plexus-utils</artifactId> - <version>1.0.4</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java b/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java deleted file mode 100644 index 98f2615..0000000 --- a/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java +++ /dev/null @@ -1,35 +0,0 @@ -package plexusConflict; - -/* - * 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.codehaus.plexus.util.cli.Commandline; - -/** - * Conflict with latest version of plexus by using modified protected class. - */ -public class CommandlineExtender - extends Commandline -{ - public CommandlineExtender() - { - // In 1.0.4, Commandline.envVars was a Vector; in 1.4.x, it's a Map. - super.envVars.add( "" ); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/plexus-conflict/src/test/java/plexusConflict/BasicTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/plexus-conflict/src/test/java/plexusConflict/BasicTest.java b/surefire-integration-tests/src/test/resources/plexus-conflict/src/test/java/plexusConflict/BasicTest.java deleted file mode 100644 index 96f1bba..0000000 --- a/surefire-integration-tests/src/test/resources/plexus-conflict/src/test/java/plexusConflict/BasicTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package plexusConflict; - - -/* - * 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.extensions.TestSetup; -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -public class BasicTest - extends TestCase -{ - - public void testPlexusConflict() - { - CommandlineExtender ce = new CommandlineExtender(); - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/pojo-simple/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/pojo-simple/pom.xml b/surefire-integration-tests/src/test/resources/pojo-simple/pom.xml deleted file mode 100644 index 45986ac..0000000 --- a/surefire-integration-tests/src/test/resources/pojo-simple/pom.xml +++ /dev/null @@ -1,50 +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>pojo-simple</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Pojo simple test</name> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <!-- NOTE: This has no dependencies on JUnit or TestNG, just nothing --> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <testFailureIgnore>true</testFailureIgnore> - </configuration> - </plugin> - </plugins> - </build> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/pojo-simple/src/test/java/PojoTest.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/pojo-simple/src/test/java/PojoTest.java b/surefire-integration-tests/src/test/resources/pojo-simple/src/test/java/PojoTest.java deleted file mode 100644 index 8e13ecb..0000000 --- a/surefire-integration-tests/src/test/resources/pojo-simple/src/test/java/PojoTest.java +++ /dev/null @@ -1,33 +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. - */ - -public class PojoTest -{ - - public void testSuccess() - { - assert true; - } - - public void testFailure() - { - assert false; - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/pom.xml b/surefire-integration-tests/src/test/resources/pom.xml deleted file mode 100644 index e01ed4c..0000000 --- a/surefire-integration-tests/src/test/resources/pom.xml +++ /dev/null @@ -1,40 +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</groupId> - <artifactId>it-parent</artifactId> - <packaging>pom</packaging> - - <version>1.0</version> - <name>It parent</name> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <build> - <pluginManagement> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <forkMode>never</forkMode> - </configuration> - </plugin> - <plugin> - <artifactId>maven-failsafe-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <forkMode>never</forkMode> - </configuration> - </plugin> - <plugin> - <artifactId>maven-surefire-report-plugin</artifactId> - <version>${surefire.version}</version> - </plugin> - </plugins> - </pluginManagement> - </build> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/reporters/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/reporters/pom.xml b/surefire-integration-tests/src/test/resources/reporters/pom.xml deleted file mode 100644 index 2152525..0000000 --- a/surefire-integration-tests/src/test/resources/reporters/pom.xml +++ /dev/null @@ -1,49 +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>reporters</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>reporters</name> - <url>http://maven.apache.org</url> - - <dependencies> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <version>5.8</version> - <scope>test</scope> - <classifier>jdk15</classifier> - </dependency> - </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <disableXmlReport>false</disableXmlReport> - <forkMode>${forkMode}</forkMode> - <printSummary>${printSummary}</printSummary> - <useFile>true</useFile> - <redirectTestOutputToFile>${redirect.to.file}</redirectTestOutputToFile> - <includes> - <include>**/Test*.java</include> - </includes> - </configuration> - </plugin> - </plugins> - - </build> - - <properties> - <junit.version>4.8.1</junit.version> - <redirect.to.file>true</redirect.to.file> - <forkMode>once</forkMode> - <printSummary>true</printSummary> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test1.java b/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test1.java deleted file mode 100644 index e783db5..0000000 --- a/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test1.java +++ /dev/null @@ -1,30 +0,0 @@ -package reporters; - -/* - * 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; - -public class Test1 extends TestCase -{ - public void test6281() { - System.out.println( "Test1 on" + Thread.currentThread().getName()); - } - -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test2.java b/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test2.java deleted file mode 100644 index e5622d2..0000000 --- a/surefire-integration-tests/src/test/resources/reporters/src/test/java/reporters/Test2.java +++ /dev/null @@ -1,30 +0,0 @@ -package reporters; - -/* - * 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; - -public class Test2 extends TestCase -{ - public void test6281() { - System.out.println( "Test2 on" + Thread.currentThread().getName()); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/result-counting/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/result-counting/pom.xml b/surefire-integration-tests/src/test/resources/result-counting/pom.xml deleted file mode 100644 index fcb7372..0000000 --- a/surefire-integration-tests/src/test/resources/result-counting/pom.xml +++ /dev/null @@ -1,41 +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>mag</groupId> - <artifactId>junit4-test</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>junit4-test</name> - <url>http://maven.apache.org</url> - <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>${forkMode}</forkMode> - <includes> - <include>**/Test*.java</include> - <include>**/MySuiteTest1.java</include> - <include>**/MySuiteTest2.java</include> - <include>**/MySuiteTest3.java</include> - </includes> - </configuration> - </plugin> - </plugins> - </build> - <properties> - <junit.version>4.8.1</junit.version> - <forkMode>once</forkMode> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest1.java b/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest1.java deleted file mode 100644 index 137fdee..0000000 --- a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest1.java +++ /dev/null @@ -1,43 +0,0 @@ -package resultcounting; - -/* - * 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" )); - - return suite; - } - - public MySuiteTest1( String name ) { - super (name); - } - - public void testMe() { - assertTrue (true); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest2.java b/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest2.java deleted file mode 100644 index 9188290..0000000 --- a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest2.java +++ /dev/null @@ -1,44 +0,0 @@ -package resultcounting; - -/* - * 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" )); - suite.addTest (new MySuiteTest2("testMe" )); - - return suite; - } - - public MySuiteTest2( String name ) { - super (name); - } - - public void testMe() { - assertTrue (true); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest3.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest3.java b/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest3.java deleted file mode 100644 index 35c6e5b..0000000 --- a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/MySuiteTest3.java +++ /dev/null @@ -1,45 +0,0 @@ -package resultcounting; - -/* - * 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" )); - suite.addTest (new MySuiteTest3("testMe" )); - suite.addTest (new MySuiteTest3("testMe" )); - - return suite; - } - - public MySuiteTest3( String name ) { - super (name); - } - - public void testMe() { - assertTrue (true); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test1.java b/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test1.java deleted file mode 100644 index c3283d2..0000000 --- a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test1.java +++ /dev/null @@ -1,76 +0,0 @@ -package resultcounting; -/* - * 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.*; -import junit.framework.TestCase; - -public class Test1 extends TestCase -{ - public void testWithFailingAssumption1() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption2() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption3() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption4() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption5() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption6() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption7() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption8() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption9() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption10() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption11() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption12() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption13() { - assumeThat( 2, is(3)); - } - public void testWithFailingAssumption14() { - assumeThat( 2, is(3)); - } - 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/result-counting/src/test/java/resultcounting/Test2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java b/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java deleted file mode 100644 index e5d5f53..0000000 --- a/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java +++ /dev/null @@ -1,127 +0,0 @@ -package resultcounting; - -/* - * 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 - @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/runOrder/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runOrder/pom.xml b/surefire-integration-tests/src/test/resources/runOrder/pom.xml deleted file mode 100644 index 84abb53..0000000 --- a/surefire-integration-tests/src/test/resources/runOrder/pom.xml +++ /dev/null @@ -1,60 +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>runOrder</artifactId> - <version>1.0-SNAPSHOT</version> - <name>Test for runOrder</name> - - <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> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <forkMode>once</forkMode> - </configuration> - <dependencies> - </dependencies> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java b/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java deleted file mode 100644 index cbf15e0..0000000 --- a/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java +++ /dev/null @@ -1,31 +0,0 @@ -package junit.runOrder; - -/* - * 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; - -public class TestA - extends TestCase -{ - public void testTwo() - { - System.out.println( "TA" ); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java b/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java deleted file mode 100644 index 96da722..0000000 --- a/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java +++ /dev/null @@ -1,31 +0,0 @@ -package junit.runOrder; - -/* - * 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; - -public class TestB - extends TestCase -{ - public void testTwo() - { - System.out.println( "TB" ); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java b/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java deleted file mode 100644 index 4ac63c2..0000000 --- a/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java +++ /dev/null @@ -1,31 +0,0 @@ -package junit.runOrder; - -/* - * 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; - -public class TestC - extends TestCase -{ - public void testTwo() - { - System.out.println( "TC" ); - } -} http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/runorder-parallel/pom.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runorder-parallel/pom.xml b/surefire-integration-tests/src/test/resources/runorder-parallel/pom.xml deleted file mode 100644 index 1dee7d8..0000000 --- a/surefire-integration-tests/src/test/resources/runorder-parallel/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.apache.maven.plugins.surefire</groupId> - <artifactId>runorder-parallel</artifactId> - <packaging>jar</packaging> - <version>1.0-SNAPSHOT</version> - <name>runorder-parallel</name> - <url>http://maven.apache.org</url> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.10</version> - </dependency> - </dependencies> - - <properties> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire.version}</version> - <configuration> - <runOrder>balanced</runOrder> - <parallel>classesAndMethods</parallel> - <threadCountClasses>2</threadCountClasses> - <threadCountMethods>6</threadCountMethods> - <perCoreThreadCount>false</perCoreThreadCount> - <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/runorder-parallel/src/test/java/runorder/parallel/Test1.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test1.java b/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test1.java deleted file mode 100755 index d11f48a..0000000 --- a/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test1.java +++ /dev/null @@ -1,92 +0,0 @@ -package runorder.parallel; - -/* - * 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 Test1 -{ - - public Test1() - { - System.out.println( Thread.currentThread().getName() + " Constructor" ); - } - - static void sleep( int ms ) - { - long target = System.currentTimeMillis() + ms; - try - { - do - { - Thread.sleep( 1L ); - } - while ( System.currentTimeMillis() < target ); - } - catch ( InterruptedException e ) - { - throw new RuntimeException( e ); - } - } - - @Test - public void testSleep2000() - { - System.out.println( - Thread.currentThread().getName() + " Test1.sleep2000 started @ " + System.currentTimeMillis() ); - sleep( 2000 ); - } - - @Test - public void testSleep4000() - { - System.out.println( - Thread.currentThread().getName() + " Test1.sleep4000 started @ " + System.currentTimeMillis() ); - sleep( 4000 ); - } - - @Test - public void testSleep6000() - { - System.out.println( - Thread.currentThread().getName() + " Test1.sleep6000 started @ " + System.currentTimeMillis() ); - sleep( 6000 ); - } - - @BeforeClass - public static void setUpBeforeClass() - throws Exception - { - System.out.println( Thread.currentThread().getName() + " beforeClass sleep 175 " + System.currentTimeMillis() ); - Thread.sleep( 175 ); - } - - @AfterClass - public static void tearDownAfterClass() - throws Exception - { - System.out.println( Thread.currentThread().getName() + " afterClass sleep 175 " + System.currentTimeMillis() ); - Thread.sleep( 175 ); - } - - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test2.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test2.java b/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test2.java deleted file mode 100644 index dfa4f4f..0000000 --- a/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test2.java +++ /dev/null @@ -1,50 +0,0 @@ -package runorder.parallel; - -/* - * 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; - -/** - * @author Kristian Rosenvold - */ -public class Test2 -{ - - @Test - public void testSleep1000() - { - System.out.println( "Test2.sleep1000 started @ " + System.currentTimeMillis() ); - Test1.sleep( 1000 ); - } - - @Test - public void testSleep3000() - { - System.out.println( "Test2.sleep3000 started @ " + System.currentTimeMillis() ); - Test1.sleep( 3000 ); - } - - @Test - public void testSleep5000() - { - System.out.println( "Test2.sleep5000 started @ " + System.currentTimeMillis() ); - Test1.sleep( 5000 ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test3.java ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test3.java b/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test3.java deleted file mode 100644 index 0dbc57e..0000000 --- a/surefire-integration-tests/src/test/resources/runorder-parallel/src/test/java/runorder/parallel/Test3.java +++ /dev/null @@ -1,83 +0,0 @@ -package runorder.parallel; - -/* - * 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; - -/** - * @author Kristian Rosenvold - */ -public class Test3 -{ - - private void sleep( int ms ) - { - try - { - Thread.sleep( ms ); - } - catch ( InterruptedException e ) - { - throw new RuntimeException( e ); - } - } - - @Test - public void testSleep100() - { - System.out.println( "Test3.sleep100 started @ " + System.currentTimeMillis() ); - Test1.sleep( 100 ); - } - - @Test - public void testSleep300() - { - System.out.println( "Test3.sleep300 started @ " + System.currentTimeMillis() ); - Test1.sleep( 300 ); - } - - @Test - public void testSleep500() - { - System.out.println( "Test3.sleep500 started @ " + System.currentTimeMillis() ); - Test1.sleep( 500 ); - } - - @BeforeClass - public static void setUpBeforeClass() - throws Exception - { - System.out.println( - Thread.currentThread().getName() + " Test3 beforeClass sleep 175 " + System.currentTimeMillis() ); - Thread.sleep( 175 ); - } - - @AfterClass - public static void tearDownAfterClass() - throws Exception - { - System.out.println( - Thread.currentThread().getName() + " Test3 afterClass sleep 175 " + System.currentTimeMillis() ); - Thread.sleep( 175 ); - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/09f0eef8/surefire-integration-tests/src/test/resources/settings.xml ---------------------------------------------------------------------- diff --git a/surefire-integration-tests/src/test/resources/settings.xml b/surefire-integration-tests/src/test/resources/settings.xml deleted file mode 100644 index 991a3e3..0000000 --- a/surefire-integration-tests/src/test/resources/settings.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. - --> -<settings> - <profiles> - <profile> - <id>it-repo</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <repositories> - <repository> - <id>local.central</id> - <url>${localRepositoryUrl}</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> - </repository> - </repositories> - <pluginRepositories> - <pluginRepository> - <id>local.central</id> - <url>${localRepositoryUrl}</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> - </pluginRepository> - </pluginRepositories> - </profile> - </profiles> -</settings>