Author: rdonkin
Date: Sat Dec  7 11:46:45 2013
New Revision: 1548900

URL: http://svn.apache.org/r1548900
Log:
Add test: testStandardTypeAnalyserFileException

Modified:
    
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/AnalyserFactoryTest.java

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/AnalyserFactoryTest.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/AnalyserFactoryTest.java?rev=1548900&r1=1548899&r2=1548900&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/AnalyserFactoryTest.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/AnalyserFactoryTest.java
 Sat Dec  7 11:46:45 2013
@@ -185,4 +185,22 @@ public class AnalyserFactoryTest {
                                "src/test/elements/Dummy.jar"));
                Assert.assertFalse(document.isComposite());
        }
+
+       /**
+        * Test standard type analyser exception.
+        * 
+        * @throws IOException
+        *             Signals that an I/O exception has occurred.
+        * @throws RatException
+        *             the rat exception
+        */
+       @Test(expected = IOException.class)
+       public void testStandardTypeAnalyserFileException() throws IOException,
+                       RatException {
+               MonolithicFileDocument document = new 
MonolithicFileDocument(new File(
+                               "src/test/resources/elements/Text.txtt"));
+               IDocumentAnalyser analyser = DefaultAnalyserFactory
+                               .createDefaultAnalyser(matcherStub);
+               analyser.analyse(document);
+       }
 }


Reply via email to