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:10:22 UTC

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

Author: rdonkin
Date: Fri Dec  6 09:10:22 2013
New Revision: 1548447

URL: http://svn.apache.org/r1548447
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=1548447&r1=1548446&r2=1548447&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:10:22 2013
@@ -26,10 +26,12 @@ import org.junit.Test;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
-
+/**
+ * 
+ */
 public class ApacheSoftwareLicense20Test {
 
-    MockClaimReporter reporter;
+	private MockClaimReporter reporter;
 
     @Before
     public void setUp() throws Exception {
@@ -37,7 +39,7 @@ public class ApacheSoftwareLicense20Test
     }
 
     @Test
-    public void matches() throws Exception {
+    public void matches() {
         ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
         assertTrue(worker.matches(ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
         assertTrue(worker.matches("    Licensed under the Apache License, Version 2.0 (the \"License\");"));
@@ -52,7 +54,7 @@ public class ApacheSoftwareLicense20Test
     }
 
     @Test
-    public void match() throws Exception {
+    public void match() {
         ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
         final Document subject = new MockLocation("subject");
         assertTrue(worker.match(subject, ApacheSoftwareLicense20.FIRST_LICENSE_LINE));