jicarilla-sandbox/platform/container/impl/src/test/org/jicarilla/container/test/builder DefaultBuilderTestCase.java,1.6,1.7
Leo Simons <[email protected]>
| Newsgroups | gmane.comp.java.jicarilla.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/test/org/jicarilla/container/test/builder
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15658/platform/container/impl/src/test/org/jicarilla/container/test/builder
Modified Files:
DefaultBuilderTestCase.java
Log Message:
100% coverage for DefaultBuilder...boy that was easy!
Index: DefaultBuilderTestCase.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/test/org/jicarilla/container/test/builder/DefaultBuilderTestCase.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- DefaultBuilderTestCase.java 17 Mar 2004 14:14:17 -0000 1.6
+++ DefaultBuilderTestCase.java 17 Mar 2004 16:35:31 -0000 1.7
@@ -51,6 +51,9 @@
{
public void testBasicUsage() throws Exception
{
+ // this tests actually results in a 100% coverage. Remarkable...
+ // shows the robustness of the DefaultBuilder class I guess...very
+ // little excess fat there :-D
Resolver resolver =
DefaultBuilder.newInstance()
.addComponent( HomerImpl.class )
@@ -76,4 +79,16 @@
homer.burp();
marge.frown();
}
+
+ public void testNullProviderThrowsException() throws Exception
+ {
+ try
+ {
+ DefaultBuilder.newInstance()
+ .addComponent( null );
+ fail( "Expected an exception!" );
+ }
+ catch( AssertionError ae ) {}
+
+ }
}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click