|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.expectation.ExpectationController
public class ExpectationController
The controller class within the MVC structure that includes the
ExpectationModel and IMockCentralNodeView classes.
| Constructor Summary | |
|---|---|
ExpectationController(ExpectationModel nodeModel)
Creates a new instance, assigning the node model. |
|
| Method Summary | |
|---|---|
void |
addParameter(int index,
org.mockcentral.server.SignaturePartBean partModel)
Adds the supplied SignaturePartBean to the list of modeled
Mock Object method parameters. |
void |
deleteParameter(org.mockcentral.server.SignaturePartBean partModel)
Deletes the supplied SignaturePartBean from the list of
modeled Mock Object method parameters. |
void |
setAnyParameters(boolean b)
Sets the value for whether the Mock Object method expectation will accept all/any parameters. |
void |
setMethodName(java.lang.String methodName)
Sets the Mock Object method name value. |
void |
setMethodType(java.lang.String methodType)
Sets the Mock Object method type value. |
void |
setParameter(int index,
org.mockcentral.server.SignaturePartBean partModel)
Sets the data for the indexed modeled method parameter to that contained in the SignaturePartBean argument. |
void |
setResult(org.mockcentral.server.SignaturePartBean partModel)
Sets the Mock Object method result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpectationController(ExpectationModel nodeModel)
nodeModel - the current ExpectationModel.| Method Detail |
|---|
public void setMethodName(java.lang.String methodName)
methodName - the value to set.public void setMethodType(java.lang.String methodType)
methodType - the value to set.
public void addParameter(int index,
org.mockcentral.server.SignaturePartBean partModel)
SignaturePartBean to the list of modeled
Mock Object method parameters.
index - the index at which to add the the supplied
SignaturePartBean.partModel - the SignaturePartBean to add to the modeled list
of Mock Object method parameters.public void deleteParameter(org.mockcentral.server.SignaturePartBean partModel)
SignaturePartBean from the list of
modeled Mock Object method parameters.
partModel - the SignaturePartBean to remove from the modeled
list of Mock Object method parameters.
public void setParameter(int index,
org.mockcentral.server.SignaturePartBean partModel)
SignaturePartBean argument.
index - the index of the modeled method paramter in the list.partModel - the SignaturePartBean containing the new
parameter data.public void setAnyParameters(boolean b)
b - the value to set.public void setResult(org.mockcentral.server.SignaturePartBean partModel)
partModel - the SignaturePartBean modeling the Mock Object
method result, or null if the result is to be void.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||