nesstar.util
Class TestHandler
java.lang.Object
java.util.logging.Handler
nesstar.util.TestHandler
public class TestHandler
- extends Handler
- Author:
- titto
An implementation of the
Handler used for testing purposes.
Logs are stored by the handler and can be retrieved using getLogs() to be compared with the expected behaviour.
Check the test suite for examples of use.
| Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
TestHandler
public TestHandler(String className,
Level level)
publish
public void publish(LogRecord rec)
- Specified by:
publish in class Handler
flush
public void flush()
- Specified by:
flush in class Handler
close
public void close()
- Specified by:
close in class Handler
getLogs
public String[] getLogs()
getLogsToString
public String getLogsToString()
Copyright©2003 NSD - All Rights Reserved