com.hammingweight.hammock.mocks.microedition.io
Class MockSecureConnection

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.io.MockSecureConnection
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.io.Connection, javax.microedition.io.InputConnection, javax.microedition.io.OutputConnection, javax.microedition.io.SecureConnection, javax.microedition.io.SocketConnection, javax.microedition.io.StreamConnection

public class MockSecureConnection
extends AMockObject
implements javax.microedition.io.SecureConnection


Field Summary
static MockMethod MTHD_CLOSE
           
static MockMethod MTHD_GET_ADDRESS
           
static MockMethod MTHD_GET_LOCAL_ADDRESS
           
static MockMethod MTHD_GET_LOCAL_PORT
           
static MockMethod MTHD_GET_PORT
           
static MockMethod MTHD_GET_SECURITY_INFO
           
static MockMethod MTHD_GET_SOCKET_OPTION_$_BYTE
           
static MockMethod MTHD_OPEN_DATA_INPUT_STREAM
           
static MockMethod MTHD_OPEN_DATA_OUTPUT_STREAM
           
static MockMethod MTHD_OPEN_INPUT_STREAM
           
static MockMethod MTHD_OPEN_OUTPUT_STREAM
           
static MockMethod MTHD_SET_SOCKET_OPTION_$_BYTE_INT
           
 
Fields inherited from interface javax.microedition.io.SocketConnection
DELAY, KEEPALIVE, LINGER, RCVBUF, SNDBUF
 
Fields inherited from interface com.hammingweight.hammock.IHammockExceptionErrors
ARGUMENT_MATCHER_ALREADY_SET, CANT_SET_VOID_RETURN_VALUE, CLASS_IS_NOT_THROWABLE, DOES_NOT_SUBCLASS_MOCK_OBJECT, HANDLER_NOT_SET, INCORRECT_MOCK_OBJECT, INCORRECT_RETURN_CLASS, INCORRECT_THROWABLE_CLASS, METHOD_CANNOT_BE_EVALUATED, METHOD_INVOKED_OUT_OF_SEQUENCE, METHOD_INVOKED_TOO_MANY_TIMES, METHOD_INVOKED_UNEXPECTED_NUMBER_OF_TIMES, NO_RETURN_VALUE, NO_RETURN_VALUE_SET, NUM_INVOCATIONS_ALREADY_SET, RETURN_VALUE_ALREADY_SET, WRONG_ARGUMENT_CLASS, WRONG_NUMBER_OF_ARGS
 
Constructor Summary
MockSecureConnection()
           
MockSecureConnection(IInvocationHandler handler)
           
 
Method Summary
 void close()
           
 java.lang.String getAddress()
           
 java.lang.String getLocalAddress()
           
 int getLocalPort()
           
 int getPort()
           
 javax.microedition.io.SecurityInfo getSecurityInfo()
           
 int getSocketOption(byte arg0)
           
 java.io.DataInputStream openDataInputStream()
           
 java.io.DataOutputStream openDataOutputStream()
           
 java.io.InputStream openInputStream()
           
 java.io.OutputStream openOutputStream()
           
 void setSocketOption(byte arg0, int arg1)
           
 
Methods inherited from class com.hammingweight.hammock.AMockObject
assertReturnNotNull, getInvocationHandler, setInvocationHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_CLOSE

public static final MockMethod MTHD_CLOSE

MTHD_GET_ADDRESS

public static final MockMethod MTHD_GET_ADDRESS

MTHD_GET_LOCAL_ADDRESS

public static final MockMethod MTHD_GET_LOCAL_ADDRESS

MTHD_GET_LOCAL_PORT

public static final MockMethod MTHD_GET_LOCAL_PORT

MTHD_GET_PORT

public static final MockMethod MTHD_GET_PORT

MTHD_GET_SECURITY_INFO

public static final MockMethod MTHD_GET_SECURITY_INFO

MTHD_GET_SOCKET_OPTION_$_BYTE

public static final MockMethod MTHD_GET_SOCKET_OPTION_$_BYTE

MTHD_OPEN_DATA_INPUT_STREAM

public static final MockMethod MTHD_OPEN_DATA_INPUT_STREAM

MTHD_OPEN_DATA_OUTPUT_STREAM

public static final MockMethod MTHD_OPEN_DATA_OUTPUT_STREAM

MTHD_OPEN_INPUT_STREAM

public static final MockMethod MTHD_OPEN_INPUT_STREAM

MTHD_OPEN_OUTPUT_STREAM

public static final MockMethod MTHD_OPEN_OUTPUT_STREAM

MTHD_SET_SOCKET_OPTION_$_BYTE_INT

public static final MockMethod MTHD_SET_SOCKET_OPTION_$_BYTE_INT
Constructor Detail

MockSecureConnection

public MockSecureConnection()

MockSecureConnection

public MockSecureConnection(IInvocationHandler handler)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface javax.microedition.io.Connection
Throws:
java.io.IOException

getAddress

public java.lang.String getAddress()
                            throws java.io.IOException
Specified by:
getAddress in interface javax.microedition.io.SocketConnection
Throws:
java.io.IOException

getLocalAddress

public java.lang.String getLocalAddress()
                                 throws java.io.IOException
Specified by:
getLocalAddress in interface javax.microedition.io.SocketConnection
Throws:
java.io.IOException

getLocalPort

public int getLocalPort()
                 throws java.io.IOException
Specified by:
getLocalPort in interface javax.microedition.io.SocketConnection
Throws:
java.io.IOException

getPort

public int getPort()
            throws java.io.IOException
Specified by:
getPort in interface javax.microedition.io.SocketConnection
Throws:
java.io.IOException

getSecurityInfo

public javax.microedition.io.SecurityInfo getSecurityInfo()
                                                   throws java.io.IOException
Specified by:
getSecurityInfo in interface javax.microedition.io.SecureConnection
Throws:
java.io.IOException

getSocketOption

public int getSocketOption(byte arg0)
                    throws java.io.IOException
Specified by:
getSocketOption in interface javax.microedition.io.SocketConnection
Throws:
java.io.IOException

openDataInputStream

public java.io.DataInputStream openDataInputStream()
                                            throws java.io.IOException
Specified by:
openDataInputStream in interface javax.microedition.io.InputConnection
Throws:
java.io.IOException

openDataOutputStream

public java.io.DataOutputStream openDataOutputStream()
                                              throws java.io.IOException
Specified by:
openDataOutputStream in interface javax.microedition.io.OutputConnection
Throws:
java.io.IOException

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Specified by:
openInputStream in interface javax.microedition.io.InputConnection
Throws:
java.io.IOException

openOutputStream

public java.io.OutputStream openOutputStream()
                                      throws java.io.IOException
Specified by:
openOutputStream in interface javax.microedition.io.OutputConnection
Throws:
java.io.IOException

setSocketOption

public void setSocketOption(byte arg0,
                            int arg1)
                     throws java.io.IOException
Specified by:
setSocketOption in interface javax.microedition.io.SocketConnection
Throws:
java.io.IOException