creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1549335
Log:
Add test: testNonIsComposite

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

Modified: 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=1549335&r1=1549334&r2=1549335&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/FileDocumentTest.java
Sun Dec  8 21:48:39 2013
@@ -42,4 +42,17 @@ public class FileDocumentTest {
 		FileDocument fileDocument = new FileDocument(file);
 		Assert.assertTrue(fileDocument.isComposite());
 	}
+
+	/**
+	 * Test is composite.
+	 * 
+	 * @throws FileNotFoundException
+	 *             the file not found exception
+	 */
+	@Test
+	public void testNonIsComposite() throws FileNotFoundException {
+		String file = Resources.getResourceDirectory("elements/Source.java");
+		FileDocument fileDocument = new FileDocument(new File(file));
+		Assert.assertFalse(fileDocument.isComposite());
+	}
 }



Mime
View raw message