You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2011/12/31 17:21:59 UTC

svn commit: r1226127 - in /maven/surefire/trunk/surefire-integration-tests/src/test: java/org/apache/maven/surefire/its/ resources/SurefireToolchains/src/main/java/test/surefiretoolchains/ resources/SurefireToolchains/src/test/java/test/surefiretoolcha...

Author: hboutemy
Date: Sat Dec 31 16:21:57 2011
New Revision: 1226127

URL: http://svn.apache.org/viewvc?rev=1226127&view=rev
Log:
code formatting

Modified:
    maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit47RedirectOutputIT.java
    maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit4IgnoreIT.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/main/java/test/surefiretoolchains/App.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/test/java/test/surefiretoolchains/AppTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/additional-classpath/src/test/java/additionalClasspath/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/aggregate-report/child2/src/test/java/aggregateReport/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/ant-ignore/src/test/java/antignore/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/consoleOutput/src/test/java/consoleOutput/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration-abstract/src/test/java/abstractClasses/AbstractConcreteBasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration/src/test/java/defaultConfiguration/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-consoleOutputWithErrors/src/test/java/forkConsoleOutput/Test2.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-fail/src/test/java/forkMode/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode-testng/src/test/java/forkMode/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-timeout/src/test/java/forktimeout/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/DefaultTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/NotIncludedByDefault.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test2.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test3.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore1Test.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore2Test.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-innerClass/src/test/java/junit/innerClass/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest2.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/src/test/java/charsetProvider/MSUREFIRE77TestCase.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestA.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestB.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestC.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-500-puzzling-error/src/test/java/surefire500/ExplodingTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-674-buildFailingWhenErrors/src/test/java/resultcounting/Test2.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-697-niceSummary/src/test/java/junit/surefire697/BasicTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-733-allOverridesCaptured/src/test/java/junit/surefire733/ATest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-group-thread-parallel/src/test/java/testng/groupThreadParallel/TestNGTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-jdk14/src/test/java/testng/jdk14/TestNGJavadocTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-parallel-with-annotations/src/test/java/testng/paralellwithannotations/TestNGParallelTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/webapp/src/test/java/WebAppTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/working-directory/child/src/test/java/workingDir/BasicTest.java

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit47RedirectOutputIT.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit47RedirectOutputIT.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit47RedirectOutputIT.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit47RedirectOutputIT.java Sat Dec 31 16:21:57 2011
@@ -29,7 +29,7 @@ public class JUnit47RedirectOutputIT
 {
     public JUnit47RedirectOutputIT()
     {
-        super("/junit47-redirect-output");
+        super( "/junit47-redirect-output" );
     }
 
     public void testPrintSummaryTrueWithRedirect()

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit4IgnoreIT.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit4IgnoreIT.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit4IgnoreIT.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Junit4IgnoreIT.java Sat Dec 31 16:21:57 2011
@@ -29,7 +29,7 @@ public class Junit4IgnoreIT
 {
     public Junit4IgnoreIT()
     {
-        super( "/junit-ignore");
+        super( "/junit-ignore" );
     }
 
     public void testJunit4Ignore()

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/main/java/test/surefiretoolchains/App.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/main/java/test/surefiretoolchains/App.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/main/java/test/surefiretoolchains/App.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/main/java/test/surefiretoolchains/App.java Sat Dec 31 16:21:57 2011
@@ -1,8 +1,10 @@
 package test.surefiretoolchains;
 
-public final class App {
+public final class App
+{
 
-    public static void main(String[] args) {
-        System.out.println("Hello World!");
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/test/java/test/surefiretoolchains/AppTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/test/java/test/surefiretoolchains/AppTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/test/java/test/surefiretoolchains/AppTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/SurefireToolchains/src/test/java/test/surefiretoolchains/AppTest.java Sat Dec 31 16:21:57 2011
@@ -4,12 +4,14 @@ import org.junit.Test;
 
 import static org.junit.Assert.*;
 
-public class AppTest {
- 
+public class AppTest
+{
+
     @Test
-    public void testApp() {
+    public void testApp()
+    {
         // 1.5.0_19-b02
-        assertEquals("1.5.0_19", System.getProperty("java.version"));
+        assertEquals( "1.5.0_19", System.getProperty( "java.version" ) );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/additional-classpath/src/test/java/additionalClasspath/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/additional-classpath/src/test/java/additionalClasspath/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/additional-classpath/src/test/java/additionalClasspath/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/additional-classpath/src/test/java/additionalClasspath/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -6,8 +6,9 @@ public class BasicTest
     extends TestCase
 {
 
-    public void testExtraResource() {
-        assertNotNull(BasicTest.class.getResourceAsStream("/test.txt"));
+    public void testExtraResource()
+    {
+        assertNotNull( BasicTest.class.getResourceAsStream( "/test.txt" ) );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/aggregate-report/child2/src/test/java/aggregateReport/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/aggregate-report/child2/src/test/java/aggregateReport/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/aggregate-report/child2/src/test/java/aggregateReport/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/aggregate-report/child2/src/test/java/aggregateReport/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -20,7 +20,7 @@ public class BasicTest
 
     public static Test suite()
     {
-        System.out.println("suite");
+        System.out.println( "suite" );
         TestSuite suite = new TestSuite();
         Test test = new BasicTest( "testSetUp", "dummy" );
         suite.addTest( test );

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/ant-ignore/src/test/java/antignore/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/ant-ignore/src/test/java/antignore/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/ant-ignore/src/test/java/antignore/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/ant-ignore/src/test/java/antignore/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -1,22 +1,22 @@
 package antignore;
+
 import junit.framework.TestCase;
 import org.junit.Assert;
 import org.junit.Test;
 import org.junit.Ignore;
 
-
-
 public class BasicTest
 {
 
     @Ignore
     public void testIgnorable()
     {
-        Assert.fail("you should have ignored me!");
+        Assert.fail( "you should have ignored me!" );
     }
 
     @Test
-    public void testSomethingElse(){
+    public void testSomethingElse()
+    {
 
     }
 

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/consoleOutput/src/test/java/consoleOutput/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/consoleOutput/src/test/java/consoleOutput/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/consoleOutput/src/test/java/consoleOutput/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/consoleOutput/src/test/java/consoleOutput/Test1.java Sat Dec 31 16:21:57 2011
@@ -26,28 +26,31 @@ import org.junit.Test;
 public class Test1
 {
     @Test
-    public void testSystemOut() {
-        
+    public void testSystemOut()
+    {
+
         char c = 'C';
-        System.out.print("Sout");
-        System.out.print("Again");
-        System.out.print("\n");
-        System.out.print(c);
-        System.out.println("SoutLine");
-        System.out.println("A");
-        System.out.println("");
-        System.out.println("==END==");
+        System.out.print( "Sout" );
+        System.out.print( "Again" );
+        System.out.print( "\n" );
+        System.out.print( c );
+        System.out.println( "SoutLine" );
+        System.out.println( "A" );
+        System.out.println( "" );
+        System.out.println( "==END==" );
     }
+
     @Test
-    public void testSystemErr() {
+    public void testSystemErr()
+    {
         char e = 'E';
-        System.err.print("Serr");
-        System.err.print("\n");
-        System.err.print(e);
-        System.err.println("SerrLine");
-        System.err.println("A");
-        System.err.println("");
-        System.err.println("==END==");
+        System.err.print( "Serr" );
+        System.err.print( "\n" );
+        System.err.print( e );
+        System.err.println( "SerrLine" );
+        System.err.println( "A" );
+        System.err.println( "" );
+        System.err.println( "==END==" );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration-abstract/src/test/java/abstractClasses/AbstractConcreteBasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration-abstract/src/test/java/abstractClasses/AbstractConcreteBasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration-abstract/src/test/java/abstractClasses/AbstractConcreteBasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration-abstract/src/test/java/abstractClasses/AbstractConcreteBasicTest.java Sat Dec 31 16:21:57 2011
@@ -19,7 +19,7 @@ public class AbstractConcreteBasicTest /
 
     public static Test suite()
     {
-        System.out.println("suite");
+        System.out.println( "suite" );
         TestSuite suite = new TestSuite();
         Test test = new AbstractConcreteBasicTest( "testSetUp", "dummy" );
         suite.addTest( test );

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration/src/test/java/defaultConfiguration/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration/src/test/java/defaultConfiguration/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration/src/test/java/defaultConfiguration/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/default-configuration/src/test/java/defaultConfiguration/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -20,7 +20,7 @@ public class BasicTest
 
     public static Test suite()
     {
-        System.out.println("suite");
+        System.out.println( "suite" );
         TestSuite suite = new TestSuite();
         Test test = new BasicTest( "testSetUp", "dummy" );
         suite.addTest( test );

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-consoleOutputWithErrors/src/test/java/forkConsoleOutput/Test2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-consoleOutputWithErrors/src/test/java/forkConsoleOutput/Test2.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-consoleOutputWithErrors/src/test/java/forkConsoleOutput/Test2.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-consoleOutputWithErrors/src/test/java/forkConsoleOutput/Test2.java Sat Dec 31 16:21:57 2011
@@ -24,11 +24,12 @@ import org.junit.Test;
 public class Test2
 {
     @Test
-    public void test6281() {
-        System.out.println("sout: I am talking to you");
-        System.out.println("sout: Will Fail soon");
-        System.err.println("serr: And you too");
-        System.err.println("serr: Will Fail now");
-        throw new  RuntimeException("FailHere");
+    public void test6281()
+    {
+        System.out.println( "sout: I am talking to you" );
+        System.out.println( "sout: Will Fail soon" );
+        System.err.println( "serr: And you too" );
+        System.err.println( "serr: Will Fail now" );
+        throw new RuntimeException( "FailHere" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-fail/src/test/java/forkMode/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-fail/src/test/java/forkMode/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-fail/src/test/java/forkMode/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-fail/src/test/java/forkMode/Test1.java Sat Dec 31 16:21:57 2011
@@ -11,18 +11,23 @@ public class Test1
     extends TestCase
 {
 
-    public void test1() throws IOException {
-        dumpPidFile(this);
+    public void test1()
+        throws IOException
+    {
+        dumpPidFile( this );
     }
-    
-    public static void dumpPidFile(TestCase test) throws IOException {
+
+    public static void dumpPidFile( TestCase test )
+        throws IOException
+    {
         String fileName = test.getName() + "-pid";
-        File target = new File("target");
-        if (! (target.exists() && target.isDirectory()) ) {
-            target = new File (".");
+        File target = new File( "target" );
+        if ( !( target.exists() && target.isDirectory() ) )
+        {
+            target = new File( "." );
         }
-        File pidFile = new File(target, fileName);
-        FileWriter fw = new FileWriter(pidFile);
+        File pidFile = new File( target, fileName );
+        FileWriter fw = new FileWriter( pidFile );
         // DGF little known trick... this is guaranteed to be unique to the PID
         // In fact, it usually contains the pid and the local host name!
         String pid = ManagementFactory.getRuntimeMXBean().getName();

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode-testng/src/test/java/forkMode/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode-testng/src/test/java/forkMode/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode-testng/src/test/java/forkMode/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode-testng/src/test/java/forkMode/Test1.java Sat Dec 31 16:21:57 2011
@@ -11,20 +11,23 @@ public class Test1
 {
 
     @Test
-    public void test1() throws IOException {
+    public void test1()
+        throws IOException
+    {
         dumpPidFile( "test1" );
     }
-    
+
     public static void dumpPidFile( String name )
         throws IOException
     {
         String fileName = name + "-pid";
-        File target = new File("target");
-        if (! (target.exists() && target.isDirectory()) ) {
-            target = new File (".");
+        File target = new File( "target" );
+        if ( !( target.exists() && target.isDirectory() ) )
+        {
+            target = new File( "." );
         }
-        File pidFile = new File(target, fileName);
-        FileWriter fw = new FileWriter(pidFile);
+        File pidFile = new File( target, fileName );
+        FileWriter fw = new FileWriter( pidFile );
         // DGF little known trick... this is guaranteed to be unique to the PID
         // In fact, it usually contains the pid and the local host name!
         String pid = ManagementFactory.getRuntimeMXBean().getName();

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java Sat Dec 31 16:21:57 2011
@@ -11,18 +11,23 @@ public class Test1
     extends TestCase
 {
 
-    public void test1() throws IOException {
-        dumpPidFile(this);
+    public void test1()
+        throws IOException
+    {
+        dumpPidFile( this );
     }
-    
-    public static void dumpPidFile(TestCase test) throws IOException {
+
+    public static void dumpPidFile( TestCase test )
+        throws IOException
+    {
         String fileName = test.getName() + "-pid";
-        File target = new File("target");
-        if (! (target.exists() && target.isDirectory()) ) {
-            target = new File (".");
+        File target = new File( "target" );
+        if ( !( target.exists() && target.isDirectory() ) )
+        {
+            target = new File( "." );
         }
-        File pidFile = new File(target, fileName);
-        FileWriter fw = new FileWriter(pidFile);
+        File pidFile = new File( target, fileName );
+        FileWriter fw = new FileWriter( pidFile );
         // DGF little known trick... this is guaranteed to be unique to the PID
         // In fact, it usually contains the pid and the local host name!
         String pid = ManagementFactory.getRuntimeMXBean().getName();

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-timeout/src/test/java/forktimeout/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-timeout/src/test/java/forktimeout/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-timeout/src/test/java/forktimeout/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/fork-timeout/src/test/java/forktimeout/Test1.java Sat Dec 31 16:21:57 2011
@@ -19,15 +19,16 @@ package forktimeout;
  * under the License.
  */
 
-
 import org.junit.Test;
 
-public class Test1 extends BaseForkTimeout
+public class Test1
+    extends BaseForkTimeout
 {
     @Test
-    public void test690() {
-        dumpStuff(  "test690" );
-        System.out.println(" with lots of output ");
-        System.err.println( "e with lots of output ");
+    public void test690()
+    {
+        dumpStuff( "test690" );
+        System.out.println( " with lots of output " );
+        System.err.println( "e with lots of output " );
     }
 }
\ No newline at end of file

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/DefaultTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/DefaultTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/DefaultTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/DefaultTest.java Sat Dec 31 16:21:57 2011
@@ -7,8 +7,8 @@ public class DefaultTest
     public void testRun()
         throws Exception
     {
-        FileOutputStream fout = new FileOutputStream("target/defaultTestTouchFile.txt");
-        fout.write('!');
+        FileOutputStream fout = new FileOutputStream( "target/defaultTestTouchFile.txt" );
+        fout.write( '!' );
         fout.flush();
         fout.close();
     }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/NotIncludedByDefault.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/NotIncludedByDefault.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/NotIncludedByDefault.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/NotIncludedByDefault.java Sat Dec 31 16:21:57 2011
@@ -7,8 +7,8 @@ public class NotIncludedByDefault
     public void testRun()
         throws Exception
     {
-        FileOutputStream fout = new FileOutputStream("target/testTouchFile.txt");
-        fout.write('!');
+        FileOutputStream fout = new FileOutputStream( "target/testTouchFile.txt" );
+        fout.write( '!' );
         fout.flush();
         fout.close();
     }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test1.java Sat Dec 31 16:21:57 2011
@@ -7,23 +7,27 @@ import java.lang.management.ManagementFa
 
 import org.junit.Test;
 
-
 public class Test1
 {
 
-	@Test
-    public void test1() throws IOException {
-        dumpPidFile("test1");
+    @Test
+    public void test1()
+        throws IOException
+    {
+        dumpPidFile( "test1" );
     }
-    
-    public static void dumpPidFile(String name) throws IOException {
+
+    public static void dumpPidFile( String name )
+        throws IOException
+    {
         String fileName = name + "-pid";
-        File target = new File("target");
-        if (! (target.exists() && target.isDirectory()) ) {
-            target = new File (".");
+        File target = new File( "target" );
+        if ( !( target.exists() && target.isDirectory() ) )
+        {
+            target = new File( "." );
         }
-        File pidFile = new File(target, fileName);
-        FileWriter fw = new FileWriter(pidFile);
+        File pidFile = new File( target, fileName );
+        FileWriter fw = new FileWriter( pidFile );
         // DGF little known trick... this is guaranteed to be unique to the PID
         // In fact, it usually contains the pid and the local host name!
         String pid = ManagementFactory.getRuntimeMXBean().getName();

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test2.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test2.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test2.java Sat Dec 31 16:21:57 2011
@@ -4,13 +4,14 @@ import java.io.IOException;
 
 import org.junit.Test;
 
-
 public class Test2
 {
 
-	@Test
-    public void test2() throws IOException {
-        Test1.dumpPidFile("test2");
+    @Test
+    public void test2()
+        throws IOException
+    {
+        Test1.dumpPidFile( "test2" );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test3.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test3.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test3.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-fork-mode-always/src/test/java/junit4/forkMode/Test3.java Sat Dec 31 16:21:57 2011
@@ -7,9 +7,11 @@ import org.junit.Test;
 public class Test3
 {
 
-	@Test
-    public void test3() throws IOException {
-        Test1.dumpPidFile("test3");
+    @Test
+    public void test3()
+        throws IOException
+    {
+        Test1.dumpPidFile( "test3" );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -1,18 +1,18 @@
 package junit.ignore;
+
 import org.junit.Assert;
 import org.junit.Ignore;
 import org.junit.Test;
 
-
-@Ignore("ignore this test")
+@Ignore( "ignore this test" )
 public class BasicTest
 {
 
-    @Ignore("ignore this test")
+    @Ignore( "ignore this test" )
     @Test
     public void testIgnorable()
     {
-        Assert.fail("you should have ignored me!");
+        Assert.fail( "you should have ignored me!" );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore1Test.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore1Test.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore1Test.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore1Test.java Sat Dec 31 16:21:57 2011
@@ -4,15 +4,14 @@ import org.junit.Assert;
 import org.junit.Ignore;
 import org.junit.Test;
 
-
-@Ignore("ignore this test")
+@Ignore( "ignore this test" )
 public class ClassLevelIgnore1Test
 {
 
     @Test
     public void testIgnorable()
     {
-        Assert.fail("you should have ignored me!");
+        Assert.fail( "you should have ignored me!" );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore2Test.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore2Test.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore2Test.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore/src/test/java/junit/ignore/ClassLevelIgnore2Test.java Sat Dec 31 16:21:57 2011
@@ -4,15 +4,14 @@ import org.junit.Assert;
 import org.junit.Ignore;
 import org.junit.Test;
 
-
-@Ignore("ignore this test")
+@Ignore( "ignore this test" )
 public class ClassLevelIgnore2Test
 {
 
     @Test
     public void testIgnorable()
     {
-        Assert.fail("you should have ignored me!");
+        Assert.fail( "you should have ignored me!" );
     }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-innerClass/src/test/java/junit/innerClass/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-innerClass/src/test/java/junit/innerClass/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-innerClass/src/test/java/junit/innerClass/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-innerClass/src/test/java/junit/innerClass/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -1,15 +1,20 @@
 package junit.innerClass;
+
 import junit.framework.TestCase;
 
 public class BasicTest
     extends TestCase
 {
 
-    public void testFoo() {
-        new Foo("x", "y");
+    public void testFoo()
+    {
+        new Foo( "x", "y" );
     }
-    
-    public class Foo {
-        public Foo(String x, String y) {}
+
+    public class Foo
+    {
+        public Foo( String x, String y )
+        {
+        }
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest1.java Sat Dec 31 16:21:57 2011
@@ -28,44 +28,47 @@ import org.junit.Test;
  */
 public class SuiteTest1
 {
-	public SuiteTest1()
-	{
-		System.out.println("SuiteTest1.constructor");
-	}
+    public SuiteTest1()
+    {
+        System.out.println( "SuiteTest1.constructor" );
+    }
 
-	@Before
-	public void setUp()
-	{
-		System.out.println("SuiteTest1.setUp");
-	}
+    @Before
+    public void setUp()
+    {
+        System.out.println( "SuiteTest1.setUp" );
+    }
 
-	@After
-	public void tearDown()
-	{
-		System.out.println("SuiteTest1.tearDown");
-	}
+    @After
+    public void tearDown()
+    {
+        System.out.println( "SuiteTest1.tearDown" );
+    }
 
-	@Test
-	public void first() throws InterruptedException
-	{
-		System.out.println("begin SuiteTest1.first");
-		Thread.sleep(300);
-		System.out.println("end SuiteTest1.first");
-	}
+    @Test
+    public void first()
+        throws InterruptedException
+    {
+        System.out.println( "begin SuiteTest1.first" );
+        Thread.sleep( 300 );
+        System.out.println( "end SuiteTest1.first" );
+    }
 
-	@Test
-	public void second() throws InterruptedException
-	{
-		System.out.println("begin SuiteTest1.second");
-		Thread.sleep(300);
-		System.out.println("end SuiteTest1.second");
-	}
+    @Test
+    public void second()
+        throws InterruptedException
+    {
+        System.out.println( "begin SuiteTest1.second" );
+        Thread.sleep( 300 );
+        System.out.println( "end SuiteTest1.second" );
+    }
 
-	@Test
-	public void third() throws InterruptedException
-	{
-		System.out.println("begin SuiteTest1.third");
-		Thread.sleep(300);
-		System.out.println("end SuiteTest1.third");
-	}
+    @Test
+    public void third()
+        throws InterruptedException
+    {
+        System.out.println( "begin SuiteTest1.third" );
+        Thread.sleep( 300 );
+        System.out.println( "end SuiteTest1.third" );
+    }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest2.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest2.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-parallel-with-suite/src/test/java/surefire747/SuiteTest2.java Sat Dec 31 16:21:57 2011
@@ -28,44 +28,47 @@ import org.junit.Test;
  */
 public class SuiteTest2
 {
-	public SuiteTest2()
-	{
-		System.out.println("SuiteTest2.constructor");
-	}
+    public SuiteTest2()
+    {
+        System.out.println( "SuiteTest2.constructor" );
+    }
 
-	@Before
-	public void setUp()
-	{
-		System.out.println("SuiteTest2.setUp");
-	}
+    @Before
+    public void setUp()
+    {
+        System.out.println( "SuiteTest2.setUp" );
+    }
 
-	@After
-	public void tearDown()
-	{
-		System.out.println("SuiteTest2.tearDown");
-	}
+    @After
+    public void tearDown()
+    {
+        System.out.println( "SuiteTest2.tearDown" );
+    }
 
-	@Test
-	public void first() throws InterruptedException
-	{
-		System.out.println("begin SuiteTest2.first");
-		Thread.sleep(300);
-		System.out.println("end SuiteTest2.first");
-	}
+    @Test
+    public void first()
+        throws InterruptedException
+    {
+        System.out.println( "begin SuiteTest2.first" );
+        Thread.sleep( 300 );
+        System.out.println( "end SuiteTest2.first" );
+    }
 
-	@Test
-	public void second() throws InterruptedException
-	{
-		System.out.println("begin SuiteTest2.second");
-		Thread.sleep(300);
-		System.out.println("end SuiteTest2.second");
-	}
+    @Test
+    public void second()
+        throws InterruptedException
+    {
+        System.out.println( "begin SuiteTest2.second" );
+        Thread.sleep( 300 );
+        System.out.println( "end SuiteTest2.second" );
+    }
 
-	@Test
-	public void third() throws InterruptedException
-	{
-		System.out.println("begin SuiteTest2.third");
-		Thread.sleep(300);
-		System.out.println("end SuiteTest2.third");
-	}
+    @Test
+    public void third()
+        throws InterruptedException
+    {
+        System.out.println( "begin SuiteTest2.third" );
+        Thread.sleep( 300 );
+        System.out.println( "end SuiteTest2.third" );
+    }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/large-test-results/src/test/java/largeTestResults/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -1,4 +1,5 @@
 package largeTestResults;
+
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
@@ -9,7 +10,7 @@ public class BasicTest
 
     private final int number;
 
-    public BasicTest( String name , int number)
+    public BasicTest( String name, int number )
     {
         super( name );
         this.number = number;
@@ -17,11 +18,11 @@ public class BasicTest
 
     public static Test suite()
     {
-        int tests = Integer.parseInt(System.getProperty("numTests", "20"));
+        int tests = Integer.parseInt( System.getProperty( "numTests", "20" ) );
         TestSuite suite = new TestSuite();
-        for (int i = 0; i < tests; i++)
+        for ( int i = 0; i < tests; i++ )
         {
-            if ( i % 4 == 0)
+            if ( i % 4 == 0 )
             {
                 suite.addTest( new BasicTest( "testPass", i ) );
             }
@@ -33,10 +34,13 @@ public class BasicTest
         return suite;
     }
 
-    public void testFail() {
+    public void testFail()
+    {
         fail( "failure " + number );
     }
-    
-    public void testPass() {}
+
+    public void testPass()
+    {
+    }
 
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/plain-old-java-classpath/src/test/java/plainOldJavaClasspath/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -20,7 +20,7 @@ public class BasicTest
 
     public static Test suite()
     {
-        System.out.println("suite");
+        System.out.println( "suite" );
         TestSuite suite = new TestSuite();
         Test test = new BasicTest( "testSetUp", "dummy" );
         suite.addTest( test );

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/plexus-conflict/src/main/java/plexusConflict/CommandlineExtender.java Sat Dec 31 16:21:57 2011
@@ -5,10 +5,12 @@ import org.codehaus.plexus.util.cli.Comm
 /**
  * Conflict with latest version of plexus by using modified protected class.
  */
-public class CommandlineExtender extends Commandline
+public class CommandlineExtender
+    extends Commandline
 {
-    public CommandlineExtender() {
+    public CommandlineExtender()
+    {
         // In 1.0.4, Commandline.envVars was a Vector; in 1.4.x, it's a Map.
-        super.envVars.add("");
+        super.envVars.add( "" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/result-counting/src/test/java/resultcounting/Test2.java Sat Dec 31 16:21:57 2011
@@ -1,84 +1,108 @@
-package resultcounting;
-
-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");
-    }
-
+package resultcounting;
+
+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

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestA.java Sat Dec 31 16:21:57 2011
@@ -1,11 +1,12 @@
 package junit.runOrder;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class TestA
     extends TestCase
 {
-    public void testTwo() {
-        System.out.println("TA");
+    public void testTwo()
+    {
+        System.out.println( "TA" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestB.java Sat Dec 31 16:21:57 2011
@@ -1,11 +1,12 @@
 package junit.runOrder;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class TestB
     extends TestCase
 {
-    public void testTwo() {
-        System.out.println("TB");
+    public void testTwo()
+    {
+        System.out.println( "TB" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/runOrder/src/test/java/junit/runOrder/TestC.java Sat Dec 31 16:21:57 2011
@@ -1,11 +1,12 @@
 package junit.runOrder;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class TestC
     extends TestCase
 {
-    public void testTwo() {
-        System.out.println("TC");
+    public void testTwo()
+    {
+        System.out.println( "TC" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/src/test/java/charsetProvider/MSUREFIRE77TestCase.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/src/test/java/charsetProvider/MSUREFIRE77TestCase.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/src/test/java/charsetProvider/MSUREFIRE77TestCase.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/src/test/java/charsetProvider/MSUREFIRE77TestCase.java Sat Dec 31 16:21:57 2011
@@ -1,14 +1,21 @@
 package charsetProvider;
+
 import java.io.UnsupportedEncodingException;
 
 import junit.framework.TestCase;
 
-public class MSUREFIRE77TestCase extends TestCase
+public class MSUREFIRE77TestCase
+    extends TestCase
 {
-	public void testThatICanUseCharsets() throws UnsupportedEncodingException
-	{
-		System.out.println( new String("foo".getBytes(), "GSM_0338"));
-	}
+    public void testThatICanUseCharsets()
+        throws UnsupportedEncodingException
+    {
+        System.out.println( new String( "foo".getBytes(), "GSM_0338" ) );
+    }
 
-        public static void main(String[] args) throws Exception { new MSUREFIRE77TestCase().testThatICanUseCharsets(); }
+    public static void main( String[] args )
+        throws Exception
+    {
+        new MSUREFIRE77TestCase().testThatICanUseCharsets();
+    }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestA.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestA.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestA.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestA.java Sat Dec 31 16:21:57 2011
@@ -1,14 +1,16 @@
 package surefire260;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class TestA
     extends TestCase
 {
-    public void testOne() {
+    public void testOne()
+    {
     }
 
-    public void testDup() {
-        fail("This is what we want");
+    public void testDup()
+    {
+        fail( "This is what we want" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestB.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestB.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestB.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestB.java Sat Dec 31 16:21:57 2011
@@ -1,11 +1,12 @@
 package surefire260;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class TestB
     extends TestCase
 {
-    public void testDup() {
-        fail("This is what we want");
+    public void testDup()
+    {
+        fail( "This is what we want" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestC.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestC.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestC.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-260-testWithIdenticalNames/src/test/java/surefire260/TestC.java Sat Dec 31 16:21:57 2011
@@ -1,11 +1,12 @@
 package surefire260;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class TestC
     extends TestCase
 {
-    public void testDup() {
-        fail("This is what we want");
+    public void testDup()
+    {
+        fail( "This is what we want" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-500-puzzling-error/src/test/java/surefire500/ExplodingTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-500-puzzling-error/src/test/java/surefire500/ExplodingTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-500-puzzling-error/src/test/java/surefire500/ExplodingTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-500-puzzling-error/src/test/java/surefire500/ExplodingTest.java Sat Dec 31 16:21:57 2011
@@ -1,28 +1,30 @@
-package surefire500;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
-
-public class ExplodingTest {
-
-	static {
-        //noinspection ConstantIfStatement
-        if (true) {
-			throw new java.lang.NoClassDefFoundError("whoops!"); 
-		}
-	}
-	
-	@Test
-	public void testPass()
-    {
-		assertTrue(true);
-	}
-	
-	public void testFail()
-    {
-		fail("fail");
-	}
-}
+package surefire500;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+public class ExplodingTest
+{
+
+    static
+    {
+        // noinspection ConstantIfStatement
+        if ( true )
+        {
+            throw new java.lang.NoClassDefFoundError( "whoops!" );
+        }
+    }
+
+    @Test
+    public void testPass()
+    {
+        assertTrue( true );
+    }
+
+    public void testFail()
+    {
+        fail( "fail" );
+    }
+}

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-510-testClassPath/src/test/java/surefire510/Test1.java Sat Dec 31 16:21:57 2011
@@ -8,10 +8,13 @@ public class Test1
     extends TestCase
 {
 
-    public void test1() throws IOException {
-        String tcp = System.getProperty( "surefire.test.class.path");
-        if (tcp != null){
-        System.out.println( "tcp is set");
+    public void test1()
+        throws IOException
+    {
+        String tcp = System.getProperty( "surefire.test.class.path" );
+        if ( tcp != null )
+        {
+            System.out.println( "tcp is set" );
         }
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-613-testCount-in-parallel/src/test/java/surefire163/Test2.java Sat Dec 31 16:21:57 2011
@@ -13,72 +13,96 @@ import static junit.framework.Assert.fai
 public class Test2
 {
     @Test
-    public void testAllok(){
-        System.out.println("testAllok to stdout");
-        System.err.println("testAllok to stderr");
+    public void testAllok()
+    {
+        System.out.println( "testAllok to stdout" );
+        System.err.println( "testAllok to stderr" );
     }
 
-
     @Ignore
     @Test
-    public void testWithIgnore1(){
+    public void testWithIgnore1()
+    {
     }
 
     @Ignore
     @Test
-    public void testWithIgnore2(){
+    public void testWithIgnore2()
+    {
     }
 
     @Test
-    public void testiWithFail1(){
-        fail("We excpect this");
+    public void testiWithFail1()
+    {
+        fail( "We excpect this" );
     }
+
     @Test
-    public void testiWithFail2(){
-        fail("We excpect this");
+    public void testiWithFail2()
+    {
+        fail( "We excpect this" );
     }
+
     @Test
-    public void testiWithFail3(){
-        fail("We excpect this");
+    public void testiWithFail3()
+    {
+        fail( "We excpect this" );
     }
+
     @Test
-    public void testiWithFail4(){
-        fail("We excpect this");
+    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");
+    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");
+    public void testWithException2()
+    {
+        throw new RuntimeException( "We expect this" );
     }
+
     @Test
-    public void testWithException3() {
-        throw new RuntimeException("We expect this");
+    public void testWithException3()
+    {
+        throw new RuntimeException( "We expect this" );
     }
+
     @Test
-    public void testWithException4() {
-        throw new RuntimeException("We expect this");
+    public void testWithException4()
+    {
+        throw new RuntimeException( "We expect this" );
     }
+
     @Test
-    public void testWithException5() {
-        throw new RuntimeException("We expect this");
+    public void testWithException5()
+    {
+        throw new RuntimeException( "We expect this" );
     }
+
     @Test
-    public void testWithException6() {
-        throw new RuntimeException("We expect this");
+    public void testWithException6()
+    {
+        throw new RuntimeException( "We expect this" );
     }
+
     @Test
-    public void testWithException7() {
-        throw new RuntimeException("We expect this");
+    public void testWithException7()
+    {
+        throw new RuntimeException( "We expect this" );
     }
+
     @Test
-    public void testWithException8() {
-        throw new RuntimeException("We expect this");
+    public void testWithException8()
+    {
+        throw new RuntimeException( "We expect this" );
     }
 
 }
\ No newline at end of file

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-674-buildFailingWhenErrors/src/test/java/resultcounting/Test2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-674-buildFailingWhenErrors/src/test/java/resultcounting/Test2.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-674-buildFailingWhenErrors/src/test/java/resultcounting/Test2.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-674-buildFailingWhenErrors/src/test/java/resultcounting/Test2.java Sat Dec 31 16:21:57 2011
@@ -1,15 +1,17 @@
-package resultcounting;
-
-import org.junit.Test;
-
-/**
- * A test that causes an error
- * @author Kristian Rosenvold
- */
-public class Test2 
-{
-    @Test
-    public void testWithException1() {
-        throw new RuntimeException("We expect this");
-    }
+package resultcounting;
+
+import org.junit.Test;
+
+/**
+ * A test that causes an error
+ * 
+ * @author Kristian Rosenvold
+ */
+public class Test2
+{
+    @Test
+    public void testWithException1()
+    {
+        throw new RuntimeException( "We expect this" );
+    }
 }
\ No newline at end of file

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-697-niceSummary/src/test/java/junit/surefire697/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-697-niceSummary/src/test/java/junit/surefire697/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-697-niceSummary/src/test/java/junit/surefire697/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-697-niceSummary/src/test/java/junit/surefire697/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -1,4 +1,5 @@
 package junit.surefire697;
+
 import junit.extensions.TestSetup;
 import junit.framework.Test;
 import junit.framework.TestCase;
@@ -8,34 +9,38 @@ public class BasicTest
     extends TestCase
 {
 
-    public void testShort(){
+    public void testShort()
+    {
         throw new RuntimeException( "A very short message" );
     }
 
-    public void testShortMultiline(){
+    public void testShortMultiline()
+    {
         throw new RuntimeException( "A very short multiline message\nHere is line 2" );
     }
 
-    public void testLong(){
-        throw new RuntimeException( "A very long single line message" +
-        "012345678900123456789001234567890012345678900123456789001234567890" +
-        "012345678900123456789001234567890012345678900123456789001234567890");
+    public void testLong()
+    {
+        throw new RuntimeException( "A very long single line message"
+            + "012345678900123456789001234567890012345678900123456789001234567890"
+            + "012345678900123456789001234567890012345678900123456789001234567890" );
     }
-    public void testLongMultiLineNoCr(){
-        throw new RuntimeException( "A very long multi line message" +
-        "012345678900123456789001234567890012345678900123456789001234567890" +
-        "012345678900123456789001234567890012345678900123456789001234567890\n"
-        + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
-        + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
-        );
+
+    public void testLongMultiLineNoCr()
+    {
+        throw new RuntimeException( "A very long multi line message"
+            + "012345678900123456789001234567890012345678900123456789001234567890"
+            + "012345678900123456789001234567890012345678900123456789001234567890\n"
+            + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
+            + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ" );
     }
 
-    public void testLongMultiLine(){
-        throw new RuntimeException( "A very long single line message" +
-        "012345678900123456789001234567890012345678900123456789001234567890" +
-        "012345678900123456789001234567890012345678900123456789001234567890\n"
-        + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
-        + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ\n"
-        );
+    public void testLongMultiLine()
+    {
+        throw new RuntimeException( "A very long single line message"
+            + "012345678900123456789001234567890012345678900123456789001234567890"
+            + "012345678900123456789001234567890012345678900123456789001234567890\n"
+            + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
+            + "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ\n" );
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-733-allOverridesCaptured/src/test/java/junit/surefire733/ATest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-733-allOverridesCaptured/src/test/java/junit/surefire733/ATest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-733-allOverridesCaptured/src/test/java/junit/surefire733/ATest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-733-allOverridesCaptured/src/test/java/junit/surefire733/ATest.java Sat Dec 31 16:21:57 2011
@@ -1,26 +1,26 @@
 package junit.surefire733;
-import junit.framework.TestCase;
 
+import junit.framework.TestCase;
 
 public class ATest
     extends TestCase
 {
-    public void testConsoleOut() {
-        System.out.write( (int) 'a');
+    public void testConsoleOut()
+    {
+        System.out.write( (int) 'a' );
         final byte[] bytes = "bc".getBytes();
-        System.out.write(bytes, 0, bytes.length);
-        System.out.write('\n');
-        System.out.println("ABC");
-        System.out.println((String)null);
+        System.out.write( bytes, 0, bytes.length );
+        System.out.write( '\n' );
+        System.out.println( "ABC" );
+        System.out.println( (String) null );
 
         final byte[] errbytes = "ef".getBytes();
         System.err.write( (int) 'z' );
-        System.err.write(errbytes, 0, bytes.length);
-        System.err.write('\n');
-
+        System.err.write( errbytes, 0, bytes.length );
+        System.err.write( '\n' );
 
-        System.err.println("XYZ");
-        System.err.println((String)null);
+        System.err.println( "XYZ" );
+        System.err.println( (String) null );
 
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-group-thread-parallel/src/test/java/testng/groupThreadParallel/TestNGTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-group-thread-parallel/src/test/java/testng/groupThreadParallel/TestNGTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-group-thread-parallel/src/test/java/testng/groupThreadParallel/TestNGTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-group-thread-parallel/src/test/java/testng/groupThreadParallel/TestNGTest.java Sat Dec 31 16:21:57 2011
@@ -5,61 +5,68 @@ import org.testng.annotations.AfterSuite
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
-
 /**
  * Tests grouping/threading/parallel functionality of TestNG.
  * 
  * @author jkuhnert
  */
-public class TestNGTest {
+public class TestNGTest
+{
+
+    static int m_testCount = 0;
+
+    /**
+     * Sets up testObject
+     */
+    @BeforeClass( groups = "functional" )
+    public void configureTest()
+    {
+        testObject = new Object();
+    }
+
+    @AfterSuite( alwaysRun = true, groups = "functional" )
+    public void check_Test_Count()
+    {
+        System.out.println( "check_Test_Count(): " + m_testCount );
+        Assert.assertTrue( m_testCount == 3, "Expected 3 tests to be run but local count was " + m_testCount );
+    }
+
+    Object testObject;
 
-	static int m_testCount = 0;
-	
-	/**
-	 * Sets up testObject
-	 */
-	@BeforeClass(groups = "functional")
-	public void configureTest()
-	{
-		testObject = new Object();
-	}
-	
-	@AfterSuite(alwaysRun = true, groups = "functional")
-	public void check_Test_Count()
-	{
-		System.out.println("check_Test_Count(): " + m_testCount);
-		Assert.assertTrue( m_testCount == 3,  "Expected 3 tests to be run but local count was " + m_testCount );
-	}
-	
-	Object testObject;
-	
-	@Test(groups = {"functional", "notincluded"})
-	public void test1() throws InterruptedException
-	{
-		incrementTestCount();
-		System.out.println("running test");
-		Assert.assertTrue( testObject != null , "testObject is null" );
-		waitForTestCountToBeThree();
-	}
-	
-	private synchronized void incrementTestCount() {
-	    m_testCount++;
-	}
-	
-	@Test(groups = {"functional", "notincluded"})
-    public void test2() throws InterruptedException {
-	    test1();
-	}
-	
-	@Test(groups = {"functional", "notincluded"})
-    public void test3() throws InterruptedException {
+    @Test( groups = { "functional", "notincluded" } )
+    public void test1()
+        throws InterruptedException
+    {
+        incrementTestCount();
+        System.out.println( "running test" );
+        Assert.assertTrue( testObject != null, "testObject is null" );
+        waitForTestCountToBeThree();
+    }
+
+    private synchronized void incrementTestCount()
+    {
+        m_testCount++;
+    }
+
+    @Test( groups = { "functional", "notincluded" } )
+    public void test2()
+        throws InterruptedException
+    {
         test1();
     }
-	
-	private void waitForTestCountToBeThree()
+
+    @Test( groups = { "functional", "notincluded" } )
+    public void test3()
         throws InterruptedException
     {
-        if ( m_testCount == 3 ) return;
+        test1();
+    }
+
+    private void waitForTestCountToBeThree()
+        throws InterruptedException
+    {
+        if ( m_testCount == 3 )
+            return;
         long now = System.currentTimeMillis();
         long timeout = 5 * 1000;
         long finish = now + timeout;
@@ -67,15 +74,15 @@ public class TestNGTest {
         {
             Thread.sleep( 10 );
         }
-        Assert.assertTrue(m_testCount >= 3);
+        Assert.assertTrue( m_testCount >= 3 );
+    }
+
+    /**
+     * Sample method that shouldn't be run by test suite.
+     */
+    @Test( groups = "notincluded" )
+    public void shouldNotRun()
+    {
+        Assert.fail( "Group specified by test shouldnt be run." );
     }
-	
-	/**
-	 * Sample method that shouldn't be run by test suite.
-	 */
-	@Test(groups = "notincluded")
-	public void shouldNotRun()
-	{
-		Assert.fail( "Group specified by test shouldnt be run." );
-	}
 }
\ No newline at end of file

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-jdk14/src/test/java/testng/jdk14/TestNGJavadocTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-jdk14/src/test/java/testng/jdk14/TestNGJavadocTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-jdk14/src/test/java/testng/jdk14/TestNGJavadocTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-jdk14/src/test/java/testng/jdk14/TestNGJavadocTest.java Sat Dec 31 16:21:57 2011
@@ -2,43 +2,43 @@ package testng.jdk14;
 
 import org.testng.Assert;
 
-
 /**
- * Tests that forcing testng to run tests via the 
- * <code>"${maven.test.forcetestng}"</code> configuration option
- * works.
+ * Tests that forcing testng to run tests via the <code>"${maven.test.forcetestng}"</code> configuration option works.
  * 
  * @author jkuhnert
  */
-public class TestNGJavadocTest {
+public class TestNGJavadocTest
+{
+
+    /**
+     * Sets up testObject
+     * 
+     * @testng.configuration beforeTestClass = "true" groups = "functional"
+     */
+    public void configureTest()
+    {
+        testObject = new Object();
+    }
+
+    Object testObject;
+
+    /**
+     * Tests reporting an error
+     * 
+     * @testng.test groups = "functional, notincluded"
+     */
+    public void isTestObjectNull()
+    {
+        Assert.assertNotNull( testObject, "testObject is null" );
+    }
 
-	/**
-	 * Sets up testObject
-	 * @testng.configuration beforeTestClass = "true"
-	 * 						 groups = "functional"
-	 */
-	public void configureTest()
-	{
-		testObject = new Object();
-	}
-	
-	Object testObject;
-	
-	/**
-	 * Tests reporting an error
-	 * @testng.test groups = "functional, notincluded"
-	 */
-	public void isTestObjectNull()
-	{
-		Assert.assertNotNull(testObject, "testObject is null");
-	}
-	
-	/**
-	 * Sample method that shouldn't be run by test suite.
-	 * @testng.test groups = "notincluded"
-	 */
-	public void shouldNotRun()
-	{
-		Assert.assertTrue(false, "Group specified by test shouldnt be run.");
-	}
+    /**
+     * Sample method that shouldn't be run by test suite.
+     * 
+     * @testng.test groups = "notincluded"
+     */
+    public void shouldNotRun()
+    {
+        Assert.assertTrue( false, "Group specified by test shouldnt be run." );
+    }
 }
\ No newline at end of file

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-parallel-with-annotations/src/test/java/testng/paralellwithannotations/TestNGParallelTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-parallel-with-annotations/src/test/java/testng/paralellwithannotations/TestNGParallelTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-parallel-with-annotations/src/test/java/testng/paralellwithannotations/TestNGParallelTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/testng-parallel-with-annotations/src/test/java/testng/paralellwithannotations/TestNGParallelTest.java Sat Dec 31 16:21:57 2011
@@ -9,34 +9,41 @@ import java.util.Date;
 /**
  * Test that parallel tests actually run and complete within the expected time.
  */
-public class TestNGParallelTest{
+public class TestNGParallelTest
+{
 
-	static int testCount = 0;
-	static long startTime;
+    static int testCount = 0;
 
-	@BeforeSuite(alwaysRun = true)
-	public void startClock(){
-		startTime = new Date().getTime();
-	}
-	
-	@AfterSuite(alwaysRun = true)
-	public void checkTestResults(){
-		long runtime = new Date().getTime() - startTime;
-		System.out.println("Runtime was: " + runtime);
-		assertTrue( testCount == 3,  "Expected test to be run 3 times, but was " + testCount);
+    static long startTime;
+
+    @BeforeSuite( alwaysRun = true )
+    public void startClock()
+    {
+        startTime = new Date().getTime();
+    }
+
+    @AfterSuite( alwaysRun = true )
+    public void checkTestResults()
+    {
+        long runtime = new Date().getTime() - startTime;
+        System.out.println( "Runtime was: " + runtime );
+        assertTrue( testCount == 3, "Expected test to be run 3 times, but was " + testCount );
         // Note, this can be < 1000 on Windows.
-		assertTrue( runtime < 1400, "Runtime was " + runtime + ". It should be a little over 1000ms");
-	}
-	
-	@Test(threadPoolSize = 2, invocationCount=3)
-    public void incrementTestCountAndSleepForOneSecond() throws InterruptedException {
+        assertTrue( runtime < 1400, "Runtime was " + runtime + ". It should be a little over 1000ms" );
+    }
+
+    @Test( threadPoolSize = 2, invocationCount = 3 )
+    public void incrementTestCountAndSleepForOneSecond()
+        throws InterruptedException
+    {
         incrementTestCount();
-       	Thread.sleep(500);
-        System.out.println("Ran test");
+        Thread.sleep( 500 );
+        System.out.println( "Ran test" );
+    }
+
+    private synchronized void incrementTestCount()
+    {
+        testCount++;
     }
-    
-    private synchronized void incrementTestCount() {
-	    testCount++;
-	}
-	
+
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/webapp/src/test/java/WebAppTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/webapp/src/test/java/WebAppTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/webapp/src/test/java/WebAppTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/webapp/src/test/java/WebAppTest.java Sat Dec 31 16:21:57 2011
@@ -5,33 +5,42 @@ import junit.framework.TestCase;
 
 import org.mortbay.jetty.Server;
 
-
-public class WebAppTest extends TestCase {
+public class WebAppTest
+    extends TestCase
+{
     private Server server = null;
-    
-    public void setUp() throws Exception {
-        System.setProperty("org.mortbay.xml.XmlParser.NotValidating", "true");
-        
+
+    public void setUp()
+        throws Exception
+    {
+        System.setProperty( "org.mortbay.xml.XmlParser.NotValidating", "true" );
+
         server = new Server();
         String testPort = ":18080";
-        server.addListener(testPort);
-        server.addWebApplication("127.0.0.1", "/webapp", "target/webapp");
-        
+        server.addListener( testPort );
+        server.addWebApplication( "127.0.0.1", "/webapp", "target/webapp" );
+
         server.start();
     }
-    
-    public void testBlah() throws Exception {
-        URL url = new URL("http://127.0.0.1:18080/webapp/index.jsp");
+
+    public void testBlah()
+        throws Exception
+    {
+        URL url = new URL( "http://127.0.0.1:18080/webapp/index.jsp" );
         InputStream stream = url.openStream();
         StringBuffer sb = new StringBuffer();
-        for (int i = stream.read(); i != -1; i = stream.read()) {
-            sb.append((char)i);
+        for ( int i = stream.read(); i != -1; i = stream.read() )
+        {
+            sb.append( (char) i );
         }
         String value = sb.toString();
-        assertTrue(value, value.contains("Hello"));
+        assertTrue( value, value.contains( "Hello" ) );
     }
-    
-    public void tearDown() throws Exception {
-        if (server != null) server.stop();
+
+    public void tearDown()
+        throws Exception
+    {
+        if ( server != null )
+            server.stop();
     }
 }

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/working-directory/child/src/test/java/workingDir/BasicTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/working-directory/child/src/test/java/workingDir/BasicTest.java?rev=1226127&r1=1226126&r2=1226127&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/working-directory/child/src/test/java/workingDir/BasicTest.java (original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/working-directory/child/src/test/java/workingDir/BasicTest.java Sat Dec 31 16:21:57 2011
@@ -8,11 +8,13 @@ public class BasicTest
     extends TestCase
 {
 
-    public void testWorkingDir() throws Exception {
+    public void testWorkingDir()
+        throws Exception
+    {
         File target = new File( "target" ).getAbsoluteFile();
         File outFile = new File( target, "out.txt" );
-        FileOutputStream os = new FileOutputStream(outFile);
-        String userDir = System.getProperty("user.dir");
+        FileOutputStream os = new FileOutputStream( outFile );
+        String userDir = System.getProperty( "user.dir" );
         Properties p = new Properties();
         p.setProperty( "user.dir", userDir );
         p.store( os, "" );