|
||||||||||
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.value.support.BufferedValueModelTests
public final class BufferedValueModelTests
Tests class BufferedValueModel
.
Field Summary |
---|
Fields inherited from class org.springframework.richclient.test.SpringRichTestCase |
---|
applicationServices, logger |
Constructor Summary | |
---|---|
BufferedValueModelTests()
|
Method Summary | |
---|---|
protected void |
doSetUp()
Should be implemented in subclasses as an alternative to the final method SpringRichTestCase.setUp() |
void |
testCommitChangesWrappedValue()
Tests the core of a commit: buffer changes are written through on commit and change the wrapped value. |
void |
testCommitFiresChangeOnDifferentOldAndNewValues()
|
void |
testCommitFiresNoChangeOnSameOldAndNewValues()
Checks and verifies that a commit fires no value change. |
void |
testCommitTriggerChange()
Checks that #setCommitTrigger changes the commit trigger. |
void |
testDetectedWrappedValueChangeIfValueAssigned()
|
void |
testFiresBufferingChanges()
Tests that changing the buffering state fires changes of the buffering property. |
void |
testFlushFiresTrueValueChanges()
Tests that a flush event fires a value change if and only if the flushed value does not equal the buffered value. |
void |
testFlushResetsTheBufferedValue()
Tests the core of a flush action: buffer changes are overridden by wrapped changes after a flush. |
void |
testGetWrappedValueModel()
|
void |
testIgnoresWrappedChangesIfValueAssigned()
Tests that wrapped changes are propagated once a value has been assigned, i.e. |
void |
testIsBufferingIfValueAssigned()
Tests that the buffer is buffering once a value has been assigned. |
void |
testIsNotBufferingAfterCommit()
Tests that the buffer is not buffering after a commit. |
void |
testIsNotBufferingAfterFlush()
Tests that the buffer is not buffering after a flush. |
void |
testIsNotBufferingIfNoValueAssigned()
Tests that a buffer isn't buffering as long as no value has been assigned. |
void |
testListensToCurrentCommitTrigger()
Checks and verifies that commit and flush events are driven by the current commit trigger. |
void |
testPropagatesWrappedChangesIfNoValueAssigned()
Checks that wrapped changes fire value changes if no value has been assigned. |
void |
testReadOnly()
Tests read actions on a read-only model. |
void |
testReturnsBufferedValueIfValueAssigned()
Tests that the BufferedValueModel returns the buffered values once a value has been assigned. |
void |
testReturnsWrappedValueAfterCommit()
Tests that the BufferedValueModel returns the wrapped's values after a commit. |
void |
testReturnsWrappedValueAfterFlush()
Tests that the BufferedValueModel returns the wrapped's values after a flush. |
void |
testReturnsWrappedValueIfNoValueAssigned()
|
void |
testSetValueSendsProperValueChangeEvents()
|
void |
testValueChangeSendsProperValueChangeEvents()
|
void |
testWrappedValuesUnchangedBeforeCommit()
Tests the core of the buffering feature: buffer modifications do not affect the wrapped before a commit. |
Methods inherited from class org.springframework.richclient.test.SpringRichTestCase |
---|
createApplicationContext, createApplicationLifecycleAdvisor, 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 BufferedValueModelTests()
Method Detail |
---|
protected void doSetUp() throws Exception
SpringRichTestCase
SpringRichTestCase.setUp()
doSetUp
in class SpringRichTestCase
Exception
public void testGetWrappedValueModel()
public void testReturnsWrappedValueIfNoValueAssigned()
public void testReturnsBufferedValueIfValueAssigned()
public void testDetectedWrappedValueChangeIfValueAssigned()
public void testReturnsWrappedValueAfterCommit()
public void testReturnsWrappedValueAfterFlush()
public void testWrappedValuesUnchangedBeforeCommit()
public void testCommitChangesWrappedValue()
public void testFlushResetsTheBufferedValue()
public void testIsNotBufferingIfNoValueAssigned()
public void testIsBufferingIfValueAssigned()
public void testIsNotBufferingAfterCommit()
public void testIsNotBufferingAfterFlush()
public void testFiresBufferingChanges()
public void testSetValueSendsProperValueChangeEvents()
public void testValueChangeSendsProperValueChangeEvents()
public void testCommitTriggerChange()
public void testListensToCurrentCommitTrigger()
public void testPropagatesWrappedChangesIfNoValueAssigned()
public void testIgnoresWrappedChangesIfValueAssigned()
public void testCommitFiresNoChangeOnSameOldAndNewValues()
public void testCommitFiresChangeOnDifferentOldAndNewValues()
public void testFlushFiresTrueValueChanges()
public void testReadOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |