net.javacrumbs.mocksocket.connection.sequential
Class SequentialMockConnection
java.lang.Object
net.javacrumbs.mocksocket.connection.AbstractMockConnection
net.javacrumbs.mocksocket.connection.sequential.SequentialMockConnection
- All Implemented Interfaces:
- Connection, MockConnection, SequentialMockRecorder
public class SequentialMockConnection
- extends AbstractMockConnection
- implements MockConnection, SequentialMockRecorder
Mock connection. Can simulate multiple requests to the same address.
- Author:
- Lukas Krecan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequentialMockConnection
public SequentialMockConnection(String address)
andReturn
public SequentialMockConnection andReturn(byte[] data)
- Specified by:
andReturn in interface SequentialMockRecorder
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface Connection
- Throws:
IOException
Copyright © 2011. All Rights Reserved.