public class FileIoTest
extends java.lang.Object
Monitoring must be enabled via the agent JVM parameter!
| Modifier and Type | Field and Description |
|---|---|
private static java.io.File |
inFile
Created at the beginning.
|
private static java.io.File |
outFile
Written during test.
|
private static long |
totalRead
Stores the total number of bytes read.
|
private static long |
totalWrite
Stores the total number of bytes written.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FileIoTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
asserts()
The automated tests using assert statements.
|
private static void |
execute()
Executes the test, i.e. reads a (source code) file and writes
some output to another file via streams and reader/writer.
|
static void |
main(java.lang.String[] args)
Starts the test.
|
private static void |
setupFiles()
Sets up the required files.
|
private static long totalRead
private static long totalWrite
private static java.io.File inFile
private static java.io.File outFile
protected FileIoTest()
private static void execute()
throws java.io.IOException
java.io.IOException - any kind of I/O problem while reading / writingprivate static void setupFiles()
throws java.io.IOException
java.io.IOException - any kind of I/O problem while reading / writingpublic static void main(java.lang.String[] args)
throws java.io.IOException
args - command line arguments (ignored)java.io.IOException - any kind of I/O problem while reading / writingpublic static void asserts()
EndSystem
annotation.