creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1548456
Log:
Change naming test method. For each test method there is only one assert.

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=1548456&r1=1548455&r2=1548456&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:17:31 2013
@@ -48,19 +48,9 @@ public class ApacheSoftwareLicense20Test
     }
     
     @Test
-    public void match() {
+    public void testMatchApacheLicenseLine() {
         final Document subject = new MockLocation("subject");
         assertTrue(worker.match(subject, ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
-        assertTrue(worker.match(subject, "    Licensed under the Apache License, Version
2.0 (the \"License\");"));
-        assertTrue(worker.match(subject, "Licensed under the Apache License, Version 2.0
(the \"License\");"));
-        assertTrue(worker.match(subject, " * Licensed under the Apache License, Version 2.0
(the \"License\");"));
-        assertTrue(worker.match(subject, " // Licensed under the Apache License, Version
2.0 (the \"License\");"));
-        assertTrue(worker.match(subject, " /* Licensed under the Apache License, Version
2.0 (the \"License\");"));
-        assertTrue(worker.match(subject, "    Licensed under the Apache License, Version
2.0 (the \"License\");"));
-        assertTrue(worker.match(subject, " ## Licensed under the Apache License, Version
2.0 (the \"License\");"));
-        assertTrue(worker.match(subject, " ## Licensed under the Apache License, Version
2.0 (the \"License\") ##);"));
-		assertFalse(worker.match(subject,
-				"'Behold, Telemachus! (nor fear the sight,)"));
 	}
 
 }



Mime
View raw message