Public Member Functions | |
void | testSetMode () throws Exception |
void | testOperatorModeFiltering () throws Exception |
void | testNoAudienceModeFiltering () throws Exception |
Override void | xmlEntryReceived (String xmlLogString) |
Override void | logEntryReceived (ILogEntry logEntry) |
Static Public Attributes | |
final String | logHeaderStr = " TimeStamp=\"" |
final String | logBodyStr = "\" Routine=\"CacheTest::testGet\" Host=\"this\" Process=\"test\" Thread=\"main\" Context=\"\" Audience=\"" |
final String | logEndOfBodyStr = "\"><![CDATA[" |
final String | logFooterStr = "]]></" |
Protected Member Functions | |
Override void | setUp () throws Exception |
Override void | tearDown () throws Exception |
Private Member Functions | |
boolean | waitForLogs () |
Private Attributes | |
final int | TIMEOUT = 60 |
ACSLogRetrieval | logRetieval = null |
ACSListenersDispatcher | dispatcher = null |
int | numOfReceivedLogs |
int | numOfReceivedXMLLogs |
EngineAudienceHelper | audience |
ACSLogretrieval
. The mode is defined in log_audience
ILD module.
The test is done by checking what logs ACSLogRetrieval
discards i.e. the LCEngine
is not used here as it is stressed by other tests. This class is the listener for the log and the XMLs that ACSLogRetrieval
sends to the listeners throw the ACSListenersDispatcher
.
|
The counter
|
|
|
|
|
|
Test the case of NO_AUDIENCE i.e. no filtering
|
|
Test the filtering for OPERATOR. The logs that should not be filtered are those that:
The test is done in 2 times: 1. a collection of logs with no audience is tested 2. a collection of logs with different values for audience is tested
|
|
Test the setting of the mode |
|
Wait until the logRetrieval publishes all the logs
|
|
The counter
|
|
|
|
/ The dispatcher used by |
|
|
|
|
|
|
|
|
|
The object whose filtering capabilities we want to test |
|
|
|
|
|
The timeout (secs) to wait before giving up waiting for logs |