com.hammingweight.hammock.mocks.util
Class MockHashtable
java.lang.Object
java.util.Hashtable
com.hammingweight.hammock.mocks.util.MockHashtable
- All Implemented Interfaces:
- IMockObject
public class MockHashtable
- extends java.util.Hashtable
- implements IMockObject
Methods inherited from class java.util.Hashtable |
toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MTHD_CLEAR
public static final MockMethod MTHD_CLEAR
MTHD_CONTAINS_$_OBJECT
public static final MockMethod MTHD_CONTAINS_$_OBJECT
MTHD_CONTAINS_KEY_$_OBJECT
public static final MockMethod MTHD_CONTAINS_KEY_$_OBJECT
MTHD_ELEMENTS
public static final MockMethod MTHD_ELEMENTS
MTHD_GET_$_OBJECT
public static final MockMethod MTHD_GET_$_OBJECT
MTHD_IS_EMPTY
public static final MockMethod MTHD_IS_EMPTY
MTHD_KEYS
public static final MockMethod MTHD_KEYS
MTHD_PUT_$_OBJECT_OBJECT
public static final MockMethod MTHD_PUT_$_OBJECT_OBJECT
MTHD_REHASH
public static final MockMethod MTHD_REHASH
MTHD_REMOVE_$_OBJECT
public static final MockMethod MTHD_REMOVE_$_OBJECT
MTHD_SIZE
public static final MockMethod MTHD_SIZE
MockHashtable
public MockHashtable()
MockHashtable
public MockHashtable(IInvocationHandler handler)
MockHashtable
public MockHashtable(int arg0)
MockHashtable
public MockHashtable(int arg0,
IInvocationHandler handler)
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.
clear
public void clear()
- Overrides:
clear
in class java.util.Hashtable
contains
public boolean contains(java.lang.Object arg0)
- Overrides:
contains
in class java.util.Hashtable
containsKey
public boolean containsKey(java.lang.Object arg0)
- Overrides:
containsKey
in class java.util.Hashtable
elements
public java.util.Enumeration elements()
- Overrides:
elements
in class java.util.Hashtable
get
public java.lang.Object get(java.lang.Object arg0)
- Overrides:
get
in class java.util.Hashtable
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty
in class java.util.Hashtable
keys
public java.util.Enumeration keys()
- Overrides:
keys
in class java.util.Hashtable
put
public java.lang.Object put(java.lang.Object arg0,
java.lang.Object arg1)
- Overrides:
put
in class java.util.Hashtable
rehash
public void rehash()
- Overrides:
rehash
in class java.util.Hashtable
remove
public java.lang.Object remove(java.lang.Object arg0)
- Overrides:
remove
in class java.util.Hashtable
size
public int size()
- Overrides:
size
in class java.util.Hashtable