com.mockobjects.net
public class MockSocket extends MockObject implements Socket
Constructor and Description |
---|
MockSocket() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.net.InetAddress |
getInetAddress() |
java.io.InputStream |
getInputStream() |
boolean |
getKeepAlive() |
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
java.io.OutputStream |
getOutputStream() |
int |
getPort() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getSoTimeout() |
boolean |
getTcpNoDelay() |
void |
setExpectedCloseCalls(int aCount) |
void |
setExpectedSoTimeout(int aSoTimeout) |
void |
setKeepAlive(boolean on) |
void |
setReceiveBufferSize(int size) |
void |
setSendBufferSize(int size) |
void |
setSoLinger(boolean on,
int linger) |
void |
setSoTimeout(int aSoTimeout) |
void |
setTcpNoDelay(boolean on) |
void |
setupGetInputStream(java.io.InputStream anInputStream) |
void |
setupGetOutputStream(java.io.OutputStream anOutputStream) |
void |
shutdownInput() |
void |
shutdownOutput() |
notImplemented, notYetImplemented, verify
public java.net.InetAddress getInetAddress()
getInetAddress
in interface Socket
public java.net.InetAddress getLocalAddress()
getLocalAddress
in interface Socket
public int getLocalPort()
getLocalPort
in interface Socket
public void setupGetInputStream(java.io.InputStream anInputStream)
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface Socket
java.io.IOException
public void setupGetOutputStream(java.io.OutputStream anOutputStream)
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface Socket
java.io.IOException
public void setTcpNoDelay(boolean on) throws java.net.SocketException
setTcpNoDelay
in interface Socket
java.net.SocketException
public boolean getTcpNoDelay() throws java.net.SocketException
getTcpNoDelay
in interface Socket
java.net.SocketException
public void setSoLinger(boolean on, int linger) throws java.net.SocketException
setSoLinger
in interface Socket
java.net.SocketException
public int getSoLinger() throws java.net.SocketException
getSoLinger
in interface Socket
java.net.SocketException
public void setExpectedSoTimeout(int aSoTimeout)
public void setSoTimeout(int aSoTimeout) throws java.net.SocketException
setSoTimeout
in interface Socket
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
getSoTimeout
in interface Socket
java.net.SocketException
public void setSendBufferSize(int size) throws java.net.SocketException
setSendBufferSize
in interface Socket
java.net.SocketException
public int getSendBufferSize() throws java.net.SocketException
getSendBufferSize
in interface Socket
java.net.SocketException
public void setReceiveBufferSize(int size) throws java.net.SocketException
setReceiveBufferSize
in interface Socket
java.net.SocketException
public int getReceiveBufferSize() throws java.net.SocketException
getReceiveBufferSize
in interface Socket
java.net.SocketException
public void setKeepAlive(boolean on) throws java.net.SocketException
setKeepAlive
in interface Socket
java.net.SocketException
public boolean getKeepAlive() throws java.net.SocketException
getKeepAlive
in interface Socket
java.net.SocketException
public void setExpectedCloseCalls(int aCount)
public void close() throws java.io.IOException
public void shutdownInput() throws java.io.IOException
shutdownInput
in interface Socket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
in interface Socket
java.io.IOException
Copyright © 2002 Mock Objects. All Rights Reserved.