blob: 53600b1d5b02e2ab59bdb7767fa60c5cb5d960aa [file] [log] [blame]
/**
* Tests the use of GroovyLog
*
* @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
* @version $Revision$
*/
class LogTest extends GroovyTestCase {
void testUseLog() {
def file = "something.txt"
def log = GroovyLog.newInstance(getClass())
log.starting("Hey I'm starting up...")
log.openFile("Am about to open file ${file}")
// ...
log.closeFile("Have closed the file ${file}")
log.stopping("..Finished")
}
}