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/05 21:39:33 UTC

svn commit: r1548286 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java

Author: rdonkin
Date: Thu Dec  5 20:39:32 2013
New Revision: 1548286

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

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=1548286&r1=1548285&r2=1548286&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:39:32 2013
@@ -27,19 +27,20 @@ import java.util.regex.Pattern;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
+import org.apache.rat.analysis.RatHeaderAnalysisException;
 
 public class GeneratedLicenseNotRequiredTest {
 
-    GeneratedLicenseNotRequired license;
+    private GeneratedLicenseNotRequired license;
     
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Pattern[] patterns = {Pattern.compile(".*Generated")};
         license = new GeneratedLicenseNotRequired(patterns);
     }
 
     @Test
-    public void match() throws Exception {
+    public void match() throws RatHeaderAnalysisException {
         final Document subject = new MockLocation("subject");
         assertFalse("Does not match regex", license.match(subject, "Not at all"));
         assertTrue("Matches regex", license.match(subject, "This is Generated"));