public class RandomIoTest
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 |
randomRead
Stores the number of bytes read.
|
private static long |
randomWrite
Stores the number of bytes written.
|
| Modifier | Constructor and Description |
|---|---|
private |
RandomIoTest()
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.
|
static void |
main(java.lang.String[] args)
Starts the test.
|
private static void |
setupFiles()
Sets up the required files.
|
private static long randomRead
private static long randomWrite
private static java.io.File inFile
private static java.io.File outFile
private RandomIoTest()
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.