Java Doc for TestEventSource.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » event » 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 » Library » Apache commons configuration 1.4 src » org.apache.commons.configuration.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.event.TestEventSource

TestEventSource
public class TestEventSource extends TestCase (Code)
Test class for EventSource.
version:
   $Id: TestEventSource.java 495918 2007-01-13 16:33:02Z oheger $

Inner Class :static class TestListener implements ConfigurationListener,ConfigurationErrorListener
Inner Class :static class CountingEventSource extends EventSource implements Cloneable

Field Summary
final static  StringTEST_PROPNAME
     Constant for the event property name.
final static  ObjectTEST_PROPVALUE
     Constant for the event property value.
final static  intTEST_TYPE
     Constant for the event type used for testing.
 CountingEventSourcesource
     The object under test.


Method Summary
protected  voidsetUp()
    
public  voidtestAddConfigurationListener()
     Tests registering a new listener.
public  voidtestAddErrorListener()
     Tests registering a new error listener.
public  voidtestAddNullConfigurationListener()
     Tests adding an undefined configuration listener.
public  voidtestAddNullErrorListener()
     Tests adding an undefined error listener.
public  voidtestClone()
     Tests cloning an event source object.
public  voidtestFireError()
     Tests delivering an error event to a listener.
public  voidtestFireErrorNoListeners()
     Tests firering an error event if there are no error listeners.
public  voidtestFireEvent()
     Tests delivering an event to a listener.
public  voidtestFireEventNoDetails()
     Tests generating a detail event if detail events are not allowed.
public  voidtestFireEventNoListeners()
     Tests firering an event if there are no listeners.
public  voidtestGetConfigurationListenersAddNew()
     Tests that the collection returned by getConfigurationListeners() is really a snapshot.
public  voidtestGetConfigurationListenersUpdate()
     Tests whether the listeners list is read only.
public  voidtestGetErrorListenersUpdate()
     Tests whether the listeners list is read only.
public  voidtestInit()
     Tests a newly created source object.
public  voidtestRemoveConfigurationListener()
     Tests removing a listener.
public  voidtestRemoveErrorListener()
     Tests removing an error listener.
public  voidtestRemoveListenerInFireEvent()
     Tests whether an event listener can deregister itself in reaction of a delivered event.
public  voidtestRemoveNullConfigurationListener()
     Tests if a null listener can be removed.
public  voidtestRemoveNullErrorListener()
     Tests if a null error listener can be removed.
public  voidtestSetDetailEvents()
     Tests enabling and disabling the detail events flag.

Field Detail
TEST_PROPNAME
final static String TEST_PROPNAME(Code)
Constant for the event property name.



TEST_PROPVALUE
final static Object TEST_PROPVALUE(Code)
Constant for the event property value.



TEST_TYPE
final static int TEST_TYPE(Code)
Constant for the event type used for testing.



source
CountingEventSource source(Code)
The object under test.





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



testAddConfigurationListener
public void testAddConfigurationListener()(Code)
Tests registering a new listener.



testAddErrorListener
public void testAddErrorListener()(Code)
Tests registering a new error listener.



testAddNullConfigurationListener
public void testAddNullConfigurationListener()(Code)
Tests adding an undefined configuration listener. This should cause an exception.



testAddNullErrorListener
public void testAddNullErrorListener()(Code)
Tests adding an undefined error listener. This should cause an exception.



testClone
public void testClone() throws CloneNotSupportedException(Code)
Tests cloning an event source object. The registered listeners should not be registered at the clone.



testFireError
public void testFireError()(Code)
Tests delivering an error event to a listener.



testFireErrorNoListeners
public void testFireErrorNoListeners()(Code)
Tests firering an error event if there are no error listeners.



testFireEvent
public void testFireEvent()(Code)
Tests delivering an event to a listener.



testFireEventNoDetails
public void testFireEventNoDetails()(Code)
Tests generating a detail event if detail events are not allowed.



testFireEventNoListeners
public void testFireEventNoListeners()(Code)
Tests firering an event if there are no listeners.



testGetConfigurationListenersAddNew
public void testGetConfigurationListenersAddNew()(Code)
Tests that the collection returned by getConfigurationListeners() is really a snapshot. A later added listener must not be visible.



testGetConfigurationListenersUpdate
public void testGetConfigurationListenersUpdate()(Code)
Tests whether the listeners list is read only.



testGetErrorListenersUpdate
public void testGetErrorListenersUpdate()(Code)
Tests whether the listeners list is read only.



testInit
public void testInit()(Code)
Tests a newly created source object.



testRemoveConfigurationListener
public void testRemoveConfigurationListener()(Code)
Tests removing a listener.



testRemoveErrorListener
public void testRemoveErrorListener()(Code)
Tests removing an error listener.



testRemoveListenerInFireEvent
public void testRemoveListenerInFireEvent()(Code)
Tests whether an event listener can deregister itself in reaction of a delivered event.



testRemoveNullConfigurationListener
public void testRemoveNullConfigurationListener()(Code)
Tests if a null listener can be removed. This should be a no-op.



testRemoveNullErrorListener
public void testRemoveNullErrorListener()(Code)
Tests if a null error listener can be removed. This should be a no-op.



testSetDetailEvents
public void testSetDetailEvents()(Code)
Tests enabling and disabling the detail events flag.



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