creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548290 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java
Date Thu, 05 Dec 2013 20:42:38 GMT
Author: rdonkin
Date: Thu Dec  5 20:42:38 2013
New Revision: 1548290

URL: http://svn.apache.org/r1548290
Log:
Add test: testMatchDefaultPhrasesLicense

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java?rev=1548290&r1=1548289&r2=1548290&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java
Thu Dec  5 20:42:38 2013
@@ -28,6 +28,7 @@ import java.util.regex.Pattern;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 import org.apache.rat.analysis.RatHeaderAnalysisException;
+import org.apache.rat.analysis.generation.GeneratedLicenseNotRequired;
 
 public class GeneratedLicenseNotRequiredTest {
 
@@ -44,4 +45,12 @@ public class GeneratedLicenseNotRequired
 		final Document subject = new MockLocation("subject");
 		assertTrue("Matches regex", license.match(subject, "This is Generated"));
 	}
+
+	@Test
+	public void testMatchDefaultPhrasesLicense() throws RatHeaderAnalysisException {
+		license = new GeneratedLicenseNotRequired();
+		final Document subject = new MockLocation("subject");
+		assertTrue("Does not match regex",
+				license.match(subject, "-----Generated by Maven------"));
+	}
 }



Mime
View raw message