creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1548291
Log:
Add test: testMatchNonPatternLicense

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=1548291&r1=1548290&r2=1548291&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:43:38 2013
@@ -28,7 +28,6 @@ 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 {
 
@@ -53,4 +52,11 @@ public class GeneratedLicenseNotRequired
 		assertTrue("Does not match regex",
 				license.match(subject, "-----Generated by Maven------"));
 	}
+	
+	@Test
+	public void testMatchNonPatternLicense() throws RatHeaderAnalysisException{
+		final Document subject = new MockLocation("subject");
+		assertFalse("Does not match regex",
+				license.match(subject, "Not at all"));
+	}
 }



Mime
View raw message