Author: rdonkin
Date: Mon Dec 9 06:17:16 2013
New Revision: 1549489
URL: http://svn.apache.org/r1549489
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=1549489&r1=1549488&r2=1549489&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:16 2013
@@ -438,6 +438,29 @@ public class ReportTest {
}
/**
+ * Test main args not option.
+ *
+ * @throws TransformerConfigurationException
+ * the transformer configuration exception
+ * @throws IOException
+ * Signals that an I/O exception has occurred.
+ * @throws InterruptedException
+ * the interrupted exception
+ */
+ @Test
+ public void testMainArgsNotOption()
+ throws TransformerConfigurationException,
+ IOException, InterruptedException {
+ try {
+ String[] args = new String[1];
+ args[0] = "f";
+ Report.main(args);
+ } catch (ExitException e) {
+ assertEquals("Exit status", 0, e.status);
+ }
+ }
+
+ /**
* Sets the down.
*
* @throws Exception