Public Member Functions | |
| ErrorLogFileTest () throws Exception | |
| void | testAppend () throws Exception |
| void | testAppendTimeout () throws Exception |
| void | testCopy () throws Exception |
| void | testClear () throws Exception |
Protected Member Functions | |
| Override void | setUp () throws Exception |
Private Member Functions | |
| boolean | checkFile (String name, int numOfEntries, int firstEntryNum) throws Exception |
Private Attributes | |
| ErrorLogFile | file |
| final int | TIMEOUT = 15 |
| final String | str = "BaseString" |
|
|
Constructor
|
|
||||||||||||||||
|
Check the content of the file with the passed name. The correctness is ensured if the file exists, is readable and it is composed of passed number of entries.
|
|
|
|
|
|
Test the append method |
|
|
Test the append method with a timeout |
|
|
Test the clear method of the
|
|
|
Test the copy method of the
|
|
|
The object to test |
|
|
Each test writes this string plus an integer. In this way it is possible to check the written file. |
|
|
The timeout |
1.3.8