Java Doc for CompletionTest.java in  » IDE-Netbeans » web.core » org » netbeans » test » syntax » 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 » IDE Netbeans » web.core » org.netbeans.test.syntax 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.test.syntax.CompletionTest

All known Subclasses:   org.netbeans.test.syntax.IndentationTest,  org.netbeans.test.syntax.AutoCompletionTest,  org.netbeans.test.syntax.J2EETest,  org.netbeans.test.syntax.ReformatingTest,  org.netbeans.test.syntax.CssCompletionTest,
CompletionTest
public class CompletionTest extends JellyTestCase (Code)
Test goes throught files and looking for CC Test Steps. The CC Test Steps are writen in document body as three lines: JSP comments which start with '<%--CC' prefix, where:
  • first line contains ccPrefix with optional '|' character which represents cursor position
  • second line contains ccChoice item which will be used for CC substitution
  • third line contains ccResult
For example:

<%--CC
 <%@ taglib |
 uri
 <%@ taglib uri=""
 --%>
 

does:

  • inserts '<%@ taglib ' string into new line
  • invokes CC
  • dumps Completion Query Result
  • choses "uri" item from the query result and substitute it
  • checks if subtituted line is: '<%@ taglib uri=""'
  • undoes all changes

author:
   ms113234

Inner Class :protected static class TestStep

Field Summary
final protected static  ListJSP_EXTS
    
final protected static  ListJS_EXTS
    
final protected static  ListXML_EXTS
    
protected  booleandebug
    
protected  FileObjecttestFileObj
    

Constructor Summary
public  CompletionTest(String name, FileObject testFileObj)
    

Method Summary
protected  voidassertInstanceOf(Class expectedType, Object actual)
    
protected  booleandumpCompletion(CompletionJListOperator comp, TestStep step, JEditorPane editor, boolean printDirectly)
    
protected  StringdumpToken(TokenItem tokenItem)
    
protected  voidending()
    
protected  voidexec(JEditorPane editor, TestStep step)
    
protected  MethodfindMethod(Class clazz, String name, Class[] paramTypes)
    
public static  voidmain(java.lang.String[] args)
    
public static  BaseDocumentopenFile(FileObject fileObject)
    
protected  voidrun(JEditorPane editor, List<TestStep> steps)
    
protected static  voidrunInAWT(Runnable r)
    
public  voidrunTest()
    
public  voidsetUp()
    
public static  Testsuite()
    
protected  voidtest(FileObject fileObj, String stepStart, String stepEnd, boolean ignoreComment)
    
protected  voidwaitTypingFinished(BaseDocument doc)
    

Field Detail
JSP_EXTS
final protected static List JSP_EXTS(Code)



JS_EXTS
final protected static List JS_EXTS(Code)



XML_EXTS
final protected static List XML_EXTS(Code)



debug
protected boolean debug(Code)



testFileObj
protected FileObject testFileObj(Code)




Constructor Detail
CompletionTest
public CompletionTest(String name, FileObject testFileObj)(Code)
Need to be defined because of JUnit




Method Detail
assertInstanceOf
protected void assertInstanceOf(Class expectedType, Object actual)(Code)



dumpCompletion
protected boolean dumpCompletion(CompletionJListOperator comp, TestStep step, JEditorPane editor, boolean printDirectly) throws Exception(Code)

Parameters:
  printDirectly - if to print directly whether the selected code completion item was found
throws:
  java.lang.Exception -



dumpToken
protected String dumpToken(TokenItem tokenItem)(Code)



ending
protected void ending() throws Exception(Code)



exec
protected void exec(JEditorPane editor, TestStep step) throws Exception(Code)



findMethod
protected Method findMethod(Class clazz, String name, Class[] paramTypes)(Code)



main
public static void main(java.lang.String[] args)(Code)
Use for execution inside IDE



openFile
public static BaseDocument openFile(FileObject fileObject) throws Exception(Code)



run
protected void run(JEditorPane editor, List<TestStep> steps) throws Exception(Code)



runInAWT
protected static void runInAWT(Runnable r)(Code)



runTest
public void runTest() throws Exception(Code)



setUp
public void setUp()(Code)



suite
public static Test suite()(Code)



test
protected void test(FileObject fileObj, String stepStart, String stepEnd, boolean ignoreComment) throws Exception(Code)



waitTypingFinished
protected void waitTypingFinished(BaseDocument doc)(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.