org.mockcentral.editor.nodes.expectation
Interface IEditExpectationPartManager

All Known Implementing Classes:
EditExpectationPartManager

public interface IEditExpectationPartManager

Interface for the EditExpectationPartManager class.

Author:
David Hutchinson

Method Summary
 void clearAnyParameters()
          Clears the "any parameters" status.
 void deleteParameter(int selectionIndex, org.mockcentral.server.SignaturePartBean bean)
          Deletes the supplied parameter SignaturepartBean.
 void deleteResult()
          Deletes the supplied result SignaturepartBean.
 void moveParameterDown(int selectionIndex, org.mockcentral.server.SignaturePartBean bean)
          Moves the supplied parameter SignaturepartBean down in the list
 void moveParameterUp(int selectionIndex, org.mockcentral.server.SignaturePartBean bean)
          Moves the supplied parameter SignaturepartBean up in the list
 void setAnyParameters()
          Sets the "any parameters" status.
 void showAddParameterDialog(org.mockcentral.server.SignaturePartBean bean)
          Shows a dialog for adding a new Mock Object method parameter.
 void showAddResultDialog(org.mockcentral.server.SignaturePartBean bean)
          Shows a dialog for adding a Mock Object method result.
 void showEditExpectationDataDialog(org.mockcentral.editor.nodes.expectation.ExpectationModel nodeModel, org.mockcentral.editor.nodes.expectation.MethodNameValidator validator)
          Shows a dialog for editing the Mock Object method expectation method name and/or type.
 void showEditParameterDialog(int index, org.mockcentral.server.SignaturePartBean bean)
          Shows a dialog for editing the selected Mock Object method parameter.
 void showEditResultDialog(org.mockcentral.server.SignaturePartBean bean)
          Shows a dialog for editing the Mock Object method result.
 

Method Detail

showEditExpectationDataDialog

void showEditExpectationDataDialog(org.mockcentral.editor.nodes.expectation.ExpectationModel nodeModel,
                                   org.mockcentral.editor.nodes.expectation.MethodNameValidator validator)
Shows a dialog for editing the Mock Object method expectation method name and/or type.

Parameters:
nodeModel - the ExpectationModel.
validator - the MethodNameValidator.

showAddParameterDialog

void showAddParameterDialog(org.mockcentral.server.SignaturePartBean bean)
Shows a dialog for adding a new Mock Object method parameter.

Parameters:
bean - a new SignaturePartBean for recording the new Mock Object method expectation parameter data.

showEditParameterDialog

void showEditParameterDialog(int index,
                             org.mockcentral.server.SignaturePartBean bean)
Shows a dialog for editing the selected Mock Object method parameter.

Parameters:
index - the index of parameter.
bean - the SignaturePartBean containing the current Mock Object method expectation parameter data.

showAddResultDialog

void showAddResultDialog(org.mockcentral.server.SignaturePartBean bean)
Shows a dialog for adding a Mock Object method result.

Parameters:
bean - a new SignaturePartBean for recording the new Mock Object method expectation result data.

showEditResultDialog

void showEditResultDialog(org.mockcentral.server.SignaturePartBean bean)
Shows a dialog for editing the Mock Object method result.

Parameters:
bean - the SignaturePartBean containing the current Mock Object method expectation result data.

setAnyParameters

void setAnyParameters()
Sets the "any parameters" status. If set, the method will expect/match any supplied parameters.


clearAnyParameters

void clearAnyParameters()
Clears the "any parameters" status.


deleteParameter

void deleteParameter(int selectionIndex,
                     org.mockcentral.server.SignaturePartBean bean)
Deletes the supplied parameter SignaturepartBean.

Parameters:
selectionIndex - the index of the parameter, preserved in case of an undo.
bean - the parameter SignaturepartBean.

moveParameterUp

void moveParameterUp(int selectionIndex,
                     org.mockcentral.server.SignaturePartBean bean)
Moves the supplied parameter SignaturepartBean up in the list

Parameters:
selectionIndex - the index of the parameter.
bean - the parameter SignaturepartBean.

moveParameterDown

void moveParameterDown(int selectionIndex,
                       org.mockcentral.server.SignaturePartBean bean)
Moves the supplied parameter SignaturepartBean down in the list

Parameters:
selectionIndex - the index of the parameter.
bean - the parameter SignaturepartBean.

deleteResult

void deleteResult()
Deletes the supplied result SignaturepartBean.