org.springframework.binding.form.support
Class DefaultFormModelTests

Show UML class diagram
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.richclient.test.SpringRichTestCase
              extended by org.springframework.binding.form.support.AbstractFormModelTests
                  extended by org.springframework.binding.form.support.DefaultFormModelTests
All Implemented Interfaces:
junit.framework.Test

public class DefaultFormModelTests
extends AbstractFormModelTests

Tests for @link DefaultFormModel

Author:
Oliver Hutchison

Nested Class Summary
 class DefaultFormModelTests.ErrorBean
           
static class DefaultFormModelTests.TestValidator
           
 
Nested classes/interfaces inherited from class org.springframework.binding.form.support.AbstractFormModelTests
AbstractFormModelTests.BooleanStatelistener, AbstractFormModelTests.TestCommitListener, AbstractFormModelTests.TestConversionService
 
Field Summary
 
Fields inherited from class org.springframework.richclient.test.SpringRichTestCase
applicationServices, logger
 
Constructor Summary
DefaultFormModelTests()
           
 
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)
           
 void testChangingValidatingClearsMessagesOrValidates()
           
 void testDefaultFormModelFromValueModel()
           
 void testPropertyChangeCausesValidation()
           
 void testRaiseClearValidationMessage()
           
 void testReadOnlyRevert()
           
 void testSetThrowsExceptionRaisesValidationMessage()
           
 void testTypeConversionThrowsExceptionRaisesValidationMessage()
           
 void testValidatingEvents()
           
 void testValidationMessages()
           
 
Methods inherited from class org.springframework.binding.form.support.AbstractFormModelTests
getFormModel, testBufferedDoesNotWriteThrough, testBufferedFormModelSetFormObjectNotDirty, testCommitEvents, testCommitWritesBufferingThrough, testConvertingValueModels, testDirtyTracking, testDirtyTrackingWithBuffering, testDirtyTrackingWithoutBuffering, testDirtyTracksKids, testEnabledEvents, testEnabledTracksParent, testFieldMetadata, testFormModelSetFormObjectNotDirty, testFormObjectChangeEventComesBeforePropertyChangeEvent, testFormObjectChangeEvents, testFormPropertiesAreAccessableFromFormObjectChangeEvents, testGetValueModelFromPAS, testParentChildDirtyState, testParentChildEnabledState, testParentChildReadOnlyState, testRevert, testRevertWithBuffering, testRevertWithoutBuffering, testSetFormObjectDoesNotRevertChangesToPreviousFormObject, testSetFormObjectUpdatesDirtyState, 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

DefaultFormModelTests

public DefaultFormModelTests()
Method Detail

getFormModel

protected org.springframework.binding.form.support.AbstractFormModel getFormModel(Object formObject)
Overrides:
getFormModel in class AbstractFormModelTests

getFormModel

protected org.springframework.binding.form.support.AbstractFormModel getFormModel(org.springframework.binding.support.BeanPropertyAccessStrategy pas,
                                                                                  boolean buffering)
Overrides:
getFormModel in class AbstractFormModelTests

testPropertyChangeCausesValidation

public void testPropertyChangeCausesValidation()

testValidationMessages

public void testValidationMessages()

testRaiseClearValidationMessage

public void testRaiseClearValidationMessage()

testChangingValidatingClearsMessagesOrValidates

public void testChangingValidatingClearsMessagesOrValidates()

testSetThrowsExceptionRaisesValidationMessage

public void testSetThrowsExceptionRaisesValidationMessage()

testTypeConversionThrowsExceptionRaisesValidationMessage

public void testTypeConversionThrowsExceptionRaisesValidationMessage()

testValidatingEvents

public void testValidatingEvents()

testReadOnlyRevert

public void testReadOnlyRevert()

testDefaultFormModelFromValueModel

public void testDefaultFormModelFromValueModel()
                                        throws Exception
Throws:
Exception


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.