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

java.lang.Object
  extended by org.ksoap2.transport.Transport
      extended by com.hammingweight.hammock.mocks.ksoap2.transport.MockTransport
All Implemented Interfaces:
IMockObject

public class MockTransport
extends org.ksoap2.transport.Transport
implements IMockObject


Field Summary
static MockMethod MTHD_CALL_$_STRING_SOAPENVELOPE
           
static MockMethod MTHD_CREATE_REQUEST_DATA_$_SOAPENVELOPE
           
static MockMethod MTHD_PARSE_RESPONSE_$_SOAPENVELOPE_INPUTSTREAM
           
static MockMethod MTHD_RESET
           
static MockMethod MTHD_SET_URL_$_STRING
           
static MockMethod MTHD_SET_XML_VERSION_TAG_$_STRING
           
 
Fields inherited from class org.ksoap2.transport.Transport
debug, requestDump, responseDump, url
 
Constructor Summary
MockTransport()
           
MockTransport(IInvocationHandler handler)
           
MockTransport(java.lang.String arg0)
           
MockTransport(java.lang.String arg0, IInvocationHandler handler)
           
 
Method Summary
 void call(java.lang.String arg0, org.ksoap2.SoapEnvelope arg1)
           
 byte[] createRequestData(org.ksoap2.SoapEnvelope arg0)
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 void parseResponse(org.ksoap2.SoapEnvelope arg0, java.io.InputStream arg1)
           
 void reset()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setUrl(java.lang.String arg0)
           
 void setXmlVersionTag(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_CALL_$_STRING_SOAPENVELOPE

public static final MockMethod MTHD_CALL_$_STRING_SOAPENVELOPE

MTHD_CREATE_REQUEST_DATA_$_SOAPENVELOPE

public static final MockMethod MTHD_CREATE_REQUEST_DATA_$_SOAPENVELOPE

MTHD_PARSE_RESPONSE_$_SOAPENVELOPE_INPUTSTREAM

public static final MockMethod MTHD_PARSE_RESPONSE_$_SOAPENVELOPE_INPUTSTREAM

MTHD_RESET

public static final MockMethod MTHD_RESET

MTHD_SET_URL_$_STRING

public static final MockMethod MTHD_SET_URL_$_STRING

MTHD_SET_XML_VERSION_TAG_$_STRING

public static final MockMethod MTHD_SET_XML_VERSION_TAG_$_STRING
Constructor Detail

MockTransport

public MockTransport(java.lang.String arg0)

MockTransport

public MockTransport(java.lang.String arg0,
                     IInvocationHandler handler)

MockTransport

public MockTransport()

MockTransport

public MockTransport(IInvocationHandler handler)
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

call

public void call(java.lang.String arg0,
                 org.ksoap2.SoapEnvelope arg1)
          throws java.io.IOException,
                 org.xmlpull.v1.XmlPullParserException
Specified by:
call in class org.ksoap2.transport.Transport
Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

createRequestData

public byte[] createRequestData(org.ksoap2.SoapEnvelope arg0)
                         throws java.io.IOException
Overrides:
createRequestData in class org.ksoap2.transport.Transport
Throws:
java.io.IOException

parseResponse

public void parseResponse(org.ksoap2.SoapEnvelope arg0,
                          java.io.InputStream arg1)
                   throws org.xmlpull.v1.XmlPullParserException,
                          java.io.IOException
Overrides:
parseResponse in class org.ksoap2.transport.Transport
Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException

reset

public void reset()
Overrides:
reset in class org.ksoap2.transport.Transport

setUrl

public void setUrl(java.lang.String arg0)
Overrides:
setUrl in class org.ksoap2.transport.Transport

setXmlVersionTag

public void setXmlVersionTag(java.lang.String arg0)
Overrides:
setXmlVersionTag in class org.ksoap2.transport.Transport