Setup for the test. This creates the ComponentLoggerMBean instance
and other objects needed for the tests.
throws: Exception - when set up fails for any reason.
Test the addLoggerInfo method.
throws: Exception - if an unexpected error occurs.
testAddLoggerInfoDefault
public void testAddLoggerInfoDefault() throws Exception(Code)
Test the addLoggerInfo method with a default display name.
throws: Exception - if an unexpected error occurs.
testAddLoggerInfoWithPrefix
public void testAddLoggerInfoWithPrefix() throws Exception(Code)
Test the addLoggerInfo method with a prefix that doesn't match the
component name.
throws: Exception - if an unexpected error occurs.
testGetDisplayNameBadNullLoggerName
public void testGetDisplayNameBadNullLoggerName() throws Exception(Code)
Test the get method for the display name for a logger with a null
argument.
throws: Exception - if an unexpected error occurs.
testGetDisplayNameDefault
public void testGetDisplayNameDefault() throws Exception(Code)
Test the get method for the display name for a logger that was not added
dynamically and was not pre-defined.
throws: Exception - if an unexpected error occurs.
Test the isLoggerRegistered method.
throws: Exception - if an unexpected error occurs.
testLoadSaveLoggerSettings
public void testLoadSaveLoggerSettings() throws Exception(Code)
Test the load/save methods for component logger levels. This test
uses the get/set methods for verification. It also uses the
setInstallRoot() method to set up the directory used by the load/save
methods.
throws: Exception - if an unexpected error occurs.
Tests the setInfo method.
throws: Exception - if an unexpected error occurs.
testSetLevelBadNotRegistered
public void testSetLevelBadNotRegistered() throws Exception(Code)
Test the set method for the logger level with an unregistered logger.
This test covers all of the set methods because they all delegate
to this method.
throws: Exception - if an unexpected error occurs.
testSetLevelBadNullLoggerName
public void testSetLevelBadNullLoggerName() throws Exception(Code)
Test the set method for the logger level with a null argument. This
test covers all of the set methods because they all delegate to
this method.
throws: Exception - if an unexpected error occurs.