ToolBuilder-SUnit

ButtonStub
A ButtonStub is xxxxxxxxx.
Instance Variables
enabled: <Object>
enabled
- xxxxx
click
color
eventAccessors
isEnabled
CompositeStub
A CompositeStub is xxxxxxxxx.
Instance Variables
children: <Object>
children
- xxxxx
children
children:
eventAccessors
widgetNamed:
ListStub
A ListStub is xxxxxxxxx.
Instance Variables
index: <Object>
list: <Object>
index
- xxxxx
list
- xxxxx
click:
clickItemAt:
eventAccessors
list
menu
refresh
refreshIndex
refreshList
selectedIndex
selectedItem
update:
Receive a change notice from an object of whom the receiver is a
dependent. The default behavior is to do nothing; a subclass might want
to change itself in some way.
A MenuStub is xxxxxxxxx.
Instance Variables
click:
items
labels
PanelStub
A PanelStub is xxxxxxxxx.
Instance Variables
SUnitToolBuilder
I create a set of "stub" widgets that are useful for testing. Instead of drawing themselves in some GUI, they simulate graphical widgets for testing purposes. Through my widgets, unit tests can simulate user actions and make assertions about the state of the display.
See TestRunnerPlusTest for examples.
buildPluggableButton:
buildPluggableList:
buildPluggableMenu:
buildPluggablePanel:
buildPluggableText:
buildPluggableTree:
buildPluggableWindow:
close:
Close a previously opened widget
open:
Build and open the object. Answer the widget opened.
register:id:
widgetAt:ifAbsent:
Answer the widget with the given ID
TextStub
A TextStub is xxxxxxxxx.
Instance Variables
text: <Object>
text
- xxxxx
accept:
color
eventAccessors
refresh
refreshText
text
update:
Receive a change notice from an object of whom the receiver is a
dependent. The default behavior is to do nothing; a subclass might want
to change itself in some way.
TreeNodeStub
A TreeNodeStub is xxxxxxxxx.
Instance Variables
item: <Object>
item
- xxxxx
children
fromSpec:item:
item
label
matches:
openPath:
printOn:
Append to the argument, aStream, a sequence of characters that
identifies the receiver.
select
selectPath:
setSpec:item:
TreeStub
A TreeStub is xxxxxxxxx.
Instance Variables
roots: <Object>
roots
- xxxxx
eventAccessors
openPath:
roots:
select:
setSpec:
update:
Receive a change notice from an object of whom the receiver is a
dependent. The default behavior is to do nothing; a subclass might want
to change itself in some way.
updateRoots
updateSelectedPath
WidgetStub
A WidgetStub is xxxxxxxxx.
Instance Variables
spec: <Object>
spec
- xxxxx
eventAccessors
fromSpec:
model
name
Answer a name for the receiver. This is used generically in the title of certain inspectors, such as the referred-to inspector, and specificially by various subsystems. By default, we let the object just print itself out..
printOn:
Append to the argument, aStream, a sequence of characters that
identifies the receiver.
refresh
setSpec:
spec
update:
Receive a change notice from an object of whom the receiver is a
dependent. The default behavior is to do nothing; a subclass might want
to change itself in some way.
widgetNamed:
WindowStub
A WindowStub is xxxxxxxxx.
Instance Variables
close
eventAccessors