Nice/src/nice/tools/unit api.nice,1.4,1.5
Artem Gr Kozarezov <[email protected]> Thu, 23 Jun 2005 08:26:56 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/src/nice/tools/unit
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11085/src/nice/tools/unit
Modified Files:
api.nice
Log Message:
Custom classloader.
Index: api.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/unit/api.nice,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** api.nice 24 Feb 2005 16:38:23 -0000 1.4
--- api.nice 23 Jun 2005 08:26:53 -0000 1.5
***************
*** 6,12 ****
public boolean runTests(String packageName, TestListener listener,
! ?String classpath = null)
{
! let classloader = classpath == null
? ClassLoader.getSystemClassLoader()
: classloaderFromClasspath(notNull(classpath));
--- 6,16 ----
public boolean runTests(String packageName, TestListener listener,
! ?String classpath = null, ?ClassLoader classloader = null)
{
! // A custom classloader might be required, in particular, when testing
! // multiple packages, to keep opened databases from loosing.
! // Using separate classloaders will left databases open, locked,
! // but not accessible from subsequent classloaders.
! if( classloader == null ) classloader = classpath == null
? ClassLoader.getSystemClassLoader()
: classloaderFromClasspath(notNull(classpath));
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click