creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548454 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java
Date Fri, 06 Dec 2013 09:16:05 GMT
Author: rdonkin
Date: Fri Dec  6 09:16:05 2013
New Revision: 1548454

URL: http://svn.apache.org/r1548454
Log:
Add test: testMatchesNonApacheLicense

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java?rev=1548454&r1=1548453&r2=1548454&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java
Fri Dec  6 09:16:05 2013
@@ -38,10 +38,15 @@ public class ApacheSoftwareLicense20Test
     }
 
     @Test
-    public void testMatchesFirstApacheLicense() {
+    public void testMatchesApacheLicense() {
         assertTrue(worker.matches(ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
     }
-
+    
+    @Test
+    public void testMatchesNonApacheLicense() {
+    	assertFalse(worker.matches("'Behold, Telemachus! (nor fear the sight,)"));
+    }
+    
     @Test
     public void match() {
         final Document subject = new MockLocation("subject");



Mime
View raw message