Public Member Functions | |
LogConfigTest () | |
void | testSubscriberNotification () throws LogConfigException |
void | testDefaultValues () throws Exception |
void | testGetLogConfigXml () throws Exception |
void | testCDBValues () throws Exception |
void | testInvalidCDB () throws Exception |
void | testDynamicChanges () throws Exception |
void | testLockingRemoteLevel () throws Exception |
Protected Member Functions | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
Private Member Functions | |
String | createComponentsCdbXml (String compName, String type, String code, String container, boolean configureLogger, int minLogLevel, int minLogLevelLocal) |
Private Attributes | |
LogConfig | logConfig |
Logger | logger |
|
|
|
|
|
|
|
|
|
Tests logging config from the CDB, for both cases (a) that env vars beat CDB settings e.g. for normal CDB reading, (b) that CDB beats env vars e.g. during a refresh from CDB triggered via LoggingConfigurable API. |
|
Tests the config values returned from LogConfig with at most env vars for default levels being set (can be enforced by TAT!), but without CDB or other information being considered. Also asserts that none of these calls return the original object, but instead a copy of it. This indirectly exercises the equals method. |
|
Tests runtime changes as they could happen via the LoggingConfigurable} API. |
|
Test for the XPath based LogConfig#getLogConfigXml(String, String) which extracts log info from the XML that we get from the CDB. |
|
Checks the response to bad CDB data and CDB access problems. |
|
|
|
Tests adding and removing of subscribers, and whether LogConfig#initialize(boolean) triggers correctly the notification of these subscribers. |
|
|
|
|