maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1608930 - in /maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec: CheckstyleReportListenerMultiSourceTest.java CheckstyleReportListenerTest.java
Date Tue, 08 Jul 2014 19:56:36 GMT
Author: hboutemy
Date: Tue Jul  8 19:56:35 2014
New Revision: 1608930

URL: http://svn.apache.org/r1608930
Log:
renamed CheckstyleReportListener to CheckstyleCheckerListener to better match the use

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerMultiSourceTest.java
    maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerTest.java

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerMultiSourceTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerMultiSourceTest.java?rev=1608930&r1=1608929&r2=1608930&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerMultiSourceTest.java
(original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerMultiSourceTest.java
Tue Jul  8 19:56:35 2014
@@ -29,7 +29,7 @@ import java.io.File;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.apache.maven.plugin.checkstyle.exec.CheckstyleReportListener;
+import org.apache.maven.plugin.checkstyle.exec.CheckstyleCheckerListener;
 import org.apache.maven.plugin.checkstyle.exec.CheckstyleResults;
 
 /**
@@ -38,7 +38,7 @@ import org.apache.maven.plugin.checkstyl
 public class CheckstyleReportListenerMultiSourceTest
     extends TestCase
 {
-    private Map<SeverityLevel, CheckstyleReportListener> listenerMap;
+    private Map<SeverityLevel, CheckstyleCheckerListener> listenerMap;
 
     /**
      * {@inheritDoc}
@@ -46,24 +46,24 @@ public class CheckstyleReportListenerMul
     protected void setUp()
         throws Exception
     {
-        listenerMap = new HashMap<SeverityLevel, CheckstyleReportListener>();
+        listenerMap = new HashMap<SeverityLevel, CheckstyleCheckerListener>();
 
-        CheckstyleReportListener listener = new CheckstyleReportListener( new File( "/source/path"
) );
+        CheckstyleCheckerListener listener = new CheckstyleCheckerListener( new File( "/source/path"
) );
         listener.addSourceDirectory( new File( "/source/path2" ) );
         listener.setSeverityLevelFilter( SeverityLevel.INFO );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
 
-        listener = new CheckstyleReportListener( new File( "/source/path" ) );
+        listener = new CheckstyleCheckerListener( new File( "/source/path" ) );
         listener.addSourceDirectory( new File( "/source/path2" ) );
         listener.setSeverityLevelFilter( SeverityLevel.WARNING );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
 
-        listener = new CheckstyleReportListener( new File( "/source/path" ) );
+        listener = new CheckstyleCheckerListener( new File( "/source/path" ) );
         listener.addSourceDirectory( new File( "/source/path2" ) );
         listener.setSeverityLevelFilter( SeverityLevel.ERROR );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
 
-        listener = new CheckstyleReportListener( new File( "/source/path" ) );
+        listener = new CheckstyleCheckerListener( new File( "/source/path" ) );
         listener.addSourceDirectory( new File( "/source/path2" ) );
         listener.setSeverityLevelFilter( SeverityLevel.IGNORE );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
@@ -106,7 +106,7 @@ public class CheckstyleReportListenerMul
 
         fireAuditFinished( null );
 
-        CheckstyleReportListener listener = listenerMap.get( SeverityLevel.INFO );
+        CheckstyleCheckerListener listener = listenerMap.get( SeverityLevel.INFO );
         CheckstyleResults results = listener.getResults();
         assertEquals( "Test total files", 4, results.getFiles().size() );
         assertEquals( "Test file count", 4, results.getFileCount() );
@@ -149,7 +149,7 @@ public class CheckstyleReportListenerMul
 
     private void fireAuditStarted( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.auditStarted( event );
         }
@@ -157,7 +157,7 @@ public class CheckstyleReportListenerMul
 
     private void fireAuditFinished( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.auditFinished( event );
         }
@@ -165,7 +165,7 @@ public class CheckstyleReportListenerMul
 
     private void fireFileStarted( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.fileStarted( event );
         }
@@ -173,7 +173,7 @@ public class CheckstyleReportListenerMul
 
     private void fireFileFinished( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.fileFinished( event );
         }
@@ -181,7 +181,7 @@ public class CheckstyleReportListenerMul
 
     private void fireAddError( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.addError( event );
         }

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerTest.java?rev=1608930&r1=1608929&r2=1608930&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerTest.java
(original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/exec/CheckstyleReportListenerTest.java
Tue Jul  8 19:56:35 2014
@@ -29,7 +29,7 @@ import java.io.File;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.apache.maven.plugin.checkstyle.exec.CheckstyleReportListener;
+import org.apache.maven.plugin.checkstyle.exec.CheckstyleCheckerListener;
 import org.apache.maven.plugin.checkstyle.exec.CheckstyleResults;
 
 /**
@@ -39,27 +39,27 @@ import org.apache.maven.plugin.checkstyl
 public class CheckstyleReportListenerTest
     extends TestCase
 {
-    private Map<SeverityLevel, CheckstyleReportListener> listenerMap;
+    private Map<SeverityLevel, CheckstyleCheckerListener> listenerMap;
 
     /** {@inheritDoc} */
     protected void setUp()
         throws Exception
     {
-        listenerMap = new HashMap<SeverityLevel, CheckstyleReportListener>();
+        listenerMap = new HashMap<SeverityLevel, CheckstyleCheckerListener>();
 
-        CheckstyleReportListener listener = new CheckstyleReportListener( new File( "/source/path"
) );
+        CheckstyleCheckerListener listener = new CheckstyleCheckerListener( new File( "/source/path"
) );
         listener.setSeverityLevelFilter( SeverityLevel.INFO );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
 
-        listener = new CheckstyleReportListener( new File( "/source/path" ) );
+        listener = new CheckstyleCheckerListener( new File( "/source/path" ) );
         listener.setSeverityLevelFilter( SeverityLevel.WARNING );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
 
-        listener = new CheckstyleReportListener( new File( "/source/path" ) );
+        listener = new CheckstyleCheckerListener( new File( "/source/path" ) );
         listener.setSeverityLevelFilter( SeverityLevel.ERROR );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
 
-        listener = new CheckstyleReportListener( new File( "/source/path" ) );
+        listener = new CheckstyleCheckerListener( new File( "/source/path" ) );
         listener.setSeverityLevelFilter( SeverityLevel.IGNORE );
         listenerMap.put( listener.getSeverityLevelFilter(), listener );
     }
@@ -100,7 +100,7 @@ public class CheckstyleReportListenerTes
 
         fireAuditFinished( null );
 
-        CheckstyleReportListener listener = listenerMap.get( SeverityLevel.INFO );
+        CheckstyleCheckerListener listener = listenerMap.get( SeverityLevel.INFO );
         CheckstyleResults results = listener.getResults();
         assertEquals( "Test total files", 4, results.getFiles().size() );
         assertEquals( "Test file count", 4, results.getFileCount() );
@@ -143,7 +143,7 @@ public class CheckstyleReportListenerTes
 
     private void fireAuditStarted( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.auditStarted( event );
         }
@@ -151,7 +151,7 @@ public class CheckstyleReportListenerTes
 
     private void fireAuditFinished( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.auditFinished( event );
         }
@@ -159,7 +159,7 @@ public class CheckstyleReportListenerTes
 
     private void fireFileStarted( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.fileStarted( event );
         }
@@ -167,7 +167,7 @@ public class CheckstyleReportListenerTes
 
     private void fireFileFinished( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.fileFinished( event );
         }
@@ -175,7 +175,7 @@ public class CheckstyleReportListenerTes
 
     private void fireAddError( AuditEvent event )
     {
-        for ( CheckstyleReportListener listener : listenerMap.values() )
+        for ( CheckstyleCheckerListener listener : listenerMap.values() )
         {
             listener.addError( event );
         }



Mime
View raw message