creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549426 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java
Date Mon, 09 Dec 2013 05:48:41 GMT
Author: rdonkin
Date: Mon Dec  9 05:48:41 2013
New Revision: 1549426

URL: http://svn.apache.org/r1549426
Log:
Format Code.

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=1549426&r1=1549425&r2=1549426&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:41 2013
@@ -15,7 +15,7 @@
  * KIND, either express or implied.  See the License for the    *
  * specific language governing permissions and limitations      *
  * under the License.                                           *
- */ 
+ */
 package org.apache.rat.document.impl;
 
 import org.apache.rat.api.Document;
@@ -31,27 +31,27 @@ import static org.junit.Assert.assertEqu
 import static org.junit.Assert.assertNotNull;
 
 public class SingularFileDocumentTest {
-    private Document document;
-    private File file;
-    
-    @Before
-    public void setUp() throws Exception {
-        file = Resources.getResourceFile("elements/Source.java");
-        document = new MonolithicFileDocument(file);
-    }
-
-    @Test
-    public void reader() throws Exception {
-        Reader reader = document.reader();
-        assertNotNull("Reader should be returned", reader);
-        assertEquals("First file line expected", "package elements;", 
-                 new BufferedReader(reader).readLine());
-    }
-
-    @Test
-    public void getName() {
-        final String name = document.getName();
-        assertNotNull("Name is set", name);
-        assertEquals("Name is filename", DocumentImplUtils.toName(file), name);
-    }
+	private Document document;
+	private File file;
+
+	@Before
+	public void setUp() throws Exception {
+		file = Resources.getResourceFile("elements/Source.java");
+		document = new MonolithicFileDocument(file);
+	}
+
+	@Test
+	public void reader() throws Exception {
+		Reader reader = document.reader();
+		assertNotNull("Reader should be returned", reader);
+		assertEquals("First file line expected", "package elements;",
+				new BufferedReader(reader).readLine());
+	}
+
+	@Test
+	public void getName() {
+		final String name = document.getName();
+		assertNotNull("Name is set", name);
+		assertEquals("Name is filename", DocumentImplUtils.toName(file), name);
+	}
 }



Mime
View raw message