Java Doc for BufferedValueModelTest.java in  » Swing-Library » jgoodies-data-binding » com » jgoodies » binding » tests » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » jgoodies data binding » com.jgoodies.binding.tests 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jgoodies.binding.tests.BufferedValueModelTest

BufferedValueModelTest
final public class BufferedValueModelTest extends TestCase (Code)
Tests class BufferedValueModel . Critical are state changes to and from the state where buffered value == subject value.
author:
   Jeanette Winzenburg
author:
   Karsten Lentzsch
version:
   $Revision: 1.19 $
See Also:   BufferedValueModel




Method Summary
protected  voidsetUp()
    
protected  voidtearDown()
    
public  voidtestCommitChangesSubjectValue()
     Tests the core of a commit: buffer changes are written through on commit and change the subject value.
public  voidtestCommitFiresChangeOnDifferentOldAndNewValues()
    
public  voidtestCommitFiresNoChangeOnSameOldAndNewValues()
     Checks and verifies that a commit fires no value change.
public  voidtestFiresBufferingChanges()
     Tests that changing the buffering state fires changes of the buffering property.
public  voidtestFlushChecksIdentity()
    
public  voidtestFlushFiresTrueValueChanges()
     Tests that a flush event fires a value change if and only if the flushed value does not equal the buffered value.
public  voidtestFlushResetsTheBufferedValue()
     Tests the core of a flush action: buffer changes are overridden by subject changes after a flush.
public  voidtestIgnoresSubjectChangesIfValueAssigned()
     Tests that subject changes are not propagated once a value has been assigned, i.e.
public  voidtestIgnoresSubjectValuesIfValueAssigned()
     Tests that the BufferedValueModel returns the buffered values once a value has been assigned and ignores subject value changes.
public  voidtestIsBufferingIfValueAssigned()
     Tests that the buffer is buffering once a value has been assigned, even if the buffered value is equal to the subject's value.
public  voidtestIsNotBufferingAfterCommit()
     Tests that the buffer is not buffering after a commit.
public  voidtestIsNotBufferingAfterFlush()
     Tests that the buffer is not buffering after a flush.
public  voidtestIsNotBufferingIfNoValueAssigned()
     Tests that a buffer isn't buffering as long as no value has been assigned.
public  voidtestListensToCurrentSubject()
     Checks that the buffer listens to changes of the current subject and moves the value change handler if the subject changes.
public  voidtestListensToCurrentTriggerChannel()
     Checks and verifies that commit and flush events are driven by the current trigger channel.
public  voidtestPropagatesSubjectChangesIfNoValueAssigned()
     Checks that subject changes fire value changes if no value has been assigned.
public  voidtestReadOnly()
     Tests read actions on a read-only model.
public  voidtestRejectCommitWhenSubjectIsNull()
    
public  voidtestRejectFlushWhenSubjectIsNull()
    
public  voidtestRejectGetValueWhenSubjectIsNull()
    
public  voidtestRejectNullTriggerChannel()
     Checks that the trigger channel is non-null.
public  voidtestRejectSetValueWhenSubjectIsNull()
    
public  voidtestReturnsBufferedValueIfValueAssigned()
     Tests that the BufferedValueModel returns the buffered values once a value has been assigned.
public  voidtestReturnsCurrentSubjectValue()
     Checks that the buffer reports the current subject's value if unbuffered.
public  voidtestReturnsSubjectValueAfterCommit()
     Tests that the BufferedValueModel returns the subject's values after a commit.
public  voidtestReturnsSubjectValueAfterFlush()
     Tests that the BufferedValueModel returns the subject's values after a flush.
public  voidtestReturnsSubjectValueIfNoValueAssigned()
     Tests that the BufferedValueModel returns the subject's values as long as no value has been assigned.
public  voidtestSetValueFiresIfNewValueAndSubjectChange()
    
public  voidtestSetValueFiresProperValueChangeEvents()
    
public  voidtestSetValueSendsProperValueChangeEvents()
    
public  voidtestSubjectChange()
     Checks that #setSubject changes the subject.
public  voidtestSubjectValuesUnchangedBeforeCommit()
     Tests the core of the buffering feature: buffer modifications do not affect the subject before a commit.
public  voidtestTriggerChannelChange()
     Checks that #setTriggerChannel changes the trigger channel.
public  voidtestValueNoficationAfterSubjectChanged()
    
public  voidtestWriteOnly()
     Tests write actions on a write-only model.



Method Detail
setUp
protected void setUp() throws Exception(Code)

throws:
  Exception - in case of an unexpected problem



tearDown
protected void tearDown() throws Exception(Code)

throws:
  Exception - in case of an unexpected problem



testCommitChangesSubjectValue
public void testCommitChangesSubjectValue()(Code)
Tests the core of a commit: buffer changes are written through on commit and change the subject value.



testCommitFiresChangeOnDifferentOldAndNewValues
public void testCommitFiresChangeOnDifferentOldAndNewValues()(Code)



testCommitFiresNoChangeOnSameOldAndNewValues
public void testCommitFiresNoChangeOnSameOldAndNewValues()(Code)
Checks and verifies that a commit fires no value change.



testFiresBufferingChanges
public void testFiresBufferingChanges()(Code)
Tests that changing the buffering state fires changes of the buffering property.



testFlushChecksIdentity
public void testFlushChecksIdentity()(Code)



testFlushFiresTrueValueChanges
public void testFlushFiresTrueValueChanges()(Code)
Tests that a flush event fires a value change if and only if the flushed value does not equal the buffered value.



testFlushResetsTheBufferedValue
public void testFlushResetsTheBufferedValue()(Code)
Tests the core of a flush action: buffer changes are overridden by subject changes after a flush.



testIgnoresSubjectChangesIfValueAssigned
public void testIgnoresSubjectChangesIfValueAssigned()(Code)
Tests that subject changes are not propagated once a value has been assigned, i.e. the buffer is buffering.



testIgnoresSubjectValuesIfValueAssigned
public void testIgnoresSubjectValuesIfValueAssigned()(Code)
Tests that the BufferedValueModel returns the buffered values once a value has been assigned and ignores subject value changes.



testIsBufferingIfValueAssigned
public void testIsBufferingIfValueAssigned()(Code)
Tests that the buffer is buffering once a value has been assigned, even if the buffered value is equal to the subject's value.



testIsNotBufferingAfterCommit
public void testIsNotBufferingAfterCommit()(Code)
Tests that the buffer is not buffering after a commit.



testIsNotBufferingAfterFlush
public void testIsNotBufferingAfterFlush()(Code)
Tests that the buffer is not buffering after a flush.



testIsNotBufferingIfNoValueAssigned
public void testIsNotBufferingIfNoValueAssigned()(Code)
Tests that a buffer isn't buffering as long as no value has been assigned.



testListensToCurrentSubject
public void testListensToCurrentSubject()(Code)
Checks that the buffer listens to changes of the current subject and moves the value change handler if the subject changes.



testListensToCurrentTriggerChannel
public void testListensToCurrentTriggerChannel()(Code)
Checks and verifies that commit and flush events are driven by the current trigger channel.



testPropagatesSubjectChangesIfNoValueAssigned
public void testPropagatesSubjectChangesIfNoValueAssigned()(Code)
Checks that subject changes fire value changes if no value has been assigned.



testReadOnly
public void testReadOnly()(Code)
Tests read actions on a read-only model.



testRejectCommitWhenSubjectIsNull
public void testRejectCommitWhenSubjectIsNull()(Code)



testRejectFlushWhenSubjectIsNull
public void testRejectFlushWhenSubjectIsNull()(Code)



testRejectGetValueWhenSubjectIsNull
public void testRejectGetValueWhenSubjectIsNull()(Code)



testRejectNullTriggerChannel
public void testRejectNullTriggerChannel()(Code)
Checks that the trigger channel is non-null.



testRejectSetValueWhenSubjectIsNull
public void testRejectSetValueWhenSubjectIsNull()(Code)



testReturnsBufferedValueIfValueAssigned
public void testReturnsBufferedValueIfValueAssigned()(Code)
Tests that the BufferedValueModel returns the buffered values once a value has been assigned.



testReturnsCurrentSubjectValue
public void testReturnsCurrentSubjectValue()(Code)
Checks that the buffer reports the current subject's value if unbuffered.



testReturnsSubjectValueAfterCommit
public void testReturnsSubjectValueAfterCommit()(Code)
Tests that the BufferedValueModel returns the subject's values after a commit.



testReturnsSubjectValueAfterFlush
public void testReturnsSubjectValueAfterFlush()(Code)
Tests that the BufferedValueModel returns the subject's values after a flush.



testReturnsSubjectValueIfNoValueAssigned
public void testReturnsSubjectValueIfNoValueAssigned()(Code)
Tests that the BufferedValueModel returns the subject's values as long as no value has been assigned.



testSetValueFiresIfNewValueAndSubjectChange
public void testSetValueFiresIfNewValueAndSubjectChange()(Code)



testSetValueFiresProperValueChangeEvents
public void testSetValueFiresProperValueChangeEvents()(Code)



testSetValueSendsProperValueChangeEvents
public void testSetValueSendsProperValueChangeEvents()(Code)



testSubjectChange
public void testSubjectChange()(Code)
Checks that #setSubject changes the subject.



testSubjectValuesUnchangedBeforeCommit
public void testSubjectValuesUnchangedBeforeCommit()(Code)
Tests the core of the buffering feature: buffer modifications do not affect the subject before a commit.



testTriggerChannelChange
public void testTriggerChannelChange()(Code)
Checks that #setTriggerChannel changes the trigger channel.



testValueNoficationAfterSubjectChanged
public void testValueNoficationAfterSubjectChanged()(Code)



testWriteOnly
public void testWriteOnly()(Code)
Tests write actions on a write-only model.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.