You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by po...@apache.org on 2014/07/30 22:38:29 UTC
svn commit: r1614759 -
/creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java
Author: pottlinger
Date: Wed Jul 30 20:38:28 2014
New Revision: 1614759
URL: http://svn.apache.org/r1614759
Log:
RAT-144: AbstractRatMojo String constant arrays should be private
https://issues.apache.org/jira/browse/RAT-144
-Refactored arrays into unmodifiable lists and reduced visibility of all default excludes.
-Added simple test to ensure size of constant lists.
Added:
creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java
Added: creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java?rev=1614759&view=auto
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java (added)
+++ creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java Wed Jul 30 20:38:28 2014
@@ -0,0 +1,16 @@
+package org.apache.rat.mp;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class AbstractRatMojoTest {
+
+ @Test
+ public void testAmountOfExclusions() {
+ assertEquals("Did you change the amount of eclipse excludes?", 3, AbstractRatMojo.ECLIPSE_DEFAULT_EXCLUDES.size());
+ assertEquals("Did you change the amount of idea excludes?", 4, AbstractRatMojo.IDEA_DEFAULT_EXCLUDES.size());
+ assertEquals("Did you change the amount of mvn excludes?", 4, AbstractRatMojo.MAVEN_DEFAULT_EXCLUDES.size());
+ }
+
+}