|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.unittest.mocks.DefaultMethodCallHandlers
public class DefaultMethodCallHandlers
This class contains method call handlers for some default method handling.
This class provides handlers for the toString, equals and hashCode methods. They reproduce the default Object implementations for dynamic mock objects, these can be overridden.
Field Summary | |
---|---|
static MethodCallHandler |
EQUALS_HANDLER
The Default MethodCallHandler for the equals method, performs an == check. |
static MethodCallHandler |
HASHCODE_HANDLER
The Default MethodCallHandler for the hashCode method, returns the identity hashCode. |
static MethodCallHandler |
TOSTRING_HANDLER
The Default MethodCallHandler for the toString method, reproduces |
Constructor Summary | |
---|---|
DefaultMethodCallHandlers()
|
Method Summary | |
---|---|
static boolean |
isDefaultMethodCall(MethodCall call)
This method returns true if and only if the specified call represents a default method call. |
static void |
registerDefaultHandlers(Skeleton s)
This method registers the DefaultMethodCall Handlers with the specified skeleton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MethodCallHandler EQUALS_HANDLER
public static final MethodCallHandler TOSTRING_HANDLER
public static final MethodCallHandler HASHCODE_HANDLER
Constructor Detail |
---|
public DefaultMethodCallHandlers()
Method Detail |
---|
public static void registerDefaultHandlers(Skeleton s)
s
- a skeletonpublic static boolean isDefaultMethodCall(MethodCall call)
call
- the call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |