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


lib.PropertiesEditorTestCase

All known Subclasses:   org.netbeans.properties.jelly2tests.suites.creating_properties_file.CreatingPropertiesFileFromMainWindow2,  org.netbeans.properties.jelly2tests.suites.creating_properties_file.CreatingPropertiesFileFromMainWindow1,  org.netbeans.properties.jelly2tests.suites.creating_properties_file.CreatingPropertiesFileFromExplorer1,  org.netbeans.properties.jelly2tests.suites.creating_properties_file.CreatingPropertiesFileFromExplorer2,
PropertiesEditorTestCase
public class PropertiesEditorTestCase extends JellyTestCase (Code)
Class implementing all necessary methods for handling Property sheet in Editor window. This class is used for automated tests of properties module.
author:
   Petr Felenda ( e-mail petr.felenda@sun.com )
version:
   1


Field Summary
final protected  StringWIZARD_CATEGORY
    
final protected  StringWIZARD_CATEGORY_FILE
    
final protected  StringWIZARD_DEFAULT_PROPERTIES_FILE_NAME
    
final protected  StringWIZARD_FILE_TYPE
    
protected  StringdefaultPackage
    
final protected static  StringdefaultProjectName
    
protected  StringmenuSeparator
    
protected  StringtreeSeparator
    

Constructor Summary
public  PropertiesEditorTestCase(String testMethodName)
     This constructor only creates operator's object and then does nothing.

Method Summary
public  voidaddLocaleDialogClickCancelButton()
     Clicks to 'Cancel' button in 'Add Locale...' dialog.
public  voidaddLocaleDialogClickHelpButton()
     Clicks to 'Help' button in 'Add Locale...' dialog.
public  voidaddLocaleDialogClickOkButtonNoBlock()
     Clicks to 'Ok' button in 'Add Locale...' dialog.
public  voidaddLocaleDialogFill(String languageCode, String countryCode, String variant, Node filesystemNode, String fileName)
     Fills values to 'Add Locale...' dialog.
public  intcheckEditorTabCount()
    
public  voidcheckLocalesInExplorer(java.lang.String[] locales, Node filesystemNode, java.lang.String fileName)
    
public  voidcheckPropertiesFileIntegrityInClassicEditor(String fileName)
    
public  voidcheckPropertiesInSheet(String fileName, String key, String value, String comment, int rowOfCheckedProperty, int localeCount, int rowCount)
     There will be found adequte key in property sheet and then will be checked value and comment.
public  voidcloseFiles()
     This close all files in editor.
public  voidcloseHelp()
     Closes 'Help' window.
public  voidclosePropertiesFile(String fileName)
     This closes properties file.
public  voidconfirmationDeleteteLocaleDialogClickNo()
    
public  voidconfirmationDeleteteLocaleDialogClickYes()
    
public  voidconfirmationDeleteteMoreLocalesDialogClickYes()
    
public  voidcreateNewPropertiesFile(Node node)
     It creates new property file.
public  voidcreateNewPropertiesFileAndOpenInClassicEditor(Node node, String fileName)
    
public  voidcustomizeLocalesDialogClickAddLocaleButton()
     Clicks to 'Add Locale...' button in customizer.
public  voidcustomizeLocalesDialogClickCloseButton()
     Clicks to 'Close' button in customizer.
public  voidcustomizeLocalesDialogClickHelpButton()
     Clicks to 'Help' button in customizer.
public  voidcustomizeLocalesDialogClickRemoveLocaleButton()
     Clicks to 'Remove Locale' button in customizer.
public  booleancustomizeLocalesDialogIsEnabledRemoveLocaleButton()
     This checks if has been selected 'Remove Locale' button.
public  voidcustomizeLocalesDialogSelectLocale(int row)
    
public  voidcustomizePropertiesDialogClickAddKeyButton()
    
public  voidcustomizePropertiesDialogClickCloseButton()
    
public  voidcustomizePropertiesDialogClickHelpButton()
    
public  voidcustomizePropertiesDialogClickRemovePropertyButton()
    
public  booleancustomizePropertiesDialogIsEnableRemovePropertyButton()
    
public  voidcustomizePropertiesDialogSelectProperty(int row)
    
public  voiddeleteLocaleFromExplorer(Node fileNode, String path)
    
public  voiddeleteMoreLocalesInExplorer(String[] Languages, String[] Countres, String[] Varians, Node fileNode, String path_to_group)
    
public  voiddeletePropertiesFileFromExplorer(Node filesystemNode, String filePath)
     This deletes properties file from disk.
public  voiderrorDialogClickOkButton()
     Closes 'Error' dialog.
public  booleanexistsFileInEditor(String fileName)
     Check if file exists in Editor.
public  booleanexistsFileInExplorer(String packageName, String fileName)
    
public  voidexplorerSelectPath(String treePath, Node filesystemNode)
    
protected  NodegetDefaultPackageNode()
    
protected  NodegetNode(String packageName)
    
public  intgetPropertiesFileItemsCount(String fileName)
     There will be counted rows in property sheet in properties editor.
public  voidnewPropertyDialogClickCancelButton()
     Closes 'New property' dialog.
public  voidnewPropertyDialogClickCloseButton()
     This closes 'New property' dialog.
public  voidnewPropertyDialogClickHelpButton()
     It clicks on 'Help' button in 'New property' dialog.
public  voidnewPropertyDialogClickOkButtonNoBlock()
     This closes dialog as in previous method, but there is used no block action for closing dialog.
public  voidnewPropertyDialogFill(String fileName, String key, String value, String comment)
     This fill three textafields in 'New property' dialog.
public  voidopenAddLocaleDialogFromExplorer(Node filesystemNode, String filePath)
    
public  voidopenAddPropertyDialogFromExplorer(Node filesystemNode, String path)
     Opens 'Add Property' dialog from explorer.
public  voidopenCustomizeLocalesDialogFromExplorer(Node filesystemNode, String path)
     Opens Customizer dialog.
public  voidopenCustomizePropertiesDialogFromExplorer(Node fileNode, String path)
    
protected  voidopenDefaultProject()
    
public  voidopenExistedPropertiesFile(String treeSubPackagePathToFile, String fileName)
     This method opens file in editor.
public  voidopenExistedPropetiesFileInClassicEditor(Node filesystemNode, String filePath)
     This method opens file in editor.
protected  voidopenProject(String projectName)
     This method open project.
public  voidpropertiesEditorClickNewPropertyButton(String fileName)
    
public  voidpropertiesEditorClickRemovePropertyButton(String fileName)
     This pushs 'Remove property' button in properties editor form.
public  voidpropertiesEditorCloseFromTabPane()
     This opens popup menu over tab in properties file and chooses close item from it.
public  voidpropertiesWindowChangeProperty(String objectName, String propertyName, String newValue)
    
public  voidquestionDialogClickCancelButton()
     Clicks to 'Cancel' button in 'Question' dialog.
public  voidquestionDialogClickDiscardButton()
    
public  voidquestionDialogClickOkButton()
     Clicks to button 'Ok' in Quiestion dialog.
public  voidrequestFocusEditorPane(String nameOfTab)
    
public  voidselectPropertiesFileItem(String fileName, int rowNumber)
     This selectes row in sheet of properties in properties editor.
public  voidtableViewClickTo(String fileName, int row, int column)
    

Field Detail
WIZARD_CATEGORY
final protected String WIZARD_CATEGORY(Code)



WIZARD_CATEGORY_FILE
final protected String WIZARD_CATEGORY_FILE(Code)



WIZARD_DEFAULT_PROPERTIES_FILE_NAME
final protected String WIZARD_DEFAULT_PROPERTIES_FILE_NAME(Code)



WIZARD_FILE_TYPE
final protected String WIZARD_FILE_TYPE(Code)



defaultPackage
protected String defaultPackage(Code)



defaultProjectName
final protected static String defaultProjectName(Code)



menuSeparator
protected String menuSeparator(Code)



treeSeparator
protected String treeSeparator(Code)




Constructor Detail
PropertiesEditorTestCase
public PropertiesEditorTestCase(String testMethodName)(Code)
This constructor only creates operator's object and then does nothing.




Method Detail
addLocaleDialogClickCancelButton
public void addLocaleDialogClickCancelButton()(Code)
Clicks to 'Cancel' button in 'Add Locale...' dialog.



addLocaleDialogClickHelpButton
public void addLocaleDialogClickHelpButton()(Code)
Clicks to 'Help' button in 'Add Locale...' dialog.



addLocaleDialogClickOkButtonNoBlock
public void addLocaleDialogClickOkButtonNoBlock()(Code)
Clicks to 'Ok' button in 'Add Locale...' dialog.



addLocaleDialogFill
public void addLocaleDialogFill(String languageCode, String countryCode, String variant, Node filesystemNode, String fileName) throws Exception(Code)
Fills values to 'Add Locale...' dialog. ( use null values if nothig to be filed )
Parameters:
  languageCode - is Language Code e.g. cs, de, en or other staff
Parameters:
  countryCode - is Country Code e.g. CZ, DE, US or other stuff
Parameters:
  variant - is variant of locale, this should be empty or should will have value e.g. EURO
Parameters:
  filesystemNode - is node of tree in explorer
Parameters:
  fileName - is name of file
throws:
  Exception - if an appeared



checkEditorTabCount
public int checkEditorTabCount()(Code)



checkLocalesInExplorer
public void checkLocalesInExplorer(java.lang.String[] locales, Node filesystemNode, java.lang.String fileName) throws Exception(Code)



checkPropertiesFileIntegrityInClassicEditor
public void checkPropertiesFileIntegrityInClassicEditor(String fileName) throws Exception(Code)
This method check pleces of keys, values and comments in properties file (in text mode)
throws:
  Exception - if an appeared



checkPropertiesInSheet
public void checkPropertiesInSheet(String fileName, String key, String value, String comment, int rowOfCheckedProperty, int localeCount, int rowCount) throws Exception(Code)
There will be found adequte key in property sheet and then will be checked value and comment. If kye will not found then method fail.
Parameters:
  key - which will be compared with key in properties file
Parameters:
  value - of key which will be compared with value in properties file
Parameters:
  comment - of key witch will be compared with comment in propertiies file
Parameters:
  rowOfCheckedProperty - is number of compared propererty in properties file (row position >=0)
Parameters:
  localeCount - is count of locales in properties file, new file has 1 locale (default)
Parameters:
  rowCount - is count of rows (properties) in properties file
throws:
  Exception - if an appeared



closeFiles
public void closeFiles()(Code)
This close all files in editor. This method should be called in teardown method



closeHelp
public void closeHelp()(Code)
Closes 'Help' window.



closePropertiesFile
public void closePropertiesFile(String fileName)(Code)
This closes properties file. There is used popup menu in Explorer.
Parameters:
  filesystemNode - of tree, where file is stored ( without file name )
Parameters:
  filePath - of file to delete



confirmationDeleteteLocaleDialogClickNo
public void confirmationDeleteteLocaleDialogClickNo()(Code)



confirmationDeleteteLocaleDialogClickYes
public void confirmationDeleteteLocaleDialogClickYes()(Code)



confirmationDeleteteMoreLocalesDialogClickYes
public void confirmationDeleteteMoreLocalesDialogClickYes()(Code)



createNewPropertiesFile
public void createNewPropertiesFile(Node node)(Code)
It creates new property file. There is used popup menu from explorer.
Parameters:
  filesystemNode - node of tree, where file will be created
Parameters:
  filePath - of file without extension



createNewPropertiesFileAndOpenInClassicEditor
public void createNewPropertiesFileAndOpenInClassicEditor(Node node, String fileName)(Code)
Method createNewPropertiesFileToClassicEditor()
Parameters:
  filesystemNode - is node of filesystem in which is file located in Explorer
Parameters:
  fileName - is name of file



customizeLocalesDialogClickAddLocaleButton
public void customizeLocalesDialogClickAddLocaleButton()(Code)
Clicks to 'Add Locale...' button in customizer.



customizeLocalesDialogClickCloseButton
public void customizeLocalesDialogClickCloseButton()(Code)
Clicks to 'Close' button in customizer.



customizeLocalesDialogClickHelpButton
public void customizeLocalesDialogClickHelpButton()(Code)
Clicks to 'Help' button in customizer.



customizeLocalesDialogClickRemoveLocaleButton
public void customizeLocalesDialogClickRemoveLocaleButton()(Code)
Clicks to 'Remove Locale' button in customizer.



customizeLocalesDialogIsEnabledRemoveLocaleButton
public boolean customizeLocalesDialogIsEnabledRemoveLocaleButton()(Code)
This checks if has been selected 'Remove Locale' button. true if locale button has been selected



customizeLocalesDialogSelectLocale
public void customizeLocalesDialogSelectLocale(int row)(Code)
Selects focus adequate to locale in customizer
Parameters:
  row - of locale you wish to select



customizePropertiesDialogClickAddKeyButton
public void customizePropertiesDialogClickAddKeyButton()(Code)



customizePropertiesDialogClickCloseButton
public void customizePropertiesDialogClickCloseButton()(Code)



customizePropertiesDialogClickHelpButton
public void customizePropertiesDialogClickHelpButton()(Code)



customizePropertiesDialogClickRemovePropertyButton
public void customizePropertiesDialogClickRemovePropertyButton()(Code)



customizePropertiesDialogIsEnableRemovePropertyButton
public boolean customizePropertiesDialogIsEnableRemovePropertyButton()(Code)



customizePropertiesDialogSelectProperty
public void customizePropertiesDialogSelectProperty(int row)(Code)



deleteLocaleFromExplorer
public void deleteLocaleFromExplorer(Node fileNode, String path)(Code)



deleteMoreLocalesInExplorer
public void deleteMoreLocalesInExplorer(String[] Languages, String[] Countres, String[] Varians, Node fileNode, String path_to_group)(Code)



deletePropertiesFileFromExplorer
public void deletePropertiesFileFromExplorer(Node filesystemNode, String filePath)(Code)
This deletes properties file from disk. There is used popup menu in Explorer.
Parameters:
  filesystemNode - of tree, where file is stored ( without file name )
Parameters:
  filePath - of file to delete



errorDialogClickOkButton
public void errorDialogClickOkButton()(Code)
Closes 'Error' dialog. This dialog appeared after property is added with existed key. (Key which exists in properties file)



existsFileInEditor
public boolean existsFileInEditor(String fileName)(Code)
Check if file exists in Editor. This method compare the title name of tab in editor window.



existsFileInExplorer
public boolean existsFileInExplorer(String packageName, String fileName)(Code)



explorerSelectPath
public void explorerSelectPath(String treePath, Node filesystemNode)(Code)



getDefaultPackageNode
protected Node getDefaultPackageNode()(Code)



getNode
protected Node getNode(String packageName)(Code)



getPropertiesFileItemsCount
public int getPropertiesFileItemsCount(String fileName) throws Exception(Code)
There will be counted rows in property sheet in properties editor. counts of rows in property sheet
throws:
  Exception - if an appeared



newPropertyDialogClickCancelButton
public void newPropertyDialogClickCancelButton()(Code)
Closes 'New property' dialog. There is used 'Cancel' button.



newPropertyDialogClickCloseButton
public void newPropertyDialogClickCloseButton()(Code)
This closes 'New property' dialog. There is used close button for this action in this dialog. ( dialog must be open )



newPropertyDialogClickHelpButton
public void newPropertyDialogClickHelpButton()(Code)
It clicks on 'Help' button in 'New property' dialog.



newPropertyDialogClickOkButtonNoBlock
public void newPropertyDialogClickOkButtonNoBlock()(Code)
This closes dialog as in previous method, but there is used no block action for closing dialog.



newPropertyDialogFill
public void newPropertyDialogFill(String fileName, String key, String value, String comment) throws Exception(Code)
This fill three textafields in 'New property' dialog.
Parameters:
  key - which will be filled to appeared dialog 'New property'
Parameters:
  value - of key, which will be filled to appeared dialog 'New property'
Parameters:
  comment - of key, which will be filles to appeared dialog 'New property'
throws:
  Exception - is throws if appeared



openAddLocaleDialogFromExplorer
public void openAddLocaleDialogFromExplorer(Node filesystemNode, String filePath)(Code)
Open 'Add Locale..' dialog and do nothing
Parameters:
  filesystemNode - is node of filesystem in which is file located in Explorer
Parameters:
  filePath - is path to file in tree in Explorer



openAddPropertyDialogFromExplorer
public void openAddPropertyDialogFromExplorer(Node filesystemNode, String path)(Code)
Opens 'Add Property' dialog from explorer.
Parameters:
  filesystemNode - is node of tree in explorer
Parameters:
  path - of file in tree in explorer



openCustomizeLocalesDialogFromExplorer
public void openCustomizeLocalesDialogFromExplorer(Node filesystemNode, String path)(Code)
Opens Customizer dialog.
Parameters:
  filesystemNode - node of filesystem in tree in explorer
Parameters:
  path - to the object you can customize



openCustomizePropertiesDialogFromExplorer
public void openCustomizePropertiesDialogFromExplorer(Node fileNode, String path)(Code)



openDefaultProject
protected void openDefaultProject()(Code)



openExistedPropertiesFile
public void openExistedPropertiesFile(String treeSubPackagePathToFile, String fileName)(Code)
This method opens file in editor. There is used popup menu in explorer.
Usage :
FilesystemNode filesystemNode = new FilesystemNode(
System.getProperty("netbeans.user") +
File.separator +
"sampledir");

openExistedPropertiesFile(filesystemNode.getPath()+"|"+"myFile");

Parameters:
  filePath - of existed file in explorer ( without extension )



openExistedPropetiesFileInClassicEditor
public void openExistedPropetiesFileInClassicEditor(Node filesystemNode, String filePath)(Code)
This method opens file in editor. There is used popup menu in explorer for this action.
Parameters:
  filesystemNode - of mounted directory ( without extension )
Parameters:
  filePath - of file in explorer tree



openProject
protected void openProject(String projectName)(Code)
This method open project. 1) It is checked if the project is open before the project is opened. 2) open project 3) check if project is open
Parameters:
  projectName - is name of the project stored in .../editor/test/qa-functional/data/ directory.



propertiesEditorClickNewPropertyButton
public void propertiesEditorClickNewPropertyButton(String fileName)(Code)
It clicks to the 'New property' button in properties editor ( table view )



propertiesEditorClickRemovePropertyButton
public void propertiesEditorClickRemovePropertyButton(String fileName)(Code)
This pushs 'Remove property' button in properties editor form.



propertiesEditorCloseFromTabPane
public void propertiesEditorCloseFromTabPane() throws Exception(Code)
This opens popup menu over tab in properties file and chooses close item from it.



propertiesWindowChangeProperty
public void propertiesWindowChangeProperty(String objectName, String propertyName, String newValue)(Code)



questionDialogClickCancelButton
public void questionDialogClickCancelButton()(Code)
Clicks to 'Cancel' button in 'Question' dialog. This dialog appeared after pushing 'Remove Property' button in properties editor.



questionDialogClickDiscardButton
public void questionDialogClickDiscardButton()(Code)



questionDialogClickOkButton
public void questionDialogClickOkButton()(Code)
Clicks to button 'Ok' in Quiestion dialog. This dialog appeared after pushing 'Remove Property' button.



requestFocusEditorPane
public void requestFocusEditorPane(String nameOfTab)(Code)



selectPropertiesFileItem
public void selectPropertiesFileItem(String fileName, int rowNumber) throws Exception(Code)
This selectes row in sheet of properties in properties editor.
Parameters:
  rowNumber - is number of row in property sheet
throws:
  Exception - if an appeared



tableViewClickTo
public void tableViewClickTo(String fileName, int row, int column)(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.