Java Doc for View_ChangesTest.java in  » Apache-Harmony-Java-SE » javax-package » javax » swing » text » 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 » Apache Harmony Java SE » javax package » javax.swing.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.text.View_ChangesTest

View_ChangesTest
public class View_ChangesTest extends TestCase (Code)
Tests changes-related methods of View class.




Method Summary
public  voidcreateChangeEvent()
     Creates document event with type of CHANGE.
protected  voidsetUp()
     Sets up the test fixture for changes tests.
public  voidtestChangedUpdate01()
     The view has no children, and updateChildren is not called as well as other methods involved.
public  voidtestChangedUpdate02()
     The view has children and updateChildren returns false.
public  voidtestChangedUpdate03()
     The view has children and updateChildren returns true.
public  voidtestChangedUpdate04()
     As if attributes are changed in the range 7-18: the second paragraph (6-15), and the third one (15, 19).
public  voidtestChangedUpdate05()
     As if attributes are changed in the range 7-18: the second paragraph (6-15), and the third one (15, 19).
public  voidtestForwardUpdateToView()
     Tests forwardUpdateToView whether it calls {insert,remove,changed}Update depending on event type.
public  voidtestInsertUpdate01()
     The view has no children, and updateChildren is not called.
public  voidtestInsertUpdate02()
     The view has children and updateChildren returns false.
public  voidtestInsertUpdate03()
     The view has children and updateChildren returns true.
public  voidtestInsertUpdate04()
     Insert text so that structure changes occur at index of 2, while updateChildren returns true.
public  voidtestInsertUpdate05()
     No structural changes occurred to the root element.
public  voidtestInsertUpdate06()
     viewFactory parameter is null.
public  voidtestInsertUpdate07()
     updateChildren returns true.
public  voidtestInsertUpdate08()
     updateChildren returns false.
public  voidtestInsertUpdate09()
     In this test view representing line is replaced with two view which represent parts of the line Element.

updateChildren returns true, i.e.

public  voidtestInsertUpdate10()
     In this test view representing line is replaced with two view which represent parts of the line Element. (Same as in testInsertUpdate09 except for the below).

updateChildren returns false, i.e.

public  voidtestRemoveUpdate01()
     The view has no children, and updateChildren is not called as well as other methods involved.
public  voidtestRemoveUpdate02()
     The view has children and updateChildren returns false.
public  voidtestRemoveUpdate03()
     The view has children and updateChildren returns true.
public  voidtestRemoveUpdate04()
     The view has children and updateChildren returns true.
public  voidtestRemoveUpdate05()
     The view has children and updateChildren returns true.
public  voidtestRemoveUpdate06()
     The view has children and updateChildren returns false.
public  voidtestRemoveUpdate07()
     This test-method is similar to testRemoveUpdate02, but the text removed is in the first paragraph.
public  voidtestRemoveUpdate08()
     This test-method is similar to testRemoveUpdate03, but the text removed is in the first paragraph.
public  voidtestUpdateLayout01()
     Tests updateLayout when element change is not null.
public  voidtestUpdateLayout02()
     Tests updateLayout when element change is null: seems like it has no side effects and probably does nothing in this case.



Method Detail
createChangeEvent
public void createChangeEvent() throws BadLocationException(Code)
Creates document event with type of CHANGE.



setUp
protected void setUp() throws Exception(Code)
Sets up the test fixture for changes tests.



testChangedUpdate01
public void testChangedUpdate01() throws BadLocationException(Code)
The view has no children, and updateChildren is not called as well as other methods involved.



testChangedUpdate02
public void testChangedUpdate02() throws BadLocationException(Code)
The view has children and updateChildren returns false.



testChangedUpdate03
public void testChangedUpdate03() throws BadLocationException(Code)
The view has children and updateChildren returns true.



testChangedUpdate04
public void testChangedUpdate04() throws BadLocationException(Code)
As if attributes are changed in the range 7-18: the second paragraph (6-15), and the third one (15, 19). updateChilren returns true (child views represent entire elements).



testChangedUpdate05
public void testChangedUpdate05() throws BadLocationException(Code)
As if attributes are changed in the range 7-18: the second paragraph (6-15), and the third one (15, 19). updateChilren returns false (child views represent entire elements).



testForwardUpdateToView
public void testForwardUpdateToView()(Code)
Tests forwardUpdateToView whether it calls {insert,remove,changed}Update depending on event type.



testInsertUpdate01
public void testInsertUpdate01() throws BadLocationException(Code)
The view has no children, and updateChildren is not called.



testInsertUpdate02
public void testInsertUpdate02() throws BadLocationException(Code)
The view has children and updateChildren returns false. (Views may represent parts of an Element.)



testInsertUpdate03
public void testInsertUpdate03() throws BadLocationException(Code)
The view has children and updateChildren returns true. (Views represent entire Elements.)



testInsertUpdate04
public void testInsertUpdate04() throws BadLocationException(Code)
Insert text so that structure changes occur at index of 2, while updateChildren returns true. The result is that changes must be forwarded to the first two view children.



testInsertUpdate05
public void testInsertUpdate05() throws BadLocationException(Code)
No structural changes occurred to the root element. updateChildren must not be called in this case.



testInsertUpdate06
public void testInsertUpdate06() throws BadLocationException(Code)
viewFactory parameter is null.



testInsertUpdate07
public void testInsertUpdate07() throws BadLocationException(Code)
updateChildren returns true. (Views represent entire elements.)



testInsertUpdate08
public void testInsertUpdate08() throws BadLocationException(Code)
updateChildren returns false. (Views represent partial elements.)



testInsertUpdate09
public void testInsertUpdate09() throws BadLocationException(Code)
In this test view representing line is replaced with two view which represent parts of the line Element.

updateChildren returns true, i.e. it is considered a view represents an entire element.




testInsertUpdate10
public void testInsertUpdate10() throws BadLocationException(Code)
In this test view representing line is replaced with two view which represent parts of the line Element. (Same as in testInsertUpdate09 except for the below).

updateChildren returns false, i.e. it is considered a view may represent a portion of element.




testRemoveUpdate01
public void testRemoveUpdate01() throws BadLocationException(Code)
The view has no children, and updateChildren is not called as well as other methods involved.



testRemoveUpdate02
public void testRemoveUpdate02() throws BadLocationException(Code)
The view has children and updateChildren returns false.

Exactly one element is removed.




testRemoveUpdate03
public void testRemoveUpdate03() throws BadLocationException(Code)
The view has children and updateChildren returns true.

Exactly one element is removed.




testRemoveUpdate04
public void testRemoveUpdate04() throws BadLocationException(Code)
The view has children and updateChildren returns true.

Text removed is within one element.




testRemoveUpdate05
public void testRemoveUpdate05() throws BadLocationException(Code)
The view has children and updateChildren returns true.

New line character is removed.




testRemoveUpdate06
public void testRemoveUpdate06() throws BadLocationException(Code)
The view has children and updateChildren returns false.

New line character is removed.




testRemoveUpdate07
public void testRemoveUpdate07() throws BadLocationException(Code)
This test-method is similar to testRemoveUpdate02, but the text removed is in the first paragraph.

Exactly one element is removed.




testRemoveUpdate08
public void testRemoveUpdate08() throws BadLocationException(Code)
This test-method is similar to testRemoveUpdate03, but the text removed is in the first paragraph.

Exactly one element is removed.




testUpdateLayout01
public void testUpdateLayout01() throws BadLocationException(Code)
Tests updateLayout when element change is not null.



testUpdateLayout02
public void testUpdateLayout02() throws BadLocationException(Code)
Tests updateLayout when element change is null: seems like it has no side effects and probably does nothing in this case.



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