Revision: 628
http://japi.svn.sourceforge.net/japi/?rev=628&view=rev
Author: christianhujer
Date: 2007-10-12 12:23:31 -0700 (Fri, 12 Oct 2007)
Log Message:
-----------
Added test case for IllegalArgumentException in case no missing options were given.
Modified Paths:
--------------
libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RequiredOptionsMissingExceptionTest.java
Modified: libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RequiredOptionsMissingExceptionTest.java
===================================================================
--- libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RequiredOptionsMissingExceptionTest.java 2007-10-12 19:00:32 UTC (rev 627)
+++ libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RequiredOptionsMissingExceptionTest.java 2007-10-12 19:23:31 UTC (rev 628)
@@ -51,4 +51,13 @@
testRequiredOptionsMissingException();
}
+ /**
+ * Tests that {@link RequiredOptionsMissingException#RequiredOptionsMissingException(String[])} throws an IllegalArgumentException in case no missing options were given.
+ * @throws IllegalArgumentException (expected).
+ */
+ @Test(expected = IllegalArgumentException.class)
+ public void testNoMissingOptions() throws Exception {
+ new RequiredOptionsMissingException();
+ }
+
} // class RequiredOptionsMissingExceptionTest
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|