jicarilla-sandbox/platform/container/api/src/test/org/jicarilla/container/test JicarillaExceptionTestCase.java,1.1,1.2
| Newsgroups | gmane.comp.java.jicarilla.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/container/api/src/test/org/jicarilla/container/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17707/platform/container/api/src/test/org/jicarilla/container/test
Modified Files:
JicarillaExceptionTestCase.java
Log Message:
coverage of some obscure code
Index: JicarillaExceptionTestCase.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/api/src/test/org/jicarilla/container/test/JicarillaExceptionTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- JicarillaExceptionTestCase.java 10 Jan 2004 15:39:00 -0000 1.1
+++ JicarillaExceptionTestCase.java 26 Feb 2004 15:31:34 -0000 1.2
@@ -27,6 +27,8 @@
import org.jicarilla.container.JicarillaException;
+import java.lang.reflect.Constructor;
+
/**
*
*
@@ -54,4 +56,18 @@
{
return new JicarillaException( message, cause );
}
+
+ public void testConstructorWithThrowableArgumentThrowsExceptionOnNull()
+ throws Exception
+ {
+ Constructor c = JicarillaException.class.getConstructor(
+ new Class[] { Throwable.class } );
+
+ try
+ {
+ c.newInstance( new Object[] { null } );
+ fail( "Expected an exception!" );
+ }
+ catch( Exception e ) {}
+ }
}
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click