Author: rdonkin
Date: Mon Dec 9 05:42:18 2013
New Revision: 1549407
URL: http://svn.apache.org/r1549407
Log:
Add Java Doc.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20Test.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20Test.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20Test.java?rev=1549407&r1=1549406&r2=1549407&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20Test.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/AppliedApacheSoftwareLicense20Test.java
Mon Dec 9 05:42:18 2013
@@ -34,10 +34,11 @@ import org.junit.Before;
import org.junit.Test;
/**
- *
+ * The Class AppliedApacheSoftwareLicense20Test.
*/
public class AppliedApacheSoftwareLicense20Test {
+ /** The Constant HEADER. */
private static final String HEADER = "/*\n"
+ " * Copyright 2012-2013 FooBar.\n"
+ " *\n"
@@ -53,14 +54,27 @@ public class AppliedApacheSoftwareLicens
+ " * See the License for the specific language
governing permissions and\n"
+ " * limitations under the License.\n" + " */\n";
+ /** The license. */
private AppliedApacheSoftwareLicense20 license;
+ /**
+ * Sets the up.
+ *
+ * @throws Exception
+ * the exception
+ */
@Before
public void setUp() throws Exception {
license = new AppliedApacheSoftwareLicense20("FooBar");
}
+ /**
+ * Test match applied apache license.
+ *
+ * @throws IOException
+ * Signals that an I/O exception has occurred.
+ */
@Test
public void testMatchAppliedApacheLicense() throws IOException {
BufferedReader bufferedReader = new BufferedReader(new
StringReader(
@@ -76,6 +90,12 @@ public class AppliedApacheSoftwareLicens
license.reset();
}
+ /**
+ * Test no match applied apache license.
+ *
+ * @throws IOException
+ * Signals that an I/O exception has occurred.
+ */
@Test
public void testNoMatchAppliedApacheLicense() throws IOException {
BufferedReader bufferedReader = Resources
@@ -91,16 +111,25 @@ public class AppliedApacheSoftwareLicens
license.reset();
}
+ /**
+ * Test not null copy right owner.
+ */
@Test
public void testNotNullCopyRightOwner() {
Assert.assertNotNull(license.getCopyRightOwner());
}
+ /**
+ * Test has copyright pattern.
+ */
@Test
public void testHasCopyrightPattern() {
assertTrue("copyrightPattern not null",
license.hasCopyrightPattern());
}
+ /**
+ * Test has full text.
+ */
@Test
public void testHasFullText() {
String fullText = "";