com.hammingweight.hammock.mocks.ksoap2.transport
Class MockServiceConnection

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.ksoap2.transport.MockServiceConnection
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, org.ksoap2.transport.ServiceConnection

public class MockServiceConnection
extends AMockObject
implements org.ksoap2.transport.ServiceConnection


Field Summary
static MockMethod MTHD_CONNECT
           
static MockMethod MTHD_DISCONNECT
           
static MockMethod MTHD_GET_ERROR_STREAM
           
static MockMethod MTHD_OPEN_INPUT_STREAM
           
static MockMethod MTHD_OPEN_OUTPUT_STREAM
           
static MockMethod MTHD_SET_REQUEST_METHOD_$_STRING
           
static MockMethod MTHD_SET_REQUEST_PROPERTY_$_STRING_STRING
           
 
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
MockServiceConnection()
           
MockServiceConnection(IInvocationHandler handler)
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 java.io.InputStream getErrorStream()
           
 java.io.InputStream openInputStream()
           
 java.io.OutputStream openOutputStream()
           
 void setRequestMethod(java.lang.String arg0)
           
 void setRequestProperty(java.lang.String arg0, java.lang.String 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_CONNECT

public static final MockMethod MTHD_CONNECT

MTHD_DISCONNECT

public static final MockMethod MTHD_DISCONNECT

MTHD_GET_ERROR_STREAM

public static final MockMethod MTHD_GET_ERROR_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_REQUEST_METHOD_$_STRING

public static final MockMethod MTHD_SET_REQUEST_METHOD_$_STRING

MTHD_SET_REQUEST_PROPERTY_$_STRING_STRING

public static final MockMethod MTHD_SET_REQUEST_PROPERTY_$_STRING_STRING
Constructor Detail

MockServiceConnection

public MockServiceConnection()

MockServiceConnection

public MockServiceConnection(IInvocationHandler handler)
Method Detail

connect

public void connect()
             throws java.io.IOException
Specified by:
connect in interface org.ksoap2.transport.ServiceConnection
Throws:
java.io.IOException

disconnect

public void disconnect()
                throws java.io.IOException
Specified by:
disconnect in interface org.ksoap2.transport.ServiceConnection
Throws:
java.io.IOException

getErrorStream

public java.io.InputStream getErrorStream()
Specified by:
getErrorStream in interface org.ksoap2.transport.ServiceConnection

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Specified by:
openInputStream in interface org.ksoap2.transport.ServiceConnection
Throws:
java.io.IOException

openOutputStream

public java.io.OutputStream openOutputStream()
                                      throws java.io.IOException
Specified by:
openOutputStream in interface org.ksoap2.transport.ServiceConnection
Throws:
java.io.IOException

setRequestMethod

public void setRequestMethod(java.lang.String arg0)
                      throws java.io.IOException
Specified by:
setRequestMethod in interface org.ksoap2.transport.ServiceConnection
Throws:
java.io.IOException

setRequestProperty

public void setRequestProperty(java.lang.String arg0,
                               java.lang.String arg1)
                        throws java.io.IOException
Specified by:
setRequestProperty in interface org.ksoap2.transport.ServiceConnection
Throws:
java.io.IOException