Public Member Functions | |
Override void | bytesRead (long bytes) |
Override void | bytesWritten (long bytes) |
void | testSaveLoad () throws Exception |
void | testSaveLoadCompressed () throws Exception |
Override void | errorReceived (String xml) |
Override void | logEntryReceived (ILogEntry logEntry) |
Override void | logsRead (int numOfLogs) |
Override void | logsWritten (int numOfLogs) |
void | testLoadingSpecialLogs () throws Exception |
void | testAppend () throws Exception |
void | testSaveLoadIterator () throws Exception |
void | testSaveLoadFields () throws Exception |
Protected Member Functions | |
Override void | setUp () throws Exception |
Override void | tearDown () throws Exception |
Private Attributes | |
final String | log1 |
final String | log2 |
String[] | specialLogs = { log1, log2 } |
volatile long | bytesRead |
volatile long | bytesWritten |
Collection< ILogEntry > | logs |
Vector< ILogEntry > | logsRead |
int | numOfLogsRead |
int | numOfLogsWritten |
String | folder |
String | fileName |
String | gzipFileName |
Static Private Attributes | |
final int | NUMBER_OF_LOGS = 1500 |
final String | USER_DIR = "user.dir" |
As a general rule, each test of this class
CacheUtils
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test the append switch while saving logs by saving the same collection twice in the same file but with the append switch set to
|
|
Load a set of special logs that could be interesting.
Initially this method opens an XML file and writes into it the special logs without using
|
|
Load and save a collection of logs in uncompressed files The save is performed by passing the name of the file
|
|
Load and save a collection of logs in uncompressed files The save is performed by passing the name of the file
|
|
Save and Load the special logs then check their fields. This test is performed comparing the fields of the special logs one by one instead of comparing the XMLs. The test does the following steps:
The test implicitly checks the conversion between XML and ILogEntry too. |
|
Check the load and save of logs by passing an
|
|
|
|
|
|
The name of the file used for testing |
|
The directory where the logs are read and written.
It comes form the |
|
The name of the file used for testing compressed load and save |
|
Initial value:
|
|
Initial value:
|
|
The logs to read and write |
|
The logs read form a file
This collection is filled by |
|
The number of logs in |
|
The number of logs read since the beginning of a load |
|
The number of logs read since the beginning of a load |
|
|
|
|