You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kr...@apache.org on 2013/01/09 19:58:49 UTC
[1/3] o Removed windows linefeeds
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/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
index aa979b4..39ca6e3 100644
--- 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
@@ -1,30 +1,30 @@
-package mho;
-
-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);
- }
-}
+package mho;
+
+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/126f4495/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestA.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestA.java b/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestA.java
index aaee6f7..b34e410 100644
--- a/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestA.java
+++ b/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestA.java
@@ -1,29 +1,29 @@
-package surefire685;
-/*
- * 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() {
- }
-}
+package surefire685;
+/*
+ * 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() {
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestB.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestB.java b/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestB.java
index 43cf56d..6e272d7 100644
--- a/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestB.java
+++ b/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestB.java
@@ -1,29 +1,29 @@
-package surefire685;
-/*
- * 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() {
- }
-}
+package surefire685;
+/*
+ * 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() {
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestC.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestC.java b/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestC.java
index 35e246d..68bd647 100644
--- a/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestC.java
+++ b/surefire-integration-tests/src/test/resources/surefire-685-commaseparatedIncludes/src/test/java/surefire685/TestC.java
@@ -1,29 +1,29 @@
-package surefire685;
-/*
- * 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() {
- }
-}
+package surefire685;
+/*
+ * 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() {
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
index 6a5dde5..08768f7 100644
--- a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
+++ b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
@@ -1,37 +1,37 @@
-<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>test</groupId>
- <artifactId>cyril</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>cyril</name>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>jmock</groupId>
- <artifactId>jmock</artifactId>
- <version>1.1.0</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.5.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire.version}</version>
- </plugin>
- </plugins>
- </build>
-</project>
+<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>test</groupId>
+ <artifactId>cyril</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <name>cyril</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>jmock</groupId>
+ <artifactId>jmock</artifactId>
+ <version>1.1.0</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.5.1</version>
+ </plugin>
+ <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/126f4495/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/FirstTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/FirstTest.java b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/FirstTest.java
index 12d305c..12cb23e 100644
--- a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/FirstTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/FirstTest.java
@@ -1,36 +1,36 @@
-package cyril.test;
-
-
-import org.jmock.Mock;
-import org.jmock.MockObjectTestCase;
-import org.junit.Test;
-
-
-public class FirstTest
- extends MockObjectTestCase
-{
-
- private Mock myServiceMock;
-
- @Override
- protected void setUp()
- throws Exception
- {
- myServiceMock = mock( MyService.class );
- }
-
-
- @Test
- public void test()
- {
-
- Message myMessage = new Message( "MyMessage" );
- // Expectations
- myServiceMock.expects( once() ).method( "writeMessage" ).with( eq( myMessage ) ).will(
- returnValue( myMessage ) );
-
- ( (MyService) myServiceMock.proxy() ).writeMessage( null );
-
- }
-
-}
+package cyril.test;
+
+
+import org.jmock.Mock;
+import org.jmock.MockObjectTestCase;
+import org.junit.Test;
+
+
+public class FirstTest
+ extends MockObjectTestCase
+{
+
+ private Mock myServiceMock;
+
+ @Override
+ protected void setUp()
+ throws Exception
+ {
+ myServiceMock = mock( MyService.class );
+ }
+
+
+ @Test
+ public void test()
+ {
+
+ Message myMessage = new Message( "MyMessage" );
+ // Expectations
+ myServiceMock.expects( once() ).method( "writeMessage" ).with( eq( myMessage ) ).will(
+ returnValue( myMessage ) );
+
+ ( (MyService) myServiceMock.proxy() ).writeMessage( null );
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/IgnoredTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/IgnoredTest.java b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/IgnoredTest.java
index 80ff312..02250ee 100644
--- a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/IgnoredTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/IgnoredTest.java
@@ -1,16 +1,16 @@
-package cyril.test;
-
-import org.junit.Test;
-
-
-public class IgnoredTest
-{
-
-
- @Test
- public void test()
- {
- System.out.println( "My test is running fine" );
- }
-
-}
+package cyril.test;
+
+import org.junit.Test;
+
+
+public class IgnoredTest
+{
+
+
+ @Test
+ public void test()
+ {
+ System.out.println( "My test is running fine" );
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/Message.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/Message.java b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/Message.java
index c3e4249..0c08805 100644
--- a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/Message.java
+++ b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/Message.java
@@ -1,18 +1,18 @@
-package cyril.test;
-
-public class Message
-{
-
- private String content;
-
- public Message( String content )
- {
- this.content = content;
- }
-
- public int hashCode()
- {
- throw new NullPointerException();
- }
-
-}
+package cyril.test;
+
+public class Message
+{
+
+ private String content;
+
+ public Message( String content )
+ {
+ this.content = content;
+ }
+
+ public int hashCode()
+ {
+ throw new NullPointerException();
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyService.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyService.java b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyService.java
index 892351f..8fa59f7 100644
--- a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyService.java
+++ b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyService.java
@@ -1,8 +1,8 @@
-package cyril.test;
-
-public interface MyService
-{
-
- public Message writeMessage( Message aMessage );
-
-}
+package cyril.test;
+
+public interface MyService
+{
+
+ public Message writeMessage( Message aMessage );
+
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyServiceImpl.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyServiceImpl.java b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyServiceImpl.java
index fc7f2b9..f390ade 100644
--- a/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyServiceImpl.java
+++ b/surefire-integration-tests/src/test/resources/surefire-818-ignored-tests-on-npe/src/test/java/cyril/test/MyServiceImpl.java
@@ -1,12 +1,12 @@
-package cyril.test;
-
-public class MyServiceImpl
- implements MyService
-{
-
- public Message writeMessage( Message aMessage )
- {
- return aMessage;
- }
-
-}
+package cyril.test;
+
+public class MyServiceImpl
+ implements MyService
+{
+
+ public Message writeMessage( Message aMessage )
+ {
+ return aMessage;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/JunitParamsTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/JunitParamsTest.java b/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/JunitParamsTest.java
index 42f5951..3ccd814 100644
--- a/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/JunitParamsTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/JunitParamsTest.java
@@ -1,51 +1,51 @@
-package surefire.testcase;
-/*
- * 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 java.util.Arrays;
-import java.util.Collection;
-
-import junitparams.JUnitParamsRunner;
-import junitparams.Parameters;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
-
-/**
- * Surefire JunitParams test.
- */
-@RunWith( JUnitParamsRunner.class )
-public class JunitParamsTest
-{
-
- @Parameters( method = "parameters" )
- @Test
- public void testSum( int a, int b, int expected )
- {
- assertThat( a + b, equalTo( expected ) );
- }
-
- public Collection<Integer[]> parameters()
- {
- Integer[][] parameters = { { 1, 2, 3 }, { 2, 3, 5 }, { 3, 4, 7 }, };
- return Arrays.asList( parameters );
- }
-}
+package surefire.testcase;
+/*
+ * 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 java.util.Arrays;
+import java.util.Collection;
+
+import junitparams.JUnitParamsRunner;
+import junitparams.Parameters;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.hamcrest.CoreMatchers.equalTo;
+import static org.junit.Assert.assertThat;
+
+/**
+ * Surefire JunitParams test.
+ */
+@RunWith( JUnitParamsRunner.class )
+public class JunitParamsTest
+{
+
+ @Parameters( method = "parameters" )
+ @Test
+ public void testSum( int a, int b, int expected )
+ {
+ assertThat( a + b, equalTo( expected ) );
+ }
+
+ public Collection<Integer[]> parameters()
+ {
+ Integer[][] parameters = { { 1, 2, 3 }, { 2, 3, 5 }, { 3, 4, 7 }, };
+ return Arrays.asList( parameters );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/NonJunitParamsTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/NonJunitParamsTest.java b/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/NonJunitParamsTest.java
index fc70b2e..6cffeeb 100644
--- a/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/NonJunitParamsTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-822-legal-JUnit4-descriptions/src/test/java/surefire/testcase/NonJunitParamsTest.java
@@ -1,37 +1,37 @@
-package surefire.testcase;
-/*
- * 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.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
-
-/**
- * Surefire non-JunitParams test.
- */
-public class NonJunitParamsTest
-{
-
- @Test
- public void testSum()
- {
- assertThat( 1 + 2, equalTo( 3 ) );
- }
-}
+package surefire.testcase;
+/*
+ * 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.hamcrest.CoreMatchers.equalTo;
+import static org.junit.Assert.assertThat;
+
+/**
+ * Surefire non-JunitParams test.
+ */
+public class NonJunitParamsTest
+{
+
+ @Test
+ public void testSum()
+ {
+ assertThat( 1 + 2, equalTo( 3 ) );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-847-testngfail/pom.xml
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-847-testngfail/pom.xml b/surefire-integration-tests/src/test/resources/surefire-847-testngfail/pom.xml
index 0b9b882..c321c6e 100644
--- a/surefire-integration-tests/src/test/resources/surefire-847-testngfail/pom.xml
+++ b/surefire-integration-tests/src/test/resources/surefire-847-testngfail/pom.xml
@@ -1,67 +1,67 @@
-<?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.codehaus.jira</groupId>
- <artifactId>surefire-847</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <dependencies>
- <dependency>
- <groupId>com.google.inject</groupId>
- <artifactId>guice</artifactId>
- <version>3.0</version>
- <classifier>no_aop</classifier>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>6.5.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire.version}</version>
- <configuration>
- <trimStackTrace>false</trimStackTrace>
- <workingDirectory>${project.build.directory}/test-classes</workingDirectory>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
- <properties>
- <defaultSuiteFile>${basedir}/src/test/resources/suite.xml</defaultSuiteFile>
- </properties>
-</project>
+<?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.codehaus.jira</groupId>
+ <artifactId>surefire-847</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <dependencies>
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <version>3.0</version>
+ <classifier>no_aop</classifier>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>6.5.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire.version}</version>
+ <configuration>
+ <trimStackTrace>false</trimStackTrace>
+ <workingDirectory>${project.build.directory}/test-classes</workingDirectory>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+ <properties>
+ <defaultSuiteFile>${basedir}/src/test/resources/suite.xml</defaultSuiteFile>
+ </properties>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/pom.xml
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/pom.xml b/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/pom.xml
index eb634e7..ecafe11 100644
--- a/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/pom.xml
+++ b/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/pom.xml
@@ -1,41 +1,41 @@
-<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>groupId</groupId>
- <artifactId>artifactId</artifactId>
- <version>1.0-SNAPSHOT</version>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire.version}</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.surefire</groupId>
- <artifactId>surefire-testng</artifactId>
- <version>${surefire.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.surefire</groupId>
- <artifactId>surefire-junit47</artifactId>
- <version>${surefire.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.10</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>6.8</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
+<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>groupId</groupId>
+ <artifactId>artifactId</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire.version}</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-testng</artifactId>
+ <version>${surefire.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-junit47</artifactId>
+ <version>${surefire.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>6.8</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/JUnitTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/JUnitTest.java b/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/JUnitTest.java
index 434a95c..29d84a0 100644
--- a/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/JUnitTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/JUnitTest.java
@@ -1,12 +1,12 @@
-package com.company;
-
-import org.junit.Assert;
-import org.junit.Test;
-
-public class JUnitTest {
- @Test
- public void test() {
- //Assert.assertTrue(true);
- Assert.assertTrue(false);
- }
-}
+package com.company;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class JUnitTest {
+ @Test
+ public void test() {
+ //Assert.assertTrue(true);
+ Assert.assertTrue(false);
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/TestNGTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/TestNGTest.java b/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/TestNGTest.java
index 480372d..5d70f9f 100644
--- a/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/TestNGTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-926-2-provider-failure/src/test/java/com/company/TestNGTest.java
@@ -1,12 +1,12 @@
-package com.company;
-
-import org.testng.Assert;
-import org.testng.annotations.Test;
-
-public class TestNGTest {
- @Test
- public void test() {
- Assert.assertTrue(true);
- //Assert.assertTrue(false);
- }
-}
+package com.company;
+
+import org.testng.Assert;
+import org.testng.annotations.Test;
+
+public class TestNGTest {
+ @Test
+ public void test() {
+ Assert.assertTrue(true);
+ //Assert.assertTrue(false);
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/pom.xml
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/pom.xml b/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/pom.xml
index baff4b4..8f34a43 100644
--- a/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/pom.xml
+++ b/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/pom.xml
@@ -1,48 +1,48 @@
-<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>com.mycompany</groupId>
- <artifactId>TestFailed</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
-
- <name>TestFailed</name>
- <url>http://maven.apache.org</url>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire.version}</version>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>6.8</version>
- </dependency>
- </dependencies>
-</project>
+<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>com.mycompany</groupId>
+ <artifactId>TestFailed</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <name>TestFailed</name>
+ <url>http://maven.apache.org</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.7</source>
+ <target>1.7</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire.version}</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>6.8</version>
+ </dependency>
+ </dependencies>
+</project>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/main/java/com/mycompany/testfailed/App.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/main/java/com/mycompany/testfailed/App.java b/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/main/java/com/mycompany/testfailed/App.java
index 4562c1a..f5544af 100644
--- a/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/main/java/com/mycompany/testfailed/App.java
+++ b/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/main/java/com/mycompany/testfailed/App.java
@@ -1,13 +1,13 @@
-package com.mycompany.testfailed;
-
-/**
- * Hello world!
- *
- */
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
- }
-}
+package com.mycompany.testfailed;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/test/java/com/mycompany/testfailed/AppTest.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/test/java/com/mycompany/testfailed/AppTest.java b/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/test/java/com/mycompany/testfailed/AppTest.java
index 492f833..57c0d92 100644
--- a/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/test/java/com/mycompany/testfailed/AppTest.java
+++ b/surefire-integration-tests/src/test/resources/surefire-931-provider-failure/src/test/java/com/mycompany/testfailed/AppTest.java
@@ -1,18 +1,18 @@
-package com.mycompany.testfailed;
-
-import junit.framework.TestCase;
-import org.testng.annotations.Test;
-
-
-/**
- * Unit test for simple App.
- */
-public class AppTest
- extends TestCase
-{
- @Test(groups = "deleteLocation", dependsOnGroups =
- {
- "postLocation", "getLocation"
- })
- public void removeNonExistentLocation() {}
-}
+package com.mycompany.testfailed;
+
+import junit.framework.TestCase;
+import org.testng.annotations.Test;
+
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ @Test(groups = "deleteLocation", dependsOnGroups =
+ {
+ "postLocation", "getLocation"
+ })
+ public void removeNonExistentLocation() {}
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-providers/surefire-junit3/src/test/java/org/apache/maven/surefire/junit/JUnitTestSetTest.java
----------------------------------------------------------------------
diff --git a/surefire-providers/surefire-junit3/src/test/java/org/apache/maven/surefire/junit/JUnitTestSetTest.java b/surefire-providers/surefire-junit3/src/test/java/org/apache/maven/surefire/junit/JUnitTestSetTest.java
index 4265116..229ea8b 100644
--- a/surefire-providers/surefire-junit3/src/test/java/org/apache/maven/surefire/junit/JUnitTestSetTest.java
+++ b/surefire-providers/surefire-junit3/src/test/java/org/apache/maven/surefire/junit/JUnitTestSetTest.java
@@ -1,120 +1,120 @@
-package org.apache.maven.surefire.junit;
-
-/*
- * 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 java.util.ArrayList;
-import java.util.List;
-import org.apache.maven.surefire.common.junit3.JUnit3Reflector;
-import org.apache.maven.surefire.report.ReportEntry;
-import org.apache.maven.surefire.report.RunListener;
-import org.apache.maven.surefire.testset.TestSetFailedException;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-public class JUnitTestSetTest
- extends TestCase
-{
-
- public void testExecuteSuiteClass()
- throws TestSetFailedException
- {
- ClassLoader testClassLoader = this.getClass().getClassLoader();
- JUnit3Reflector reflector = new JUnit3Reflector( testClassLoader );
- JUnitTestSet testSet = new JUnitTestSet( Suite.class, reflector );
- SuccessListener listener = new SuccessListener();
- testSet.execute( listener, testClassLoader );
- List succeededTests = listener.getSucceededTests();
- assertEquals( 1, succeededTests.size() );
- assertEquals( "testSuccess(org.apache.maven.surefire.junit.JUnitTestSetTest$AlwaysSucceeds)",
- ( (ReportEntry) succeededTests.get( 0 ) ).getName() );
- }
-
- public static final class AlwaysSucceeds
- extends TestCase
- {
- public void testSuccess()
- {
- assertTrue( true );
- }
- }
-
- public static class SuccessListener
- implements RunListener
- {
-
- private List succeededTests = new ArrayList();
-
- public void testSetStarting( ReportEntry report )
- {
- }
-
- public void testSetCompleted( ReportEntry report )
- {
- }
-
- public void testStarting( ReportEntry report )
- {
- }
-
- public void testSucceeded( ReportEntry report )
- {
- this.succeededTests.add( report );
- }
-
- public void testAssumptionFailure( ReportEntry report )
- {
- throw new IllegalStateException();
- }
-
- public void testError( ReportEntry report )
- {
- throw new IllegalStateException();
- }
-
- public void testFailed( ReportEntry report )
- {
- throw new IllegalStateException();
- }
-
- public void testSkipped( ReportEntry report )
- {
- throw new IllegalStateException();
- }
-
- public List getSucceededTests()
- {
- return succeededTests;
- }
-
- }
-
- public static class Suite
- {
-
- public static Test suite()
- {
- TestSuite suite = new TestSuite();
- suite.addTestSuite( AlwaysSucceeds.class );
- return suite;
- }
- }
-}
+package org.apache.maven.surefire.junit;
+
+/*
+ * 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 java.util.ArrayList;
+import java.util.List;
+import org.apache.maven.surefire.common.junit3.JUnit3Reflector;
+import org.apache.maven.surefire.report.ReportEntry;
+import org.apache.maven.surefire.report.RunListener;
+import org.apache.maven.surefire.testset.TestSetFailedException;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class JUnitTestSetTest
+ extends TestCase
+{
+
+ public void testExecuteSuiteClass()
+ throws TestSetFailedException
+ {
+ ClassLoader testClassLoader = this.getClass().getClassLoader();
+ JUnit3Reflector reflector = new JUnit3Reflector( testClassLoader );
+ JUnitTestSet testSet = new JUnitTestSet( Suite.class, reflector );
+ SuccessListener listener = new SuccessListener();
+ testSet.execute( listener, testClassLoader );
+ List succeededTests = listener.getSucceededTests();
+ assertEquals( 1, succeededTests.size() );
+ assertEquals( "testSuccess(org.apache.maven.surefire.junit.JUnitTestSetTest$AlwaysSucceeds)",
+ ( (ReportEntry) succeededTests.get( 0 ) ).getName() );
+ }
+
+ public static final class AlwaysSucceeds
+ extends TestCase
+ {
+ public void testSuccess()
+ {
+ assertTrue( true );
+ }
+ }
+
+ public static class SuccessListener
+ implements RunListener
+ {
+
+ private List succeededTests = new ArrayList();
+
+ public void testSetStarting( ReportEntry report )
+ {
+ }
+
+ public void testSetCompleted( ReportEntry report )
+ {
+ }
+
+ public void testStarting( ReportEntry report )
+ {
+ }
+
+ public void testSucceeded( ReportEntry report )
+ {
+ this.succeededTests.add( report );
+ }
+
+ public void testAssumptionFailure( ReportEntry report )
+ {
+ throw new IllegalStateException();
+ }
+
+ public void testError( ReportEntry report )
+ {
+ throw new IllegalStateException();
+ }
+
+ public void testFailed( ReportEntry report )
+ {
+ throw new IllegalStateException();
+ }
+
+ public void testSkipped( ReportEntry report )
+ {
+ throw new IllegalStateException();
+ }
+
+ public List getSucceededTests()
+ {
+ return succeededTests;
+ }
+
+ }
+
+ public static class Suite
+ {
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite();
+ suite.addTestSuite( AlwaysSucceeds.class );
+ return suite;
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/AsynchronousRunner.java
----------------------------------------------------------------------
diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/AsynchronousRunner.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/AsynchronousRunner.java
index fe6ef75..4d14d31 100644
--- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/AsynchronousRunner.java
+++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/AsynchronousRunner.java
@@ -1,81 +1,81 @@
-package org.apache.maven.surefire.junitcore;
-
-/*
- * 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 java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-import org.apache.maven.surefire.util.NestedRuntimeException;
-
-import org.junit.runners.model.RunnerScheduler;
-
-/**
- * @author <a href="mailto:kristian@zenior.no">Kristian Rosenvold</a>
- */
-public class AsynchronousRunner
- implements RunnerScheduler
-{
- private final List<Future<Object>> futures = Collections.synchronizedList( new ArrayList<Future<Object>>() );
-
- private final ExecutorService fService;
-
- public AsynchronousRunner( ExecutorService fService )
- {
- this.fService = fService;
- }
-
- public void schedule( final Runnable childStatement )
- {
- futures.add( fService.submit( Executors.callable( childStatement ) ) );
- }
-
-
- public void finished()
- {
- try
- {
- waitForCompletion();
- }
- catch ( ExecutionException e )
- {
- throw new NestedRuntimeException( e );
- }
- }
-
- public void waitForCompletion()
- throws ExecutionException
- {
- for ( Future<Object> each : futures )
- {
- try
- {
- each.get();
- }
- catch ( InterruptedException e )
- {
- throw new NestedRuntimeException( e );
- }
- }
- }
-}
+package org.apache.maven.surefire.junitcore;
+
+/*
+ * 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 java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import org.apache.maven.surefire.util.NestedRuntimeException;
+
+import org.junit.runners.model.RunnerScheduler;
+
+/**
+ * @author <a href="mailto:kristian@zenior.no">Kristian Rosenvold</a>
+ */
+public class AsynchronousRunner
+ implements RunnerScheduler
+{
+ private final List<Future<Object>> futures = Collections.synchronizedList( new ArrayList<Future<Object>>() );
+
+ private final ExecutorService fService;
+
+ public AsynchronousRunner( ExecutorService fService )
+ {
+ this.fService = fService;
+ }
+
+ public void schedule( final Runnable childStatement )
+ {
+ futures.add( fService.submit( Executors.callable( childStatement ) ) );
+ }
+
+
+ public void finished()
+ {
+ try
+ {
+ waitForCompletion();
+ }
+ catch ( ExecutionException e )
+ {
+ throw new NestedRuntimeException( e );
+ }
+ }
+
+ public void waitForCompletion()
+ throws ExecutionException
+ {
+ for ( Future<Object> each : futures )
+ {
+ try
+ {
+ each.get();
+ }
+ catch ( InterruptedException e )
+ {
+ throw new NestedRuntimeException( e );
+ }
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/126f4495/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/SynchronousRunner.java
----------------------------------------------------------------------
diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/SynchronousRunner.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/SynchronousRunner.java
index 1abd7f7..5c14bfb 100644
--- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/SynchronousRunner.java
+++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/SynchronousRunner.java
@@ -1,37 +1,37 @@
-package org.apache.maven.surefire.junitcore;
-/*
- * 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.runners.model.RunnerScheduler;
-
-/**
- * @author <a href="mailto:kristian@zenior.no">Kristian Rosenvold</a>
- */
-class SynchronousRunner
- implements RunnerScheduler
-{
- public void schedule( final Runnable childStatement )
- {
- childStatement.run();
- }
-
- public void finished()
- {
- }
-}
+package org.apache.maven.surefire.junitcore;
+/*
+ * 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.runners.model.RunnerScheduler;
+
+/**
+ * @author <a href="mailto:kristian@zenior.no">Kristian Rosenvold</a>
+ */
+class SynchronousRunner
+ implements RunnerScheduler
+{
+ public void schedule( final Runnable childStatement )
+ {
+ childStatement.run();
+ }
+
+ public void finished()
+ {
+ }
+}