Java Doc for BeanAdapterTest.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.BeanAdapterTest

BeanAdapterTest
final public class BeanAdapterTest extends TestCase (Code)
A test case for class com.jgoodies.binding.beans.BeanAdapter .
author:
   Karsten Lentzsch
version:
   $Revision: 1.26 $




Method Summary
protected  voidsetUp()
    
protected  voidtearDown()
    
public  voidtestAbsentProperties()
    
public  voidtestBeanChangeFiresThreeBeanEvents()
    
public  voidtestBeanChangeIgnoresNewBeanNull()
    
public  voidtestBeanChangeIgnoresOldAndNewBeanNull()
    
public  voidtestBeanChangeIgnoresOldBeanNull()
    
public  voidtestBeanChangeSendsUpdates()
    
public  voidtestBeanInfoProperties()
     Tests access to properties that are described by a BeanInfo class.
public  voidtestBeanIsBoundProperty()
     Checks that bean changes are reported.
public  voidtestCanGetModelWhileListeningToBeanChange()
     Sets up an environment that has thrown a ConcurrentModificationException in older releases.
public  voidtestCanGetModelWhileListeningToMulticastChange()
    
public  voidtestChangedState()
    
public  voidtestChangedStateFiresEvents()
    
public  voidtestConstructorAcceptsNullBean()
    
public  voidtestConstructorRejectsNonIdentityCheckingBeanChannel()
    
public  voidtestConstructorsAcceptAllBeansWhenNotObserving()
     Verifies that we can adapt observable and non-observable objects if we do not observe changes.
public  voidtestConstructorsAcceptToObserveObservables()
     Verifies that we can adapt and observe observables.
public  voidtestConstructorsAcceptsToObserveObjectsThatSupportBoundProperties()
     Verifies that we cannot observe non-observables.
public  voidtestConstructorsRejectToObserveObservables()
     Verifies that we cannot observe non-observables.
public  voidtestEqualBeanChangeFiresThreeBeanEvents()
    
public  voidtestIllegalPropertyAccess()
    
public  voidtestMulticastAndNamedPropertyChangeEvents()
    
public  voidtestMulticastFiresProperNewValue()
    
public  voidtestNamedBeanPropertyChange()
    
public  voidtestPropertyDescriptorCache()
     Checks that the cached PropertyDescriptor is available when needed.
public  voidtestReadOnlyCustomProperties()
    
public  voidtestReadOnlyProperties()
    
public  voidtestReadWriteCustomProperties()
    
public  voidtestReadWriteProperties()
    
public  voidtestReaderWriterSplittedInHierarchy()
     Verifies that the reader and writer can be located in different levels of a class hierarchy.
public  voidtestRejectNullPropertyName()
    
public  voidtestRejectsGetValueModelWithDifferentAccessors()
     Verifies that the BeanAdapter rejects attempts to get an adapting ValueModel by means of #getValueModel with different property accessor names.
public  voidtestSetAdapterValueSendsUpdates()
    
public  voidtestSetBean()
     Checks that #setBean changes the bean and moves the PropertyChangeListeners to the new bean.
public  voidtestSetBeanChangesReadWriteState()
     Tests that we can change the read/write state of the bean.
public  voidtestSetBeanOnWriteOnlyProperty()
     Tests that we can change the bean if we adapt a write-only property.
public  voidtestSetPropertySendsUpdates()
    
public  voidtestSetValueModelSendsUpdates()
    
public  voidtestUnnamedBeanPropertyChange()
    
public  voidtestVendsSameModel()
     Verifies that the factory method vends the same instance of the adapting model if called multiple times.
public  voidtestWriteConstrainedPropertyWithVeto()
     Checks the write access to a constrained property with veto.
public  voidtestWriteConstrainedPropertyWithoutVeto()
     Checks the write access to a constrained property without veto.
public  voidtestWriteOnlyCustomProperties()
    
public  voidtestWriteOnlyProperties()
    



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



testAbsentProperties
public void testAbsentProperties()(Code)



testBeanChangeFiresThreeBeanEvents
public void testBeanChangeFiresThreeBeanEvents()(Code)



testBeanChangeIgnoresNewBeanNull
public void testBeanChangeIgnoresNewBeanNull()(Code)



testBeanChangeIgnoresOldAndNewBeanNull
public void testBeanChangeIgnoresOldAndNewBeanNull()(Code)



testBeanChangeIgnoresOldBeanNull
public void testBeanChangeIgnoresOldBeanNull()(Code)



testBeanChangeSendsUpdates
public void testBeanChangeSendsUpdates()(Code)



testBeanInfoProperties
public void testBeanInfoProperties()(Code)
Tests access to properties that are described by a BeanInfo class.



testBeanIsBoundProperty
public void testBeanIsBoundProperty()(Code)
Checks that bean changes are reported.



testCanGetModelWhileListeningToBeanChange
public void testCanGetModelWhileListeningToBeanChange()(Code)
Sets up an environment that has thrown a ConcurrentModificationException in older releases. Basically, in a situation where the BeanAdapter iterates over all its internal property adapters, we add a new adapter and check if this fails.



testCanGetModelWhileListeningToMulticastChange
public void testCanGetModelWhileListeningToMulticastChange()(Code)



testChangedState
public void testChangedState()(Code)



testChangedStateFiresEvents
public void testChangedStateFiresEvents()(Code)



testConstructorAcceptsNullBean
public void testConstructorAcceptsNullBean()(Code)



testConstructorRejectsNonIdentityCheckingBeanChannel
public void testConstructorRejectsNonIdentityCheckingBeanChannel()(Code)



testConstructorsAcceptAllBeansWhenNotObserving
public void testConstructorsAcceptAllBeansWhenNotObserving()(Code)
Verifies that we can adapt observable and non-observable objects if we do not observe changes.



testConstructorsAcceptToObserveObservables
public void testConstructorsAcceptToObserveObservables()(Code)
Verifies that we can adapt and observe observables.



testConstructorsAcceptsToObserveObjectsThatSupportBoundProperties
public void testConstructorsAcceptsToObserveObjectsThatSupportBoundProperties()(Code)
Verifies that we cannot observe non-observables.



testConstructorsRejectToObserveObservables
public void testConstructorsRejectToObserveObservables()(Code)
Verifies that we cannot observe non-observables.



testEqualBeanChangeFiresThreeBeanEvents
public void testEqualBeanChangeFiresThreeBeanEvents()(Code)



testIllegalPropertyAccess
public void testIllegalPropertyAccess()(Code)



testMulticastAndNamedPropertyChangeEvents
public void testMulticastAndNamedPropertyChangeEvents()(Code)



testMulticastFiresProperNewValue
public void testMulticastFiresProperNewValue()(Code)



testNamedBeanPropertyChange
public void testNamedBeanPropertyChange()(Code)



testPropertyDescriptorCache
public void testPropertyDescriptorCache()(Code)
Checks that the cached PropertyDescriptor is available when needed.



testReadOnlyCustomProperties
public void testReadOnlyCustomProperties()(Code)



testReadOnlyProperties
public void testReadOnlyProperties()(Code)



testReadWriteCustomProperties
public void testReadWriteCustomProperties()(Code)



testReadWriteProperties
public void testReadWriteProperties()(Code)



testReaderWriterSplittedInHierarchy
public void testReaderWriterSplittedInHierarchy()(Code)
Verifies that the reader and writer can be located in different levels of a class hierarchy.



testRejectNullPropertyName
public void testRejectNullPropertyName()(Code)



testRejectsGetValueModelWithDifferentAccessors
public void testRejectsGetValueModelWithDifferentAccessors()(Code)
Verifies that the BeanAdapter rejects attempts to get an adapting ValueModel by means of #getValueModel with different property accessor names. In other words, for each bean property API users must use either BeanAdapter.getValueModel(String) or BeanAdapter.getValueModel(StringStringString) , not both. And all calls to the latter method must use the same getter and setter names for the same property name.

This test invokes both methods for the same property name with different getter and/or setter names and expects that the second call is rejected. The BeanAdapter is created without a bean set, to avoid that the BeanAdapter checks for a valid property.




testSetAdapterValueSendsUpdates
public void testSetAdapterValueSendsUpdates()(Code)



testSetBean
public void testSetBean()(Code)
Checks that #setBean changes the bean and moves the PropertyChangeListeners to the new bean.



testSetBeanChangesReadWriteState
public void testSetBeanChangesReadWriteState()(Code)
Tests that we can change the read/write state of the bean.



testSetBeanOnWriteOnlyProperty
public void testSetBeanOnWriteOnlyProperty()(Code)
Tests that we can change the bean if we adapt a write-only property. Changing the bean normally calls the property's getter to request the old value that is used in the fired PropertyChangeEvent.



testSetPropertySendsUpdates
public void testSetPropertySendsUpdates()(Code)



testSetValueModelSendsUpdates
public void testSetValueModelSendsUpdates()(Code)



testUnnamedBeanPropertyChange
public void testUnnamedBeanPropertyChange()(Code)



testVendsSameModel
public void testVendsSameModel()(Code)
Verifies that the factory method vends the same instance of the adapting model if called multiple times.



testWriteConstrainedPropertyWithVeto
public void testWriteConstrainedPropertyWithVeto()(Code)
Checks the write access to a constrained property with veto.



testWriteConstrainedPropertyWithoutVeto
public void testWriteConstrainedPropertyWithoutVeto()(Code)
Checks the write access to a constrained property without veto.



testWriteOnlyCustomProperties
public void testWriteOnlyCustomProperties()(Code)



testWriteOnlyProperties
public void testWriteOnlyProperties()(Code)



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