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

tibordigana pushed a commit to branch checkstyle
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/checkstyle by this push:
     new dbee3c8  [SUREFIRE-1706] Use the checkstyle in tests and se 
includeTestSourceDirectory=true
dbee3c8 is described below

commit dbee3c8832622f9f4a59c71738a331544868d9e1
Author: tibordigana <tibordig...@apache.org>
AuthorDate: Sat Nov 2 20:03:38 2019 +0100

    [SUREFIRE-1706] Use the checkstyle in tests and se 
includeTestSourceDirectory=true
---
 pom.xml                                                            | 7 +++++++
 .../java/org/apache/maven/plugin/surefire/log/api/LoggersTest.java | 4 +---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1cc826b..1acbc65 100644
--- a/pom.xml
+++ b/pom.xml
@@ -678,6 +678,13 @@
         </executions>
       </plugin>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <configuration>
+          <includeTestSourceDirectory>true</includeTestSourceDirectory>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.jacoco</groupId>
         <artifactId>jacoco-maven-plugin</artifactId>
       </plugin>
diff --git 
a/surefire-logger-api/src/test/java/org/apache/maven/plugin/surefire/log/api/LoggersTest.java
 
b/surefire-logger-api/src/test/java/org/apache/maven/plugin/surefire/log/api/LoggersTest.java
index 7de9148..192d209 100644
--- 
a/surefire-logger-api/src/test/java/org/apache/maven/plugin/surefire/log/api/LoggersTest.java
+++ 
b/surefire-logger-api/src/test/java/org/apache/maven/plugin/surefire/log/api/LoggersTest.java
@@ -21,8 +21,6 @@ package org.apache.maven.plugin.surefire.log.api;
 
 import org.junit.Test;
 import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import org.mockito.internal.matchers.CapturesArguments;
 
 import java.io.ByteArrayOutputStream;
 import java.io.PrintStream;
@@ -65,7 +63,7 @@ public class LoggersTest
         logger.error( e );
         assertThat( outputStream.toString() )
                 .contains( "java.lang.Exception: exception" )
-                .contains( "at " + getClass().getName() + 
".testPrintStreamLogger(LoggersTest.java:63)" );
+                .contains( "at " + getClass().getName() + 
".testPrintStreamLogger(LoggersTest.java:61)" );
     }
 
     @Test( expected = NullPointerException.class )

Reply via email to