|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.testing.Documentor
org.nakedobjects.testing.AbstractView
org.nakedobjects.testing.View
| Field Summary |
| Fields inherited from class org.nakedobjects.testing.AbstractView |
forObject |
| Constructor Summary | |
View(NakedObject object)
|
|
View(NakedObject object,
java.util.Hashtable viewCache)
|
|
| Method Summary | |
void |
assertCantDrop(DragView draggedView)
Check that dragged object cannot be dropped on this object. |
void |
assertCantRightClick(java.lang.String name)
Check that the specified object menu item is currently disabled. |
void |
assertFieldContains(java.lang.String fieldName,
java.lang.String expectedValue)
Check that the specified field contains the expected value. |
void |
assertFieldContains(java.lang.String message,
java.lang.String fieldName,
java.lang.String expectedValue)
Check that the specified field contains the expected value. |
void |
assertFieldContains(java.lang.String message,
java.lang.String fieldName,
View expectedView)
Check that the specified field contains the expected object (as represented by the specifed view. |
void |
assertFieldContains(java.lang.String fieldName,
View expectedView)
Check that the specified field contains the expected object (as represented by the specifed view. |
void |
assertFieldReadOnly(java.lang.String fieldName)
Check that a field exists with the specified name, and it is read-only. |
void |
assertTitleEquals(java.lang.String expectedTitle)
Check that the title of this object is the same as the expected title. |
void |
assertTitleEquals(java.lang.String message,
java.lang.String expectedTitle)
Check that the title of this object is the same as the expected title. |
void |
checkAssociation(java.lang.String fieldName,
AbstractView expected)
Deprecated. |
void |
checkCantDrop(DragView draggedView)
Check that the dragged object (represented by the specified view) cannot be dropped onto this object. |
void |
checkCantRightClick(java.lang.String name)
Check that the specified object menu item is currently disabled. |
void |
checkField(java.lang.String fieldName,
AbstractView check)
Check that the specified field has an association to same object as another view represents. |
void |
checkField(java.lang.String fieldName,
NakedValue expectedValue)
Check that the specified field has the same value as the specified NakedValue. |
void |
checkField(java.lang.String fieldName,
java.lang.String expectedTitle)
Check that the specified field has the expected value, or the associated object has the expected title. |
void |
checkTitle(java.lang.String expected)
Check that this object has the specified expected title. |
DragView |
drag()
Initiates a drag action, where this object is to be dragged and later dropped on a field or another object. |
DragView |
drag(java.lang.String fieldName)
Initiates a drag action of the (only) object contained within the specified field. |
DragView |
drag(java.lang.String fieldName,
java.lang.String title)
Initiates a drag action of the object, with the given title, contained within the specified multi-object field, i.e. a collection. |
View |
drop(DragView draggedView)
Drop the specified view (object) onto this object and invoke the corresponding action method.
|
void |
drop(java.lang.String fieldName,
DragView draggedView)
Drop the specified view (object) into the specified field. |
void |
fieldEntry(java.lang.String name,
java.lang.String value)
Enters text into an editable field. |
AbstractView |
getField(java.lang.String fieldName)
|
View |
getField(java.lang.String fieldName,
java.lang.String title)
Get the view for the object held within the named collection view, that has the specified title. |
java.lang.String |
getFieldTitle(java.lang.String field)
returns the title of the object as a String |
java.lang.String |
getTitle()
returns the title of the object as a String |
java.lang.String |
objectString(View view)
|
void |
removeReference(java.lang.String fieldName)
Removes an existing object reference from the specified field. |
void |
removeReference(java.lang.String fieldName,
java.lang.String title)
Removes the existing object reference, which has the specified title, from the specified multi-object field. |
View |
rightClick(java.lang.String name)
Invokes this object's zero-parameter action method of the the given name. |
View |
select(java.lang.String title)
Returns the view, from within this collection, that has the specified title. |
void |
testField(java.lang.String fieldName,
java.lang.String expectedValue)
Test the named field by calling fieldEntry with the specifed value and then check the value stored is the same. |
void |
testField(java.lang.String fieldName,
java.lang.String setValue,
java.lang.String expectedValue)
Test the named field by calling fieldEntry with the set value and then check the value stored against the expected value. |
void |
testField(java.lang.String fieldName,
View expected)
Test the named field by calling fieldEntry with the set value and then check the value stored against the expected value. |
| Methods inherited from class org.nakedobjects.testing.AbstractView |
getForObject, toString |
| Methods inherited from class org.nakedobjects.testing.Documentor |
close, doc, docln, flush, initDocumentation, initSection, isGenerating, objectString, simpleObjectString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public View(NakedObject object)
public View(NakedObject object,
java.util.Hashtable viewCache)
| Method Detail |
public AbstractView getField(java.lang.String fieldName)
public View getField(java.lang.String fieldName,
java.lang.String title)
public java.lang.String getFieldTitle(java.lang.String field)
public java.lang.String getTitle()
getTitle in class AbstractViewpublic void assertCantDrop(DragView draggedView)
public void assertCantRightClick(java.lang.String name)
public void assertFieldContains(java.lang.String message,
java.lang.String fieldName,
View expectedView)
message - text to add to the failure message, which is displayed
after a failure.
public void assertFieldContains(java.lang.String fieldName,
View expectedView)
public void assertFieldContains(java.lang.String fieldName,
java.lang.String expectedValue)
public void assertFieldContains(java.lang.String message,
java.lang.String fieldName,
java.lang.String expectedValue)
message - text to add to the failure message, which is displayed
after a failure.public void assertFieldReadOnly(java.lang.String fieldName)
public void assertTitleEquals(java.lang.String expectedTitle)
public void assertTitleEquals(java.lang.String message,
java.lang.String expectedTitle)
message - text to add to the failure message, which is displayed
after a failure.
public void checkAssociation(java.lang.String fieldName,
AbstractView expected)
public void checkCantDrop(DragView draggedView)
public void checkCantRightClick(java.lang.String name)
public void checkField(java.lang.String fieldName,
java.lang.String expectedTitle)
public void checkField(java.lang.String fieldName,
NakedValue expectedValue)
public void checkField(java.lang.String fieldName,
AbstractView check)
public void checkTitle(java.lang.String expected)
public DragView drag()
public DragView drag(java.lang.String fieldName)
public DragView drag(java.lang.String fieldName,
java.lang.String title)
public void drop(java.lang.String fieldName,
DragView draggedView)
If the field already contains an object then, as an object cannot be dropped on a non-empty field, the test will fail.
public View drop(DragView draggedView)
action method.
A new view representing the returned object, if any is returned, from the invoked
action method is returned
by this method.
public void fieldEntry(java.lang.String name,
java.lang.String value)
public java.lang.String objectString(View view)
public void removeReference(java.lang.String fieldName)
public void removeReference(java.lang.String fieldName,
java.lang.String title)
public View rightClick(java.lang.String name)
public final View select(java.lang.String title)
public void testField(java.lang.String fieldName,
View expected)
public void testField(java.lang.String fieldName,
java.lang.String expectedValue)
public void testField(java.lang.String fieldName,
java.lang.String setValue,
java.lang.String expectedValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||