com.hammingweight.hammock.mocks.microedition.content
Class MockContentHandlerServer

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.content.MockContentHandlerServer
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.content.ContentHandler, javax.microedition.content.ContentHandlerServer

public class MockContentHandlerServer
extends AMockObject
implements javax.microedition.content.ContentHandlerServer


Field Summary
static MockMethod MTHD_ACCESS_ALLOWED_COUNT
           
static MockMethod MTHD_CANCEL_GET_REQUEST
           
static MockMethod MTHD_FINISH_$_INVOCATION_INT
           
static MockMethod MTHD_GET_ACCESS_ALLOWED_$_INT
           
static MockMethod MTHD_GET_ACTION_$_INT
           
static MockMethod MTHD_GET_ACTION_COUNT
           
static MockMethod MTHD_GET_ACTION_NAME_MAP
           
static MockMethod MTHD_GET_ACTION_NAME_MAP_$_INT
           
static MockMethod MTHD_GET_ACTION_NAME_MAP_$_STRING
           
static MockMethod MTHD_GET_ACTION_NAME_MAP_COUNT
           
static MockMethod MTHD_GET_APP_NAME
           
static MockMethod MTHD_GET_AUTHORITY
           
static MockMethod MTHD_GET_ID
           
static MockMethod MTHD_GET_REQUEST_$_BOOLEAN
           
static MockMethod MTHD_GET_SUFFIX_$_INT
           
static MockMethod MTHD_GET_SUFFIX_COUNT
           
static MockMethod MTHD_GET_TYPE_$_INT
           
static MockMethod MTHD_GET_TYPE_COUNT
           
static MockMethod MTHD_GET_VERSION
           
static MockMethod MTHD_HAS_ACTION_$_STRING
           
static MockMethod MTHD_HAS_SUFFIX_$_STRING
           
static MockMethod MTHD_HAS_TYPE_$_STRING
           
static MockMethod MTHD_IS_ACCESS_ALLOWED_$_STRING
           
static MockMethod MTHD_SET_LISTENER_$_REQUESTLISTENER
           
 
Fields inherited from interface javax.microedition.content.ContentHandler
ACTION_EDIT, ACTION_EXECUTE, ACTION_INSTALL, ACTION_NEW, ACTION_OPEN, ACTION_PRINT, ACTION_SAVE, ACTION_SELECT, ACTION_SEND, ACTION_STOP, UNIVERSAL_TYPE
 
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
MockContentHandlerServer()
           
MockContentHandlerServer(IInvocationHandler handler)
           
 
Method Summary
 int accessAllowedCount()
           
 void cancelGetRequest()
           
 boolean finish(javax.microedition.content.Invocation arg0, int arg1)
           
 java.lang.String getAccessAllowed(int arg0)
           
 java.lang.String getAction(int arg0)
           
 int getActionCount()
           
 javax.microedition.content.ActionNameMap getActionNameMap()
           
 javax.microedition.content.ActionNameMap getActionNameMap(int arg0)
           
 javax.microedition.content.ActionNameMap getActionNameMap(java.lang.String arg0)
           
 int getActionNameMapCount()
           
 java.lang.String getAppName()
           
 java.lang.String getAuthority()
           
 java.lang.String getID()
           
 javax.microedition.content.Invocation getRequest(boolean arg0)
           
 java.lang.String getSuffix(int arg0)
           
 int getSuffixCount()
           
 java.lang.String getType(int arg0)
           
 int getTypeCount()
           
 java.lang.String getVersion()
           
 boolean hasAction(java.lang.String arg0)
           
 boolean hasSuffix(java.lang.String arg0)
           
 boolean hasType(java.lang.String arg0)
           
 boolean isAccessAllowed(java.lang.String arg0)
           
 void setListener(javax.microedition.content.RequestListener 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_ACCESS_ALLOWED_COUNT

public static final MockMethod MTHD_ACCESS_ALLOWED_COUNT

MTHD_CANCEL_GET_REQUEST

public static final MockMethod MTHD_CANCEL_GET_REQUEST

MTHD_FINISH_$_INVOCATION_INT

public static final MockMethod MTHD_FINISH_$_INVOCATION_INT

MTHD_GET_ACCESS_ALLOWED_$_INT

public static final MockMethod MTHD_GET_ACCESS_ALLOWED_$_INT

MTHD_GET_ACTION_$_INT

public static final MockMethod MTHD_GET_ACTION_$_INT

MTHD_GET_ACTION_COUNT

public static final MockMethod MTHD_GET_ACTION_COUNT

MTHD_GET_ACTION_NAME_MAP

public static final MockMethod MTHD_GET_ACTION_NAME_MAP

MTHD_GET_ACTION_NAME_MAP_$_INT

public static final MockMethod MTHD_GET_ACTION_NAME_MAP_$_INT

MTHD_GET_ACTION_NAME_MAP_$_STRING

public static final MockMethod MTHD_GET_ACTION_NAME_MAP_$_STRING

MTHD_GET_ACTION_NAME_MAP_COUNT

public static final MockMethod MTHD_GET_ACTION_NAME_MAP_COUNT

MTHD_GET_APP_NAME

public static final MockMethod MTHD_GET_APP_NAME

MTHD_GET_AUTHORITY

public static final MockMethod MTHD_GET_AUTHORITY

MTHD_GET_ID

public static final MockMethod MTHD_GET_ID

MTHD_GET_REQUEST_$_BOOLEAN

public static final MockMethod MTHD_GET_REQUEST_$_BOOLEAN

MTHD_GET_SUFFIX_$_INT

public static final MockMethod MTHD_GET_SUFFIX_$_INT

MTHD_GET_SUFFIX_COUNT

public static final MockMethod MTHD_GET_SUFFIX_COUNT

MTHD_GET_TYPE_$_INT

public static final MockMethod MTHD_GET_TYPE_$_INT

MTHD_GET_TYPE_COUNT

public static final MockMethod MTHD_GET_TYPE_COUNT

MTHD_GET_VERSION

public static final MockMethod MTHD_GET_VERSION

MTHD_HAS_ACTION_$_STRING

public static final MockMethod MTHD_HAS_ACTION_$_STRING

MTHD_HAS_SUFFIX_$_STRING

public static final MockMethod MTHD_HAS_SUFFIX_$_STRING

MTHD_HAS_TYPE_$_STRING

public static final MockMethod MTHD_HAS_TYPE_$_STRING

MTHD_IS_ACCESS_ALLOWED_$_STRING

public static final MockMethod MTHD_IS_ACCESS_ALLOWED_$_STRING

MTHD_SET_LISTENER_$_REQUESTLISTENER

public static final MockMethod MTHD_SET_LISTENER_$_REQUESTLISTENER
Constructor Detail

MockContentHandlerServer

public MockContentHandlerServer()

MockContentHandlerServer

public MockContentHandlerServer(IInvocationHandler handler)
Method Detail

accessAllowedCount

public int accessAllowedCount()
Specified by:
accessAllowedCount in interface javax.microedition.content.ContentHandlerServer

cancelGetRequest

public void cancelGetRequest()
Specified by:
cancelGetRequest in interface javax.microedition.content.ContentHandlerServer

finish

public boolean finish(javax.microedition.content.Invocation arg0,
                      int arg1)
Specified by:
finish in interface javax.microedition.content.ContentHandlerServer

getAccessAllowed

public java.lang.String getAccessAllowed(int arg0)
Specified by:
getAccessAllowed in interface javax.microedition.content.ContentHandlerServer

getAction

public java.lang.String getAction(int arg0)
Specified by:
getAction in interface javax.microedition.content.ContentHandler

getActionCount

public int getActionCount()
Specified by:
getActionCount in interface javax.microedition.content.ContentHandler

getActionNameMap

public javax.microedition.content.ActionNameMap getActionNameMap()
Specified by:
getActionNameMap in interface javax.microedition.content.ContentHandler

getActionNameMap

public javax.microedition.content.ActionNameMap getActionNameMap(int arg0)
Specified by:
getActionNameMap in interface javax.microedition.content.ContentHandler

getActionNameMap

public javax.microedition.content.ActionNameMap getActionNameMap(java.lang.String arg0)
Specified by:
getActionNameMap in interface javax.microedition.content.ContentHandler

getActionNameMapCount

public int getActionNameMapCount()
Specified by:
getActionNameMapCount in interface javax.microedition.content.ContentHandler

getAppName

public java.lang.String getAppName()
Specified by:
getAppName in interface javax.microedition.content.ContentHandler

getAuthority

public java.lang.String getAuthority()
Specified by:
getAuthority in interface javax.microedition.content.ContentHandler

getID

public java.lang.String getID()
Specified by:
getID in interface javax.microedition.content.ContentHandler

getRequest

public javax.microedition.content.Invocation getRequest(boolean arg0)
Specified by:
getRequest in interface javax.microedition.content.ContentHandlerServer

getSuffix

public java.lang.String getSuffix(int arg0)
Specified by:
getSuffix in interface javax.microedition.content.ContentHandler

getSuffixCount

public int getSuffixCount()
Specified by:
getSuffixCount in interface javax.microedition.content.ContentHandler

getType

public java.lang.String getType(int arg0)
Specified by:
getType in interface javax.microedition.content.ContentHandler

getTypeCount

public int getTypeCount()
Specified by:
getTypeCount in interface javax.microedition.content.ContentHandler

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface javax.microedition.content.ContentHandler

hasAction

public boolean hasAction(java.lang.String arg0)
Specified by:
hasAction in interface javax.microedition.content.ContentHandler

hasSuffix

public boolean hasSuffix(java.lang.String arg0)
Specified by:
hasSuffix in interface javax.microedition.content.ContentHandler

hasType

public boolean hasType(java.lang.String arg0)
Specified by:
hasType in interface javax.microedition.content.ContentHandler

isAccessAllowed

public boolean isAccessAllowed(java.lang.String arg0)
Specified by:
isAccessAllowed in interface javax.microedition.content.ContentHandlerServer

setListener

public void setListener(javax.microedition.content.RequestListener arg0)
Specified by:
setListener in interface javax.microedition.content.ContentHandlerServer