public class NetIoTest extends AbstractNetIoTest
Monitoring must be enabled via the agent JVM parameter!
Note that this class just reuses AbstractNetIoTest so that the inner
classes defined there are not annotated and not accounted to the defined
recording id but to the program.
This class may cause fileIO as it reads internal Java security policies.
AbstractNetIoTest.ServerMainThread, AbstractNetIoTest.ServerWorkThread| Modifier | Constructor and Description |
|---|---|
protected |
NetIoTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
asserts()
The automated tests using assert statements.
|
protected void |
executeClient()
Starts the server part, executes the client part and prints out the
results.
|
static void |
main(java.lang.String[] args)
Starts the test.
|
createServerThread, executeServer, getAllRead, getAllWrite, getClientRead, getClientWrite, getServerRead, getServerWrite, mainprotected NetIoTest()
protected void executeClient()
throws java.io.IOException
executeClient in class AbstractNetIoTestjava.io.IOException - any kind of network I/O problem in the clientpublic static void main(java.lang.String[] args)
throws java.io.IOException
args - command line arguments (ignored)java.io.IOException - any kind of network I/O problem in the clientpublic static void asserts()
EndSystem
annotation.