From: Steve L. <st...@us...> - 2006-06-14 21:01:20
|
Update of /cvsroot/smartfrog/core/components/junit/test/files In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18657/components/junit/test/files Modified Files: log-chain-all.sf Added Files: logging-compound.sf Log Message: more test-logging tests, plus tweaking build.xml to upload commons-logging full to the public endpoint. Index: log-chain-all.sf =================================================================== RCS file: /cvsroot/smartfrog/core/components/junit/test/files/log-chain-all.sf,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** log-chain-all.sf 13 Jun 2006 20:21:51 -0000 1.5 --- log-chain-all.sf 14 Jun 2006 21:01:12 -0000 1.6 *************** *** 20,25 **** #include "/files/chain-all.sf" ! #include "/org/smartfrog/sfcore/logging/components.sf" ! #include "/org/smartfrog/sfcore/logging/logtoprimimpl.sf" sfCodeBase PROPERTY org.smartfrog.codebase; --- 20,24 ---- #include "/files/chain-all.sf" ! #include "/files/logging-compound.sf" sfCodeBase PROPERTY org.smartfrog.codebase; *************** *** 29,54 **** */ ! sfConfig extends Compound { ! ! ! log extends SFLog { ! //log against our parent ! logFrom LAZY PARENT; ! //log to a prim ! logTo extends LogToPrimImpl { ! loggerClass "org.smartfrog.sfcore.logging.LogToPrimImpl"; ! //the destination prim is defined here ! logTo extends TestListenerLog { - } - //trace out what is going on - debug true; - } - } chain extends Chain { } ! chain:tests:testLog LAZY log:logTo:logTo; --- 28,38 ---- */ ! sfConfig extends LoggingCompound { chain extends Chain { } ! chain:tests:testLog LAZY testLog; --- NEW FILE: logging-compound.sf --- /** (C) Copyright 1998-2004 Hewlett-Packard Development Company, LP This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For more information: www.smartfrog.org */ #include "/org/smartfrog/sfcore/logging/components.sf" #include "/org/smartfrog/sfcore/logging/logtoprimimpl.sf" /** * run all tests in the suite. * output to an XML listener */ LoggingCompound extends Compound { log extends SFLog { //log against our parent logFrom LAZY PARENT; //log to a prim logTo extends LogToPrimImpl { loggerClass "org.smartfrog.sfcore.logging.LogToPrimImpl"; //the destination prim is defined here logTo extends TestListenerLog { } //trace out what is going on debug true; } } testLog LAZY log:logTo:logTo; } |