com.hammingweight.hammock.mocks.util
Class MockHashtable

java.lang.Object
  extended by java.util.Hashtable
      extended by com.hammingweight.hammock.mocks.util.MockHashtable
All Implemented Interfaces:
IMockObject

public class MockHashtable
extends java.util.Hashtable
implements IMockObject


Field Summary
static MockMethod MTHD_CLEAR
           
static MockMethod MTHD_CONTAINS_$_OBJECT
           
static MockMethod MTHD_CONTAINS_KEY_$_OBJECT
           
static MockMethod MTHD_ELEMENTS
           
static MockMethod MTHD_GET_$_OBJECT
           
static MockMethod MTHD_IS_EMPTY
           
static MockMethod MTHD_KEYS
           
static MockMethod MTHD_PUT_$_OBJECT_OBJECT
           
static MockMethod MTHD_REHASH
           
static MockMethod MTHD_REMOVE_$_OBJECT
           
static MockMethod MTHD_SIZE
           
 
Constructor Summary
MockHashtable()
           
MockHashtable(IInvocationHandler handler)
           
MockHashtable(int arg0)
           
MockHashtable(int arg0, IInvocationHandler handler)
           
 
Method Summary
 void clear()
           
 boolean contains(java.lang.Object arg0)
           
 boolean containsKey(java.lang.Object arg0)
           
 java.util.Enumeration elements()
           
 java.lang.Object get(java.lang.Object arg0)
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
 java.lang.Object put(java.lang.Object arg0, java.lang.Object arg1)
           
 void rehash()
           
 java.lang.Object remove(java.lang.Object arg0)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 int size()
           
 
Methods inherited from class java.util.Hashtable
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

MockHashtable

public MockHashtable()

MockHashtable

public MockHashtable(IInvocationHandler handler)

MockHashtable

public MockHashtable(int arg0)

MockHashtable

public MockHashtable(int arg0,
                     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.

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