com.hammingweight.hammock.mocks.obex
Class MockHeaderSet

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.obex.MockHeaderSet
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.obex.HeaderSet

public class MockHeaderSet
extends AMockObject
implements javax.obex.HeaderSet


Field Summary
static MockMethod MTHD_CREATE_AUTHENTICATION_CHALLENGE_$_STRING_BOOLEAN_BOOLEAN
           
static MockMethod MTHD_GET_HEADER_$_INT
           
static MockMethod MTHD_GET_HEADER_LIST
           
static MockMethod MTHD_GET_RESPONSE_CODE
           
static MockMethod MTHD_SET_HEADER_$_INT_OBJECT
           
 
Fields inherited from interface javax.obex.HeaderSet
APPLICATION_PARAMETER, COUNT, DESCRIPTION, HTTP, LENGTH, NAME, OBJECT_CLASS, TARGET, TIME_4_BYTE, TIME_ISO_8601, TYPE, WHO
 
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
MockHeaderSet()
           
MockHeaderSet(IInvocationHandler handler)
           
 
Method Summary
 void createAuthenticationChallenge(java.lang.String arg0, boolean arg1, boolean arg2)
           
 java.lang.Object getHeader(int arg0)
           
 int[] getHeaderList()
           
 int getResponseCode()
           
 void setHeader(int arg0, java.lang.Object 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_CREATE_AUTHENTICATION_CHALLENGE_$_STRING_BOOLEAN_BOOLEAN

public static final MockMethod MTHD_CREATE_AUTHENTICATION_CHALLENGE_$_STRING_BOOLEAN_BOOLEAN

MTHD_GET_HEADER_$_INT

public static final MockMethod MTHD_GET_HEADER_$_INT

MTHD_GET_HEADER_LIST

public static final MockMethod MTHD_GET_HEADER_LIST

MTHD_GET_RESPONSE_CODE

public static final MockMethod MTHD_GET_RESPONSE_CODE

MTHD_SET_HEADER_$_INT_OBJECT

public static final MockMethod MTHD_SET_HEADER_$_INT_OBJECT
Constructor Detail

MockHeaderSet

public MockHeaderSet()

MockHeaderSet

public MockHeaderSet(IInvocationHandler handler)
Method Detail

createAuthenticationChallenge

public void createAuthenticationChallenge(java.lang.String arg0,
                                          boolean arg1,
                                          boolean arg2)
Specified by:
createAuthenticationChallenge in interface javax.obex.HeaderSet

getHeader

public java.lang.Object getHeader(int arg0)
                           throws java.io.IOException
Specified by:
getHeader in interface javax.obex.HeaderSet
Throws:
java.io.IOException

getHeaderList

public int[] getHeaderList()
                    throws java.io.IOException
Specified by:
getHeaderList in interface javax.obex.HeaderSet
Throws:
java.io.IOException

getResponseCode

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

setHeader

public void setHeader(int arg0,
                      java.lang.Object arg1)
Specified by:
setHeader in interface javax.obex.HeaderSet