Author: rdonkin
Date: Mon Dec  9 05:48:59 2013
New Revision: 1549427

URL: http://svn.apache.org/r1549427
Log:
Add Java Doc.

Modified:
    
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java?rev=1549427&r1=1549426&r2=1549427&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java
 Mon Dec  9 05:48:59 2013
@@ -18,28 +18,47 @@
  */
 package org.apache.rat.document.impl;
 
-import org.apache.rat.api.Document;
-import org.apache.rat.test.utils.Resources;
-import org.junit.Before;
-import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 
 import java.io.BufferedReader;
 import java.io.File;
 import java.io.Reader;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+import org.apache.rat.api.Document;
+import org.apache.rat.test.utils.Resources;
+import org.junit.Before;
+import org.junit.Test;
 
+/**
+ * The Class SingularFileDocumentTest.
+ */
 public class SingularFileDocumentTest {
+
+       /** The document. */
        private Document document;
+
+       /** The file. */
        private File file;
 
+       /**
+        * Sets the up.
+        * 
+        * @throws Exception
+        *             the exception
+        */
        @Before
        public void setUp() throws Exception {
                file = Resources.getResourceFile("elements/Source.java");
                document = new MonolithicFileDocument(file);
        }
 
+       /**
+        * Reader.
+        * 
+        * @throws Exception
+        *             the exception
+        */
        @Test
        public void reader() throws Exception {
                Reader reader = document.reader();
@@ -48,6 +67,11 @@ public class SingularFileDocumentTest {
                                new BufferedReader(reader).readLine());
        }
 
+       /**
+        * Gets the name.
+        * 
+        * @return the name
+        */
        @Test
        public void getName() {
                final String name = document.getName();


Reply via email to