creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1548451
Log:
Change method setUp.

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=1548451&r1=1548450&r2=1548451&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:12:58 2013
@@ -20,7 +20,6 @@ package org.apache.rat.analysis.license;
 
 import org.apache.rat.api.Document;
 import org.apache.rat.document.MockLocation;
-import org.apache.rat.report.claim.impl.xml.MockClaimReporter;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -30,14 +29,16 @@ import static org.junit.Assert.assertTru
  * 
  */
 public class ApacheSoftwareLicense20Test {
+	
+	private ApacheSoftwareLicense20 worker;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
+    	worker = new ApacheSoftwareLicense20();
     }
 
     @Test
     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\");"));
         assertTrue(worker.matches("Licensed under the Apache License, Version 2.0 (the \"License\");"));
@@ -52,7 +53,6 @@ public class ApacheSoftwareLicense20Test
 
     @Test
     public void match() {
-        ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
         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\");"));



Mime
View raw message