Author: rdonkin
Date: Mon Dec  9 06:17:03 2013
New Revision: 1549488

URL: http://svn.apache.org/r1549488
Log:
Add Test

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

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java?rev=1549488&r1=1549487&r2=1549488&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java
 Mon Dec  9 06:17:03 2013
@@ -416,6 +416,28 @@ public class ReportTest {
        }
 
        /**
+        * Test main args h.
+        * 
+        * @throws TransformerConfigurationException
+        *             the transformer configuration exception
+        * @throws IOException
+        *             Signals that an I/O exception has occurred.
+        * @throws InterruptedException
+        *             the interrupted exception
+        */
+       @Test
+       public void testMainArgsH() throws TransformerConfigurationException,
+                       IOException, InterruptedException {
+               try {
+                       String[] args = new String[1];
+                       args[0] = "-h";
+                       Report.main(args);
+               } catch (ExitException e) {
+                       assertEquals("Exit status", 0, e.status);
+               }
+       }
+
+       /**
         * Sets the down.
         * 
         * @throws Exception


Reply via email to