creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549334 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java
Date Sun, 08 Dec 2013 21:48:17 GMT
Author: rdonkin
Date: Sun Dec  8 21:48:17 2013
New Revision: 1549334

URL: http://svn.apache.org/r1549334
Log:
Add test: FileDocumentTest

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

Added: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java?rev=1549334&view=auto
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java
(added)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java
Sun Dec  8 21:48:17 2013
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * 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 java.io.File;
+import java.io.FileNotFoundException;
+
+import org.apache.rat.test.utils.Resources;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * The Class FileDocumentTest.
+ */
+public class FileDocumentTest {
+
+	/**
+	 * Test is composite.
+	 * 
+	 * @throws FileNotFoundException
+	 *             the file not found exception
+	 */
+    @Test
+	public void testIsComposite() throws FileNotFoundException {
+		File file = Resources.getResourceFile("elements/Source.java");
+		FileDocument fileDocument = new FileDocument(file);
+		Assert.assertTrue(fileDocument.isComposite());
+	}
+}



Mime
View raw message