com.hammingweight.hammock.mocks.obex
Class MockClientSession

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.obex.MockClientSession
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.io.Connection, javax.obex.ClientSession

public class MockClientSession
extends AMockObject
implements javax.obex.ClientSession


Field Summary
static MockMethod MTHD_CLOSE
           
static MockMethod MTHD_CONNECT_$_HEADERSET
           
static MockMethod MTHD_CREATE_HEADER_SET
           
static MockMethod MTHD_DELETE_$_HEADERSET
           
static MockMethod MTHD_DISCONNECT_$_HEADERSET
           
static MockMethod MTHD_GET_$_HEADERSET
           
static MockMethod MTHD_GET_CONNECTION_ID
           
static MockMethod MTHD_PUT_$_HEADERSET
           
static MockMethod MTHD_SET_AUTHENTICATOR_$_AUTHENTICATOR
           
static MockMethod MTHD_SET_CONNECTION_ID_$_LONG
           
static MockMethod MTHD_SET_PATH_$_HEADERSET_BOOLEAN_BOOLEAN
           
 
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
MockClientSession()
           
MockClientSession(IInvocationHandler handler)
           
 
Method Summary
 void close()
           
 javax.obex.HeaderSet connect(javax.obex.HeaderSet arg0)
           
 javax.obex.HeaderSet createHeaderSet()
           
 javax.obex.HeaderSet delete(javax.obex.HeaderSet arg0)
           
 javax.obex.HeaderSet disconnect(javax.obex.HeaderSet arg0)
           
 javax.obex.Operation get(javax.obex.HeaderSet arg0)
           
 long getConnectionID()
           
 javax.obex.Operation put(javax.obex.HeaderSet arg0)
           
 void setAuthenticator(javax.obex.Authenticator arg0)
           
 void setConnectionID(long arg0)
           
 javax.obex.HeaderSet setPath(javax.obex.HeaderSet arg0, boolean arg1, boolean arg2)
           
 
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_CONNECT_$_HEADERSET

public static final MockMethod MTHD_CONNECT_$_HEADERSET

MTHD_CREATE_HEADER_SET

public static final MockMethod MTHD_CREATE_HEADER_SET

MTHD_DELETE_$_HEADERSET

public static final MockMethod MTHD_DELETE_$_HEADERSET

MTHD_DISCONNECT_$_HEADERSET

public static final MockMethod MTHD_DISCONNECT_$_HEADERSET

MTHD_GET_$_HEADERSET

public static final MockMethod MTHD_GET_$_HEADERSET

MTHD_GET_CONNECTION_ID

public static final MockMethod MTHD_GET_CONNECTION_ID

MTHD_PUT_$_HEADERSET

public static final MockMethod MTHD_PUT_$_HEADERSET

MTHD_SET_AUTHENTICATOR_$_AUTHENTICATOR

public static final MockMethod MTHD_SET_AUTHENTICATOR_$_AUTHENTICATOR

MTHD_SET_CONNECTION_ID_$_LONG

public static final MockMethod MTHD_SET_CONNECTION_ID_$_LONG

MTHD_SET_PATH_$_HEADERSET_BOOLEAN_BOOLEAN

public static final MockMethod MTHD_SET_PATH_$_HEADERSET_BOOLEAN_BOOLEAN
Constructor Detail

MockClientSession

public MockClientSession()

MockClientSession

public MockClientSession(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

connect

public javax.obex.HeaderSet connect(javax.obex.HeaderSet arg0)
                             throws java.io.IOException
Specified by:
connect in interface javax.obex.ClientSession
Throws:
java.io.IOException

createHeaderSet

public javax.obex.HeaderSet createHeaderSet()
Specified by:
createHeaderSet in interface javax.obex.ClientSession

delete

public javax.obex.HeaderSet delete(javax.obex.HeaderSet arg0)
                            throws java.io.IOException
Specified by:
delete in interface javax.obex.ClientSession
Throws:
java.io.IOException

disconnect

public javax.obex.HeaderSet disconnect(javax.obex.HeaderSet arg0)
                                throws java.io.IOException
Specified by:
disconnect in interface javax.obex.ClientSession
Throws:
java.io.IOException

get

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

getConnectionID

public long getConnectionID()
Specified by:
getConnectionID in interface javax.obex.ClientSession

put

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

setAuthenticator

public void setAuthenticator(javax.obex.Authenticator arg0)
Specified by:
setAuthenticator in interface javax.obex.ClientSession

setConnectionID

public void setConnectionID(long arg0)
Specified by:
setConnectionID in interface javax.obex.ClientSession

setPath

public javax.obex.HeaderSet setPath(javax.obex.HeaderSet arg0,
                                    boolean arg1,
                                    boolean arg2)
                             throws java.io.IOException
Specified by:
setPath in interface javax.obex.ClientSession
Throws:
java.io.IOException