com.hammingweight.hammock.mocks.util
Class MockStack

java.lang.Object
  extended by java.util.Vector
      extended by java.util.Stack
          extended by com.hammingweight.hammock.mocks.util.MockStack
All Implemented Interfaces:
IMockObject

public class MockStack
extends java.util.Stack
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_ELEMENT_$_OBJECT
           
static MockMethod MTHD_CAPACITY
           
static MockMethod MTHD_CONTAINS_$_OBJECT
           
static MockMethod MTHD_COPY_INTO_$_ARRAY_OBJECT
           
static MockMethod MTHD_ELEMENT_AT_$_INT
           
static MockMethod MTHD_ELEMENTS
           
static MockMethod MTHD_EMPTY
           
static MockMethod MTHD_ENSURE_CAPACITY_$_INT
           
static MockMethod MTHD_FIRST_ELEMENT
           
static MockMethod MTHD_INDEX_OF_$_OBJECT
           
static MockMethod MTHD_INDEX_OF_$_OBJECT_INT
           
static MockMethod MTHD_INSERT_ELEMENT_AT_$_OBJECT_INT
           
static MockMethod MTHD_IS_EMPTY
           
static MockMethod MTHD_LAST_ELEMENT
           
static MockMethod MTHD_LAST_INDEX_OF_$_OBJECT
           
static MockMethod MTHD_LAST_INDEX_OF_$_OBJECT_INT
           
static MockMethod MTHD_PEEK
           
static MockMethod MTHD_POP
           
static MockMethod MTHD_PUSH_$_OBJECT
           
static MockMethod MTHD_REMOVE_ALL_ELEMENTS
           
static MockMethod MTHD_REMOVE_ELEMENT_$_OBJECT
           
static MockMethod MTHD_REMOVE_ELEMENT_AT_$_INT
           
static MockMethod MTHD_SEARCH_$_OBJECT
           
static MockMethod MTHD_SET_ELEMENT_AT_$_OBJECT_INT
           
static MockMethod MTHD_SET_SIZE_$_INT
           
static MockMethod MTHD_SIZE
           
static MockMethod MTHD_TRIM_TO_SIZE
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Constructor Summary
MockStack()
           
MockStack(IInvocationHandler handler)
           
 
Method Summary
 void addElement(java.lang.Object arg0)
           
 int capacity()
           
 boolean contains(java.lang.Object arg0)
           
 void copyInto(java.lang.Object[] arg0)
           
 java.lang.Object elementAt(int arg0)
           
 java.util.Enumeration elements()
           
 boolean empty()
           
 void ensureCapacity(int arg0)
           
 java.lang.Object firstElement()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 int indexOf(java.lang.Object arg0)
           
 int indexOf(java.lang.Object arg0, int arg1)
           
 void insertElementAt(java.lang.Object arg0, int arg1)
           
 boolean isEmpty()
           
 java.lang.Object lastElement()
           
 int lastIndexOf(java.lang.Object arg0)
           
 int lastIndexOf(java.lang.Object arg0, int arg1)
           
 java.lang.Object peek()
           
 java.lang.Object pop()
           
 java.lang.Object push(java.lang.Object arg0)
           
 void removeAllElements()
           
 boolean removeElement(java.lang.Object arg0)
           
 void removeElementAt(int arg0)
           
 int search(java.lang.Object arg0)
           
 void setElementAt(java.lang.Object arg0, int arg1)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setSize(int arg0)
           
 int size()
           
 void trimToSize()
           
 
Methods inherited from class java.util.Vector
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MTHD_ADD_ELEMENT_$_OBJECT

public static final MockMethod MTHD_ADD_ELEMENT_$_OBJECT

MTHD_CAPACITY

public static final MockMethod MTHD_CAPACITY

MTHD_CONTAINS_$_OBJECT

public static final MockMethod MTHD_CONTAINS_$_OBJECT

MTHD_COPY_INTO_$_ARRAY_OBJECT

public static final MockMethod MTHD_COPY_INTO_$_ARRAY_OBJECT

MTHD_ELEMENTS

public static final MockMethod MTHD_ELEMENTS

MTHD_ELEMENT_AT_$_INT

public static final MockMethod MTHD_ELEMENT_AT_$_INT

MTHD_EMPTY

public static final MockMethod MTHD_EMPTY

MTHD_ENSURE_CAPACITY_$_INT

public static final MockMethod MTHD_ENSURE_CAPACITY_$_INT

MTHD_FIRST_ELEMENT

public static final MockMethod MTHD_FIRST_ELEMENT

MTHD_INDEX_OF_$_OBJECT

public static final MockMethod MTHD_INDEX_OF_$_OBJECT

MTHD_INDEX_OF_$_OBJECT_INT

public static final MockMethod MTHD_INDEX_OF_$_OBJECT_INT

MTHD_INSERT_ELEMENT_AT_$_OBJECT_INT

public static final MockMethod MTHD_INSERT_ELEMENT_AT_$_OBJECT_INT

MTHD_IS_EMPTY

public static final MockMethod MTHD_IS_EMPTY

MTHD_LAST_ELEMENT

public static final MockMethod MTHD_LAST_ELEMENT

MTHD_LAST_INDEX_OF_$_OBJECT

public static final MockMethod MTHD_LAST_INDEX_OF_$_OBJECT

MTHD_LAST_INDEX_OF_$_OBJECT_INT

public static final MockMethod MTHD_LAST_INDEX_OF_$_OBJECT_INT

MTHD_PEEK

public static final MockMethod MTHD_PEEK

MTHD_POP

public static final MockMethod MTHD_POP

MTHD_PUSH_$_OBJECT

public static final MockMethod MTHD_PUSH_$_OBJECT

MTHD_REMOVE_ALL_ELEMENTS

public static final MockMethod MTHD_REMOVE_ALL_ELEMENTS

MTHD_REMOVE_ELEMENT_$_OBJECT

public static final MockMethod MTHD_REMOVE_ELEMENT_$_OBJECT

MTHD_REMOVE_ELEMENT_AT_$_INT

public static final MockMethod MTHD_REMOVE_ELEMENT_AT_$_INT

MTHD_SEARCH_$_OBJECT

public static final MockMethod MTHD_SEARCH_$_OBJECT

MTHD_SET_ELEMENT_AT_$_OBJECT_INT

public static final MockMethod MTHD_SET_ELEMENT_AT_$_OBJECT_INT

MTHD_SET_SIZE_$_INT

public static final MockMethod MTHD_SET_SIZE_$_INT

MTHD_SIZE

public static final MockMethod MTHD_SIZE

MTHD_TRIM_TO_SIZE

public static final MockMethod MTHD_TRIM_TO_SIZE
Constructor Detail

MockStack

public MockStack()

MockStack

public MockStack(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.

addElement

public void addElement(java.lang.Object arg0)
Overrides:
addElement in class java.util.Vector

capacity

public int capacity()
Overrides:
capacity in class java.util.Vector

contains

public boolean contains(java.lang.Object arg0)
Overrides:
contains in class java.util.Vector

copyInto

public void copyInto(java.lang.Object[] arg0)
Overrides:
copyInto in class java.util.Vector

elements

public java.util.Enumeration elements()
Overrides:
elements in class java.util.Vector

elementAt

public java.lang.Object elementAt(int arg0)
Overrides:
elementAt in class java.util.Vector

empty

public boolean empty()
Overrides:
empty in class java.util.Stack

ensureCapacity

public void ensureCapacity(int arg0)
Overrides:
ensureCapacity in class java.util.Vector

firstElement

public java.lang.Object firstElement()
Overrides:
firstElement in class java.util.Vector

indexOf

public int indexOf(java.lang.Object arg0)
Overrides:
indexOf in class java.util.Vector

indexOf

public int indexOf(java.lang.Object arg0,
                   int arg1)
Overrides:
indexOf in class java.util.Vector

insertElementAt

public void insertElementAt(java.lang.Object arg0,
                            int arg1)
Overrides:
insertElementAt in class java.util.Vector

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class java.util.Vector

lastElement

public java.lang.Object lastElement()
Overrides:
lastElement in class java.util.Vector

lastIndexOf

public int lastIndexOf(java.lang.Object arg0)
Overrides:
lastIndexOf in class java.util.Vector

lastIndexOf

public int lastIndexOf(java.lang.Object arg0,
                       int arg1)
Overrides:
lastIndexOf in class java.util.Vector

peek

public java.lang.Object peek()
Overrides:
peek in class java.util.Stack

pop

public java.lang.Object pop()
Overrides:
pop in class java.util.Stack

push

public java.lang.Object push(java.lang.Object arg0)
Overrides:
push in class java.util.Stack

removeAllElements

public void removeAllElements()
Overrides:
removeAllElements in class java.util.Vector

removeElement

public boolean removeElement(java.lang.Object arg0)
Overrides:
removeElement in class java.util.Vector

removeElementAt

public void removeElementAt(int arg0)
Overrides:
removeElementAt in class java.util.Vector

search

public int search(java.lang.Object arg0)
Overrides:
search in class java.util.Stack

setElementAt

public void setElementAt(java.lang.Object arg0,
                         int arg1)
Overrides:
setElementAt in class java.util.Vector

setSize

public void setSize(int arg0)
Overrides:
setSize in class java.util.Vector

size

public int size()
Overrides:
size in class java.util.Vector

trimToSize

public void trimToSize()
Overrides:
trimToSize in class java.util.Vector