[Nice-commit] Nice/src/nice/tools/unit api.nice,1.4,1.5
Brought to you by:
bonniot
From: Artem Gr K. <ar...@us...> - 2005-06-23 08:27:02
|
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)); |