com.hammingweight.hammock.mocks.obex
Class MockOperation

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.obex.MockOperation
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.io.Connection, javax.microedition.io.ContentConnection, javax.microedition.io.InputConnection, javax.microedition.io.OutputConnection, javax.microedition.io.StreamConnection, javax.obex.Operation

public class MockOperation
extends AMockObject
implements javax.obex.Operation


Field Summary
static MockMethod MTHD_ABORT
           
static MockMethod MTHD_CLOSE
           
static MockMethod MTHD_GET_ENCODING
           
static MockMethod MTHD_GET_LENGTH
           
static MockMethod MTHD_GET_RECEIVED_HEADERS
           
static MockMethod MTHD_GET_RESPONSE_CODE
           
static MockMethod MTHD_GET_TYPE
           
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_SEND_HEADERS_$_HEADERSET
           
 
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
MockOperation()
           
MockOperation(IInvocationHandler handler)
           
 
Method Summary
 void abort()
           
 void close()
           
 java.lang.String getEncoding()
           
 long getLength()
           
 javax.obex.HeaderSet getReceivedHeaders()
           
 int getResponseCode()
           
 java.lang.String getType()
           
 java.io.DataInputStream openDataInputStream()
           
 java.io.DataOutputStream openDataOutputStream()
           
 java.io.InputStream openInputStream()
           
 java.io.OutputStream openOutputStream()
           
 void sendHeaders(javax.obex.HeaderSet arg0)
           
 
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_ABORT

public static final MockMethod MTHD_ABORT

MTHD_CLOSE

public static final MockMethod MTHD_CLOSE

MTHD_GET_ENCODING

public static final MockMethod MTHD_GET_ENCODING

MTHD_GET_LENGTH

public static final MockMethod MTHD_GET_LENGTH

MTHD_GET_RECEIVED_HEADERS

public static final MockMethod MTHD_GET_RECEIVED_HEADERS

MTHD_GET_RESPONSE_CODE

public static final MockMethod MTHD_GET_RESPONSE_CODE

MTHD_GET_TYPE

public static final MockMethod MTHD_GET_TYPE

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_SEND_HEADERS_$_HEADERSET

public static final MockMethod MTHD_SEND_HEADERS_$_HEADERSET
Constructor Detail

MockOperation

public MockOperation()

MockOperation

public MockOperation(IInvocationHandler handler)
Method Detail

abort

public void abort()
           throws java.io.IOException
Specified by:
abort in interface javax.obex.Operation
Throws:
java.io.IOException

close

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

getEncoding

public java.lang.String getEncoding()
Specified by:
getEncoding in interface javax.microedition.io.ContentConnection

getLength

public long getLength()
Specified by:
getLength in interface javax.microedition.io.ContentConnection

getReceivedHeaders

public javax.obex.HeaderSet getReceivedHeaders()
                                        throws java.io.IOException
Specified by:
getReceivedHeaders in interface javax.obex.Operation
Throws:
java.io.IOException

getResponseCode

public int getResponseCode()
                    throws java.io.IOException
Specified by:
getResponseCode in interface javax.obex.Operation
Throws:
java.io.IOException

getType

public java.lang.String getType()
Specified by:
getType in interface javax.microedition.io.ContentConnection

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

sendHeaders

public void sendHeaders(javax.obex.HeaderSet arg0)
                 throws java.io.IOException
Specified by:
sendHeaders in interface javax.obex.Operation
Throws:
java.io.IOException