You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2013/12/06 10:19:23 UTC

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

Author: rdonkin
Date: Fri Dec  6 09:19:22 2013
New Revision: 1548458

URL: http://svn.apache.org/r1548458
Log:
Apply PMD Rules.

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=1548458&r1=1548457&r2=1548458&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:19:22 2013
@@ -39,26 +39,29 @@ public class ApacheSoftwareLicense20Test
 
     @Test
     public void testMatchesApacheLicense() {
-        assertTrue(worker.matches(ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
+		assertTrue("Matches the apache license",
+				worker.matches(ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
     }
     
     @Test
     public void testMatchesNonApacheLicense() {
-    	assertFalse(worker.matches("'Behold, Telemachus! (nor fear the sight,)"));
+		assertFalse("Not Matches the reference apache license",
+				worker.matches("'Behold, Telemachus! (nor fear the sight,)"));
     }
     
     @Test
     public void testMatchApacheLicenseLine() {
         final Document subject = new MockLocation("subject");
-        assertTrue(worker.match(subject, ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
+		assertTrue("Match the apache license", worker.match(subject,
+				ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
 	}
     
 	@Test
 	public void testMatchNonApacheLicense() {
 		final Document subject = new MockLocation("subject");
 		if (worker.getNotes() != null) {
-			assertFalse("Match the apache license", worker.match(subject,
-					"'Behold, Telemachus! (nor fear the sight,)"));
+			assertFalse("Not Match the reference apache license", worker.match(
+					subject, "'Behold, Telemachus! (nor fear the sight,)"));
 		}
 	}