You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2016/09/03 22:35:23 UTC

[05/14] maven-surefire git commit: refactoring

refactoring


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/b6346461
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/b6346461
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/b6346461

Branch: refs/heads/master
Commit: b6346461271e259a82158c6fccae8f3967fc5676
Parents: 8da7eda
Author: Tibor17 <ti...@lycos.com>
Authored: Fri Aug 26 14:38:45 2016 +0200
Committer: Tibor17 <ti...@lycos.com>
Committed: Fri Aug 26 14:38:45 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/maven/surefire/testng/TestNGExecutor.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/b6346461/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
----------------------------------------------------------------------
diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
index 3c78b60..f95c0f2 100644
--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
+++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
@@ -47,6 +47,8 @@ import java.util.List;
 import java.util.Map;
 import java.util.concurrent.atomic.AtomicInteger;
 
+import static org.apache.maven.surefire.cli.CommandLineOption.LOGGING_LEVEL_DEBUG;
+import static org.apache.maven.surefire.cli.CommandLineOption.SHOW_ERRORS;
 import static org.apache.maven.surefire.util.ReflectionUtils.instantiate;
 import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 import static org.apache.maven.surefire.util.internal.ConcurrencyUtils.countDownToZero;
@@ -135,8 +137,7 @@ final class TestNGExecutor
 
     private static boolean isCliDebugOrShowErrors( List<CommandLineOption> mainCliOptions )
     {
-        return mainCliOptions.contains( CommandLineOption.LOGGING_LEVEL_DEBUG )
-            || mainCliOptions.contains( CommandLineOption.SHOW_ERRORS );
+        return mainCliOptions.contains( LOGGING_LEVEL_DEBUG ) || mainCliOptions.contains( SHOW_ERRORS );
     }
 
     private static TestMetadata findTestMetadata( Class<?> testClass )