creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject svn commit: r1614759 - /creadur/rat/trunk/apache-rat-plugin/src/test/java/org/apache/rat/mp/AbstractRatMojoTest.java
Date Wed, 30 Jul 2014 20:38:29 GMT
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());
+	}
+
+}



Mime
View raw message