creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549251 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
Date Sun, 08 Dec 2013 21:06:32 GMT
Author: rdonkin
Date: Sun Dec  8 21:06:32 2013
New Revision: 1549251

URL: http://svn.apache.org/r1549251
Log:
Apply PMD change.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java?rev=1549251&r1=1549250&r2=1549251&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
Sun Dec  8 21:06:32 2013
@@ -37,7 +37,7 @@ import org.junit.Test;
 public class DefaultPolicyTest {
 
 	/** The policy. */
-	DefaultPolicy policy;
+	private DefaultPolicy policy;
 	
 	/** The subject. */
 	private Document subject;
@@ -74,8 +74,8 @@ public class DefaultPolicyTest {
 	 */
 	@SuppressWarnings("boxing")
 	// OK in test code
-	private void assertApproval(boolean pApproved) {
-		assertEquals(pApproved,
+	private void assertApproval(final boolean pApproved) {
+		assertEquals("Metadata value are equals.", pApproved,
 				MetaData.RAT_APPROVED_LICENSE_VALUE_TRUE
 						.equals(subject.getMetaData().value(
 								MetaData.RAT_URL_APPROVED_LICENSE)));



Mime
View raw message