Author: rdonkin
Date: Mon Dec 9 05:44:43 2013
New Revision: 1549414
URL: http://svn.apache.org/r1549414
Log:
Add Java Doc.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/W3CLicenseTest.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/W3CLicenseTest.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/W3CLicenseTest.java?rev=1549414&r1=1549413&r2=1549414&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/W3CLicenseTest.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/W3CLicenseTest.java
Mon Dec 9 05:44:43 2013
@@ -25,30 +25,46 @@ import static org.junit.Assert.assertTru
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;
+/**
+ * The Class W3CLicenseTest.
+ */
public class W3CLicenseTest {
+ /** The Constant COPYRIGHT_URL. */
public static final String COPYRIGHT_URL =
"http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231";
+ /** The Constant COPYRIGHT_URL_COMMENTED. */
public static final String COPYRIGHT_URL_COMMENTED =
"#
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 #";
+ /** The Constant COPYRIGHT_URL_XML. */
public static final String COPYRIGHT_URL_XML =
"<!--
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -->";
+ /** The license. */
W3CLicense license;
- MockClaimReporter reporter;
+ /**
+ * Sets the up.
+ *
+ * @throws Exception
+ * the exception
+ */
@Before
public void setUp() throws Exception {
this.license = new W3CLicense();
- this.reporter = new MockClaimReporter();
}
+ /**
+ * Match.
+ *
+ * @throws Exception
+ * the exception
+ */
@Test
public void match() throws Exception {
final Document subject = new MockLocation("subject");
@@ -62,6 +78,9 @@ public class W3CLicenseTest {
this.license.match(subject, "Bogus"));
}
+ /**
+ * Test notes.
+ */
@Test
public void testNotes() {
assertThat(
@@ -69,11 +88,17 @@ public class W3CLicenseTest {
is("Note that W3C requires a NOTICE. All modifications require
notes. See
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231."));
}
+ /**
+ * Test category.
+ */
@Test
public void testCategory() {
assertThat(this.license.getLicenseFamilyCategory(), is("W3C "));
}
+ /**
+ * Test name.
+ */
@Test
public void testName() {
assertThat(this.license.getLicenseFamilyName(),