creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1549250
Log:
Add java doc.

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=1549250&r1=1549249&r2=1549250&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:02 2013
@@ -31,17 +31,33 @@ import org.apache.rat.document.MockLocat
 import org.junit.Before;
 import org.junit.Test;
 
+/**
+ * The Class DefaultPolicyTest.
+ */
 public class DefaultPolicyTest {
 
+	/** The policy. */
 	DefaultPolicy policy;
+	
+	/** The subject. */
 	private Document subject;
 
+	/**
+	 * Sets the up.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Before
 	public void setUp() throws Exception {
 		policy = new DefaultPolicy();
 		subject = new MockLocation("subject");
 	}
 
+	/**
+	 * Test al family.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Test
 	public void testALFamily() throws Exception {
 		subject.getMetaData().set(
@@ -51,6 +67,11 @@ public class DefaultPolicyTest {
 		assertApproval(true);
 	}
 
+	/**
+	 * Assert approval.
+	 *
+	 * @param pApproved the approved
+	 */
 	@SuppressWarnings("boxing")
 	// OK in test code
 	private void assertApproval(boolean pApproved) {
@@ -60,6 +81,11 @@ public class DefaultPolicyTest {
 								MetaData.RAT_URL_APPROVED_LICENSE)));
 	}
 
+	/**
+	 * Test oasis family.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Test
 	public void testOASISFamily() throws Exception {
 		subject.getMetaData().set(
@@ -69,6 +95,11 @@ public class DefaultPolicyTest {
 		assertApproval(true);
 	}
 
+	/**
+	 * Test w3 c family.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Test
 	public void testW3CFamily() throws Exception {
 		subject.getMetaData().set(
@@ -78,6 +109,11 @@ public class DefaultPolicyTest {
 		assertApproval(true);
 	}
 
+	/**
+	 * Test w3 c doc family.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Test
 	public void testW3CDocFamily() throws Exception {
 		subject.getMetaData().set(
@@ -87,6 +123,11 @@ public class DefaultPolicyTest {
 		assertApproval(true);
 	}
 
+	/**
+	 * Test mit family.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Test
 	public void testMITFamily() throws Exception {
 		subject.getMetaData().set(
@@ -96,6 +137,11 @@ public class DefaultPolicyTest {
 		assertApproval(true);
 	}
 
+	/**
+	 * Test unknown family.
+	 *
+	 * @throws Exception the exception
+	 */
 	@Test
 	public void testUnknownFamily() throws Exception {
 		subject.getMetaData().set(



Mime
View raw message