Java Doc for EditorTestCase.java in  » IDE-Netbeans » java » lib » 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 » java » lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


lib.EditorTestCase

All known Subclasses:   org.netbeans.test.java.editor.completiongui.GuiTest,  org.netbeans.test.java.editor.formatting.BasicTest,  org.netbeans.test.java.editor.codegeneration.GenerateCode,  code_folding.CodeFoldingTest,  lib.JavaEditorTestCase,  editor_actions.EditorActionsTest,
EditorTestCase
public class EditorTestCase extends JellyTestCase (Code)

author:
   Petr Felenda, Martin Roskanin

Inner Class :public static interface ValueResolver

Field Summary
final public static  intWAIT_MAX_MILIS_FOR_CLIPBOARD
    

Constructor Summary
public  EditorTestCase(String testMethodName)
     Creates a new instance of EditorTestCase.

Initializes default sample file name (package and name) so that EditorTestCase.openDefaultSampleFile() can be used.
The rule for naming is the same like for golden files i.e.


Method Summary
protected  voidcloseDefaultProject()
     Close the default project.
public  voidcloseDialog(String title)
    
public  voidcloseFile()
     Close file in open project.
public  voidcloseFileWithDiscard()
     Close file in open project.
public  voidcloseFileWithSave()
     Close file in open project.
protected  voidcloseProject(String projectName)
    
protected  voidcompareReferenceFiles(Document testDoc)
     Write the text of the passed document to the ref file and compare the created .ref file with the golden file.
protected  voidcutCopyViaStrokes(JEditorPaneOperator txtOper, int key, int mod)
    
protected  ValueResolvergetClipboardResolver(JEditorPaneOperator txtOper, Transferable oldClipValue)
    
protected  StringgetDefaultProjectName()
     Get the default project name to be used in openDefaultProject() .
protected  EditorOperatorgetDefaultSampleEditorOperator()
    
final protected  StringgetDefaultSampleName()
    
final protected  StringgetDefaultSamplePackage()
    
protected  voidopenDefaultProject()
     Open default project determined by EditorTestCase.getDefaultProjectName() .
protected  voidopenDefaultSampleFile()
    
public  voidopenFile(String treeSubPackagePathToFile, String fileName)
     Open file in open project
Parameters:
  treeSubPath - e.g.
public  voidopenFile()
    
public  voidopenProject(String projectName)
     Open project.
protected  voidopenSourceFile(String dir, String srcName)
     Open a source file located in the "Source packages" in the editor.
protected  voidpasteViaStrokes(ComponentOperator compOper, int key, int mod, ValueResolver resolver)
    
public  voidwaitForChildNode(String parentPath, String childName)
     Waits for a child node to be shown in the IDE.
public static  booleanwaitMaxMilisForValue(int maxMiliSeconds, ValueResolver resolver, Object requiredValue)
     Method will wait max.

Field Detail
WAIT_MAX_MILIS_FOR_CLIPBOARD
final public static int WAIT_MAX_MILIS_FOR_CLIPBOARD(Code)




Constructor Detail
EditorTestCase
public EditorTestCase(String testMethodName)(Code)
Creates a new instance of EditorTestCase.

Initializes default sample file name (package and name) so that EditorTestCase.openDefaultSampleFile() can be used.
The rule for naming is the same like for golden files i.e. package corresponds to the class name and the file name corresponds to test method name.
Parameters:
  testMethodName - name of the test methodthat should be executed.





Method Detail
closeDefaultProject
protected void closeDefaultProject()(Code)
Close the default project.



closeDialog
public void closeDialog(String title)(Code)
Close dialog with added title
Parameters:
  title - dialog title



closeFile
public void closeFile()(Code)
Close file in open project.



closeFileWithDiscard
public void closeFileWithDiscard()(Code)
Close file in open project.



closeFileWithSave
public void closeFileWithSave()(Code)
Close file in open project.



closeProject
protected void closeProject(String projectName)(Code)



compareReferenceFiles
protected void compareReferenceFiles(Document testDoc)(Code)
Write the text of the passed document to the ref file and compare the created .ref file with the golden file.
If the two files differ the test fails and generates the diff file.
Parameters:
  testDoc - document to be written to the .ref file and compared.



cutCopyViaStrokes
protected void cutCopyViaStrokes(JEditorPaneOperator txtOper, int key, int mod)(Code)



getClipboardResolver
protected ValueResolver getClipboardResolver(JEditorPaneOperator txtOper, Transferable oldClipValue)(Code)



getDefaultProjectName
protected String getDefaultProjectName()(Code)
Get the default project name to be used in openDefaultProject() .
The default value is "editor_test". default project name



getDefaultSampleEditorOperator
protected EditorOperator getDefaultSampleEditorOperator()(Code)



getDefaultSampleName
final protected String getDefaultSampleName()(Code)



getDefaultSamplePackage
final protected String getDefaultSamplePackage()(Code)



openDefaultProject
protected void openDefaultProject()(Code)
Open default project determined by EditorTestCase.getDefaultProjectName() .



openDefaultSampleFile
protected void openDefaultSampleFile()(Code)



openFile
public void openFile(String treeSubPackagePathToFile, String fileName)(Code)
Open file in open project
Parameters:
  treeSubPath - e.g. "Source Packages|test","sample1"



openFile
public void openFile()(Code)
Open the default file in open project



openProject
public void openProject(String projectName)(Code)
Open project. Before opening the project is checked opened projects.
Parameters:
  projectName - is name of the project stored in .../editor/test/qa-functional/data/ directory.



openSourceFile
protected void openSourceFile(String dir, String srcName)(Code)
Open a source file located in the "Source packages" in the editor.
Parameters:
  dir - directory path with "|" separator.
Parameters:
  srcName - source name without suffix.



pasteViaStrokes
protected void pasteViaStrokes(ComponentOperator compOper, int key, int mod, ValueResolver resolver)(Code)



waitForChildNode
public void waitForChildNode(String parentPath, String childName)(Code)
Waits for a child node to be shown in the IDE. Needed for test stabilization on slow machines.
Parameters:
  parentPath - full path for parent, | used as a delimiter
Parameters:
  childName - name of the child node



waitMaxMilisForValue
public static boolean waitMaxMilisForValue(int maxMiliSeconds, ValueResolver resolver, Object requiredValue)(Code)
Method will wait max. maxMiliSeconds miliseconds for the requiredValue gathered by resolver .
Parameters:
  maxMiliSeconds - maximum time to wait for requiredValue
Parameters:
  resolver - resolver, which is gathering an actual value
Parameters:
  requiredValue - if resolver value equals requiredValue the wait cycle is finished false if the given maxMiliSeconds time elapsed and the requiredValue wasn't obtained



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