|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMethodsListEditor
Interface for classes that handle edits to a Mock Object definition's list of method expectations.
| Method Summary | |
|---|---|
MockCentralTableModel<MockableMethod> |
getMethodNamesTableModel(java.lang.Class<?> clazz,
boolean includeObjectMethods)
Returns a MockCentralTableModel build from the supplied
Class instance's methods. |
boolean |
isDefaultMethodVersionInUse(java.lang.reflect.Method method,
boolean matchAnyParams)
Returns whether the default version of a mocked method is already in use for the current Mock Object. |
boolean |
isMethodNameInUse(java.lang.String methodName,
java.lang.Object excluded)
Returns whether the supplied method name is currently in use within the list of Mock Object method expectations. |
| Method Detail |
|---|
MockCentralTableModel<MockableMethod> getMethodNamesTableModel(java.lang.Class<?> clazz,
boolean includeObjectMethods)
MockCentralTableModel build from the supplied
Class instance's methods. If the includeObjectMethods flag
is set, this model will also include all java.lang.Object
methods. The resulting table is populated with
MockableMethod objects.
clazz - the Class.includeObjectMethods - whether to include
java.lang.Object methods.
MockCentralTableModel build from the supplied
Class instance's methods.
boolean isMethodNameInUse(java.lang.String methodName,
java.lang.Object excluded)
methodName - the method name.excluded - an Object to exclude from duplication testing.
boolean isDefaultMethodVersionInUse(java.lang.reflect.Method method,
boolean matchAnyParams)
method - the Method to be mocked.matchAnyParams - whether to match any parameters, i.e. return true
if the method name is in use at all.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||