creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548287 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.java
Date Thu, 05 Dec 2013 20:40:27 GMT
Author: rdonkin
Date: Thu Dec  5 20:40:27 2013
New Revision: 1548287

URL: http://svn.apache.org/r1548287
Log:
Format Code.

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=1548287&r1=1548286&r2=1548287&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:40:27 2013
@@ -15,7 +15,7 @@
  * KIND, either express or implied.  See the License for the    *
  * specific language governing permissions and limitations      *
  * under the License.                                           *
- */ 
+ */
 package org.apache.rat.analysis.generation;
 
 import org.apache.rat.api.Document;
@@ -31,18 +31,19 @@ import org.apache.rat.analysis.RatHeader
 
 public class GeneratedLicenseNotRequiredTest {
 
-    private GeneratedLicenseNotRequired license;
-    
-    @Before
-    public void setUp() {
-        Pattern[] patterns = {Pattern.compile(".*Generated")};
-        license = new GeneratedLicenseNotRequired(patterns);
-    }
-
-    @Test
-    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"));
-    }
+	private GeneratedLicenseNotRequired license;
+
+	@Before
+	public void setUp() {
+		Pattern[] patterns = { Pattern.compile(".*Generated") };
+		license = new GeneratedLicenseNotRequired(patterns);
+	}
+
+	@Test
+	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