|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.richclient.test.SpringRichTestCase
org.springframework.binding.form.support.AbstractFormModelTests
public abstract class AbstractFormModelTests
Tests for
Nested Class Summary | |
---|---|
protected static class |
AbstractFormModelTests.BooleanStatelistener
Listener to register on boolean properties to check if they are in the expected state. |
static class |
AbstractFormModelTests.TestCommitListener
|
class |
AbstractFormModelTests.TestConversionService
|
Field Summary |
---|
Fields inherited from class org.springframework.richclient.test.SpringRichTestCase |
---|
applicationServices, logger |
Constructor Summary | |
---|---|
AbstractFormModelTests()
|
Method Summary | |
---|---|
protected org.springframework.binding.form.support.AbstractFormModel |
getFormModel(org.springframework.binding.support.BeanPropertyAccessStrategy pas,
boolean buffering)
|
protected org.springframework.binding.form.support.AbstractFormModel |
getFormModel(Object formObject)
|
protected org.springframework.binding.form.support.AbstractFormModel |
getFormModel(org.springframework.binding.value.ValueModel valueModel,
boolean buffering)
|
void |
testBufferedDoesNotWriteThrough()
|
void |
testBufferedFormModelSetFormObjectNotDirty()
Summary: Setting a new FormObject should always result in a clean model (not dirty). |
void |
testCommitEvents()
|
void |
testCommitWritesBufferingThrough()
|
void |
testConvertingValueModels()
|
void |
testDirtyTracking(boolean buffering)
|
void |
testDirtyTrackingWithBuffering()
|
void |
testDirtyTrackingWithoutBuffering()
|
void |
testDirtyTracksKids()
Test on dirty state of parent-child relations. |
void |
testEnabledEvents()
|
void |
testEnabledTracksParent()
|
void |
testFieldMetadata()
|
void |
testFormModelSetFormObjectNotDirty()
Summary: Setting a new FormObject should always result in a clean model (not dirty). |
void |
testFormObjectChangeEventComesBeforePropertyChangeEvent()
|
void |
testFormObjectChangeEvents()
|
void |
testFormPropertiesAreAccessableFromFormObjectChangeEvents()
|
void |
testGetValueModelFromPAS()
|
void |
testParentChildDirtyState()
Test whether the dirty state is correctly propagated between parent-child formModel and that the proper events are fired. |
void |
testParentChildEnabledState()
Test whether the enabled state is correctly propagated between parent-child formModel and that the proper events are fired. |
void |
testParentChildReadOnlyState()
Test whether the read-only state is correctly propagated between parent-child formModel and that the proper events are fired. |
void |
testRevert(boolean buffering)
|
void |
testRevertWithBuffering()
|
void |
testRevertWithoutBuffering()
|
void |
testSetFormObjectDoesNotRevertChangesToPreviousFormObject()
|
void |
testSetFormObjectUpdatesDirtyState()
|
void |
testUnbufferedWritesThrough()
|
Methods inherited from class org.springframework.richclient.test.SpringRichTestCase |
---|
createApplicationContext, createApplicationLifecycleAdvisor, doSetUp, doTearDown, getApplicationServices, registerAdditionalServices, registerBasicServices, setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractFormModelTests()
Method Detail |
---|
protected org.springframework.binding.form.support.AbstractFormModel getFormModel(Object formObject)
protected org.springframework.binding.form.support.AbstractFormModel getFormModel(org.springframework.binding.support.BeanPropertyAccessStrategy pas, boolean buffering)
protected org.springframework.binding.form.support.AbstractFormModel getFormModel(org.springframework.binding.value.ValueModel valueModel, boolean buffering)
public void testGetValueModelFromPAS()
public void testUnbufferedWritesThrough()
public void testBufferedDoesNotWriteThrough()
public void testDirtyTrackingWithBuffering()
public void testDirtyTrackingWithoutBuffering()
public void testDirtyTracking(boolean buffering)
public void testDirtyTracksKids()
public void testSetFormObjectDoesNotRevertChangesToPreviousFormObject()
public void testCommitEvents()
public void testCommitWritesBufferingThrough()
public void testRevertWithBuffering()
public void testRevertWithoutBuffering()
public void testRevert(boolean buffering)
public void testEnabledEvents()
public void testEnabledTracksParent()
public void testConvertingValueModels()
public void testFieldMetadata()
public void testSetFormObjectUpdatesDirtyState()
public void testFormPropertiesAreAccessableFromFormObjectChangeEvents()
public void testFormObjectChangeEventComesBeforePropertyChangeEvent()
public void testFormObjectChangeEvents()
public void testBufferedFormModelSetFormObjectNotDirty()
Summary: Setting a new FormObject should always result in a clean
model (not dirty). Using buffered=true
.
This test checks that when a valueModel is dirty and a new FormObject is set which has the same value for that valueModel, the formModel should not be dirty.
public void testFormModelSetFormObjectNotDirty()
Summary: Setting a new FormObject should always result in a clean
model (not dirty). Using buffered=false
.
This test checks that when a valueModel is dirty and a new FormObject is set which has the same value for that valueModel, the formModel should not be dirty.
public void testParentChildEnabledState()
Test whether the enabled state is correctly propagated between parent-child formModel and that the proper events are fired.
In detail:
public void testParentChildReadOnlyState()
Test whether the read-only state is correctly propagated between parent-child formModel and that the proper events are fired.
In detail:
public void testParentChildDirtyState()
Test whether the dirty state is correctly propagated between parent-child formModel and that the proper events are fired.
In detail:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |