Socket Example
Example on how to simulate network connection failures
This example consists of a few tests on one system. Here are the files for this example....
TestExample.java
- The tests themselves
SysUnderTest.java
- The system we are testing
OtherSubsystem.java
- The timer we are mocking
TCPSocket.java
- The socket interface we would write
TCPSocketImpl.java
- What the socket implementation would look like