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

PlainDocumentTest
public class PlainDocumentTest extends TestCase (Code)
Tests functionality of PlainDocument class.




Method Summary
protected  voidsetUp()
    
public  voidtestCreateDefaultRoot01()
     Generic assertions upon element return by createDefaultRoot.
public  voidtestCreateDefaultRoot02()
     Tests what will happen if createDefaultRoot will not return instance of AbstractDocument.BranchElement but something else, for example AbstractDocument.LeafElement.
public  voidtestCreateDefaultRoot03()
    
public  voidtestGetDefaultRootElement()
    
public  voidtestGetParagraphElement01()
     Tests getParagraphElement when calling on empty document.
public  voidtestGetParagraphElement02()
     Tests getParagraphElement when calling on non-empty document.
public  voidtestInsertString01()
     General text insertion checks.
public  voidtestInsertString02()
     Tests handling of filterNewLine property.
public  voidtestInsertUpdate01()
     Inserts three lines of text into empty document.
public  voidtestInsertUpdate02()
     Inserts text (not contains line breaks) into start of a line.
public  voidtestInsertUpdate03()
     Inserts text (does not contain line breaks) into end (just before the break) of a line and into a position in a line.
public  voidtestInsertUpdate04()
     Inserts text (contains text only before line break) into a position in a line (neither start, nor end).
public  voidtestInsertUpdate05()
     Inserts text (contains text before and after line break) into a position in a line (neither start, nor end).
public  voidtestInsertUpdate06()
     Inserts text (contains text only after line break) into a position in a line (neither start, nor end).
public  voidtestInsertUpdate07()
     Inserts text (contains text only after line break) into start a line (neither start, nor end).
public  voidtestInsertUpdate08()
    
public  voidtestPlainDocument()
    
public  voidtestPlainDocumentContent()
    
public  voidtestRemoveUpdate01()
    
public  voidtestRemoveUpdate02()
     Removes text just after line break.
public  voidtestRemoveUpdate03()
     Removes text just before line break.
public  voidtestRemoveUpdate04()
     Test calling remove with invalid parameters.
public  voidtestRemoveUpdate05()
    
public  voidtestRemoveUpdate06()
    



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



testCreateDefaultRoot01
public void testCreateDefaultRoot01() throws BadLocationException(Code)
Generic assertions upon element return by createDefaultRoot.



testCreateDefaultRoot02
public void testCreateDefaultRoot02() throws BadLocationException(Code)
Tests what will happen if createDefaultRoot will not return instance of AbstractDocument.BranchElement but something else, for example AbstractDocument.LeafElement.



testCreateDefaultRoot03
public void testCreateDefaultRoot03()(Code)



testGetDefaultRootElement
public void testGetDefaultRootElement()(Code)



testGetParagraphElement01
public void testGetParagraphElement01()(Code)
Tests getParagraphElement when calling on empty document.



testGetParagraphElement02
public void testGetParagraphElement02() throws BadLocationException(Code)
Tests getParagraphElement when calling on non-empty document.



testInsertString01
public void testInsertString01() throws BadLocationException(Code)
General text insertion checks. Includes checks for lineLimitAttribute property.



testInsertString02
public void testInsertString02() throws BadLocationException(Code)
Tests handling of filterNewLine property.



testInsertUpdate01
public void testInsertUpdate01() throws BadLocationException(Code)
Inserts three lines of text into empty document.



testInsertUpdate02
public void testInsertUpdate02() throws BadLocationException(Code)
Inserts text (not contains line breaks) into start of a line.



testInsertUpdate03
public void testInsertUpdate03() throws BadLocationException(Code)
Inserts text (does not contain line breaks) into end (just before the break) of a line and into a position in a line.



testInsertUpdate04
public void testInsertUpdate04() throws BadLocationException(Code)
Inserts text (contains text only before line break) into a position in a line (neither start, nor end).



testInsertUpdate05
public void testInsertUpdate05() throws BadLocationException(Code)
Inserts text (contains text before and after line break) into a position in a line (neither start, nor end).



testInsertUpdate06
public void testInsertUpdate06() throws BadLocationException(Code)
Inserts text (contains text only after line break) into a position in a line (neither start, nor end).



testInsertUpdate07
public void testInsertUpdate07() throws BadLocationException(Code)
Inserts text (contains text only after line break) into start a line (neither start, nor end).



testInsertUpdate08
public void testInsertUpdate08() throws BadLocationException(Code)



testPlainDocument
public void testPlainDocument()(Code)



testPlainDocumentContent
public void testPlainDocumentContent()(Code)



testRemoveUpdate01
public void testRemoveUpdate01() throws BadLocationException(Code)
Removes several lines at once and then portion of text within a line (not on line boundary)



testRemoveUpdate02
public void testRemoveUpdate02() throws BadLocationException(Code)
Removes text just after line break.



testRemoveUpdate03
public void testRemoveUpdate03() throws BadLocationException(Code)
Removes text just before line break.



testRemoveUpdate04
public void testRemoveUpdate04()(Code)
Test calling remove with invalid parameters.



testRemoveUpdate05
public void testRemoveUpdate05() throws BadLocationException(Code)



testRemoveUpdate06
public void testRemoveUpdate06() throws Exception(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.