creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548286 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java
Date Thu, 05 Dec 2013 20:39:33 GMT
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"));



Mime
View raw message