maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1050534 [2/2] - in /maven/surefire/trunk: maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/ maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ maven-surefire-report-plugin/src/main/java/o...
Date Fri, 17 Dec 2010 23:54:51 GMT
Modified: maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java?rev=1050534&r1=1050533&r2=1050534&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
(original)
+++ maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
Fri Dec 17 23:54:50 2010
@@ -25,8 +25,6 @@ import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 
-import org.apache.maven.surefire.testng.conf.AbstractDirectConfigurator;
-import org.apache.maven.surefire.testng.conf.Configurator;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.testng.TestNG;
 
@@ -59,11 +57,11 @@ public class TestNGMapConfigurator
             Object val = entry.getValue();
             if ( "listener".equals( key ) )
             {
-                val = AbstractDirectConfigurator.loadListenerClasses((String) val);
+                val = AbstractDirectConfigurator.loadListenerClasses( (String) val );
             }
             if ( "objectfactory".equals( key ) )
             {
-                val = AbstractDirectConfigurator.loadClass((String) val);
+                val = AbstractDirectConfigurator.loadClass( (String) val );
             }
             if ( "reporter".equals( key ) )
             {
@@ -84,13 +82,13 @@ public class TestNGMapConfigurator
                 val = convert( val, String.class );
             }
             // TODO objectfactory... not even documented, does it work?
-            if ( key.startsWith("-") )
+            if ( key.startsWith( "-" ) )
             {
-              convertedOptions.put( key, val );
+                convertedOptions.put( key, val );
             }
             else
             {
-              convertedOptions.put( "-" + key, val );
+                convertedOptions.put( "-" + key, val );
             }
         }
 



Mime
View raw message