jicarilla-sandbox/platform/container/impl/src/test/org/jicarilla/container/test/builder AdapterHelperTestCase.java,1.2,1.3
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-serv17208/platform/container/impl/src/test/org/jicarilla/container/test/builder
Modified Files:
AdapterHelperTestCase.java
Log Message:
classcasts implicit in provision of selector...
Index: AdapterHelperTestCase.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/test/org/jicarilla/container/test/builder/AdapterHelperTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AdapterHelperTestCase.java 17 Mar 2004 16:21:34 -0000 1.2
+++ AdapterHelperTestCase.java 17 Mar 2004 16:42:11 -0000 1.3
@@ -78,6 +78,17 @@
catch( AssertionError e ) {}
}
+ public void testGetAdapterThrowsClassCastException() throws Exception
+ {
+ AdapterHelper helper = new AdapterHelper();
+ try
+ {
+ helper.getAdapter( this );
+ fail( "Expected an exception!" );
+ }
+ catch( ClassCastException e ) {}
+ }
+
public void testGetSelector() throws Exception
{
adapter.getInstance();
@@ -108,4 +119,15 @@
}
catch( AssertionError e ) {}
}
+
+ public void testGetSelectorThrowsClassCastException() throws Exception
+ {
+ AdapterHelper helper = new AdapterHelper();
+ try
+ {
+ helper.getSelector( this );
+ fail( "Expected an exception!" );
+ }
+ catch( ClassCastException e ) {}
+ }
}
-------------------------------------------------------
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