com.hp.hpl.jena.util
Class TestLogger

java.lang.Object
  extended bycom.hp.hpl.jena.util.TestLogger

public class TestLogger
extends java.lang.Object

This class is a utility for use with the log4j library, during testing. It suppresses a specific Logger, and then reports whether any messages were generated by that Logger.

Author:
jjc

Constructor Summary
TestLogger(java.lang.Class c)
          Suppresses the logger identified by c
 
Method Summary
 boolean end()
          Ends suppression of the logger.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestLogger

public TestLogger(java.lang.Class c)
Suppresses the logger identified by c

Parameters:
c - The class naming the Logger to suppress.
Method Detail

end

public boolean end()
Ends suppression of the logger.

Returns:
boolean True if there were no errors.
Throws:
java.lang.NullPointerException - If invoked twice.


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.