You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2023/09/28 13:28:13 UTC

[maven-invoker] branch master updated: [MSHARED-1306] don't log from passing tests (#66)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-invoker.git


The following commit(s) were added to refs/heads/master by this push:
     new 860e40e  [MSHARED-1306] don't log from passing tests (#66)
860e40e is described below

commit 860e40e130393f8bdcf6c564ea9ee32a4bbe4e8a
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Thu Sep 28 13:28:09 2023 +0000

    [MSHARED-1306] don't log from passing tests (#66)
---
 .../maven/shared/invoker/DefaultInvokerTest.java     | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java b/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
index b0d9f28..4ab7895 100644
--- a/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
+++ b/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
@@ -98,8 +98,6 @@ public class DefaultInvokerTest {
 
     @Test
     public void testSpacePom() throws Exception {
-        logTestStart();
-
         File basedir = getBasedirForBuild();
 
         Invoker invoker = newInvoker();
@@ -118,8 +116,6 @@ public class DefaultInvokerTest {
 
     @Test
     public void testSpaceAndSpecialCharPom() throws Exception {
-        logTestStart();
-
         File basedir = getBasedirForBuild();
 
         Invoker invoker = newInvoker();
@@ -138,8 +134,6 @@ public class DefaultInvokerTest {
 
     @Test
     public void testSpaceSettings() throws Exception {
-        logTestStart();
-
         File basedir = getBasedirForBuild();
 
         Invoker invoker = newInvoker();
@@ -158,8 +152,6 @@ public class DefaultInvokerTest {
 
     @Test
     public void testSpaceLocalRepo() throws Exception {
-        logTestStart();
-
         File basedir = getBasedirForBuild();
 
         Invoker invoker = newInvoker();
@@ -178,8 +170,6 @@ public class DefaultInvokerTest {
 
     @Test
     public void testSpaceProperties() throws Exception {
-        logTestStart();
-
         File basedir = getBasedirForBuild();
 
         Invoker invoker = newInvoker();
@@ -201,8 +191,6 @@ public class DefaultInvokerTest {
 
     @Test
     public void testPomOutsideProject() throws Exception {
-        logTestStart();
-
         File testDir = getBasedirForBuild();
 
         File basedir = new File(testDir, "project");
@@ -300,14 +288,6 @@ public class DefaultInvokerTest {
         return new File(new URI(dirResource.toString()).getPath());
     }
 
-    // this is just a debugging helper for separating unit test output...
-    private void logTestStart() {
-        NullPointerException npe = new NullPointerException();
-        StackTraceElement element = npe.getStackTrace()[1];
-
-        System.out.println("Starting: " + element.getMethodName());
-    }
-
     private Properties getProperties() {
         Properties properties = new Properties();
         if (!System.getProperty("java.version").startsWith("1.")) {