Java Doc for TestUtils.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » gravy » 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 » visualweb.api.designer » org.netbeans.modules.visualweb.gravy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.gravy.TestUtils

TestUtils
public class TestUtils (Code)
TestUtils class
author:
   Vladimir Strigun (sva@sparc.spb.su)


Field Summary
final public static  StringKEY_STRING_AFTER_PRJ_NAME_J2EEKEY_STRING_AFTER_PRJ_NAME_JSF
    


Method Summary
public static  booleancheckProjectBuilded()
    
public static  voidcloseCurrentProject()
    
public static  voidcloseCurrentProjectSaveAll()
    
public static  voidcloseProject(String prjName)
    
public static  voidcloseProjectAfterSaveAll(String prjName)
    
public static  voidcloseProjectByName(String prjName)
     Closes project prjName.
public static  voidcloseProjectSaveAll(String prjName)
    
final protected static  voidcopyInputStream(InputStream in, OutputStream out)
    
public static  StringcreateJavaEE5ProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType)
    
public static  StringcreateNewJSFProject()
    
public static  StringcreateNewJSFProject(String projectName)
    
public static  StringcreateNewPortletProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType)
    
public static  voidcreateNewProject(String projectName)
    
public static  StringcreateNewProject(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType, String sourceStructure, String J2EELevel)
     Creating project
Parameters:
  location - Project's location, if null then default location used
Parameters:
  projectName - Project's name, if null then default name used
Parameters:
  absoluteLocation - absolute or relative location
Parameters:
  projectCategory - Category of the project (General, Web, etc.)
Parameters:
  projectType - Type of the project of the given category, i.e.
public static  StringcreateNewProject(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType, String sourceStructure, String J2EELevel, String server)
     Creating project
Parameters:
  location - Project's location, if null then default location used
Parameters:
  projectName - Project's name, if null then default name used
Parameters:
  absoluteLocation - absolute or relative location
Parameters:
  projectCategory - Category of the project (General, Web, etc.)
Parameters:
  projectType - Type of the project of the given category, i.e.
public static  voidcreateNewProjectAbsoluteLocation(String location, String projectName)
    
public static  StringcreateNewProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType)
    
public static  voidcreateNewProjectLoc(String location, String projectName, boolean absoluteLocation)
    
public static  voidcreateNewProjectLocation(String location, String projectName)
    
public static  voidcreateNewProjectTimeStamped(String projectName)
    
public static  voiddisableBrowser(String prjName, boolean dis)
    
public static  voiddisableBrowser(String prjName, String prjLoc, boolean dis)
    
public static  voiddownloadFile(String destinationUrl, String srcFile)
    
public static  voidexportWAR(String projectName, String pathToWAR, boolean platform)
    
public static  voidexportWAR(String projectName, String pathToWAR)
    
public static  JMenuItemfindPopupMenuItemByLabel(JPopupMenuOperator menuOperator, String menuItemLabel)
    
public static  JMenuItemfindPopupMenuItemByLabel(JPopupMenuOperator menuOperator, String menuItemLabel, boolean equalsMode, boolean ignoreCaseMode)
    
public static  StringgetAdminPortFromProperties()
    
public static  PointgetComponentCoords()
    
public static  PropertiesgetCreatorInstallProperties()
    
public static  StringgetCurrentDateAndTimeAsString()
    
public static  StringgetCurrentProjectName()
    
public static  StringgetCurrentProjectName(String keyStringAfterPrjName)
    
public static  URLgetJ2EEApplicationURL(String projectName)
    
public static  StringgetPathLastCreatedProject()
    
public static  StringgetRequestPrefix(long timeout)
    
public static  TopComponentgetTabSelectedTopComponent(ContainerOperator containerOperator)
    
public static  TopComponent[]getTabTopComponents(ContainerOperator containerOperator)
    
public static  StringgetTopComponentName(TopComponent topComponent)
    
public static  StringgetWebPortFromProperties()
    
public static  booleanisMainTabOfDesignerSelected(DesignerPaneOperator designerOperator, String tabTitle)
    
public static  booleanisProjectOpened(String prjName)
    
public static  booleanisServerStarted()
    
public static  booleanisServerStarted(String host, String port)
    
public static  booleanisServerStarted(String host, String port, String userName, String userPassword)
    
public static  voidopenProject(String projectPath, boolean welcomeOperator)
    
public static  voidopenProject(String projectPath)
    
public static  voidopenWebFormJavaFile(String projectName)
    
public static  voidoutMsg(String msg)
    
public static  voidoutMsg(String msg, boolean spaceBefore, boolean spaceAfter)
    
public static  voidoutMsg(String fileName, String msg)
    
public static  voidoutMsg(String fileName, String msg, boolean spaceBefore, boolean spaceAfter)
    
public static  StringparseLogs(String pathToFile, String strToFind)
    
public static  voidprintComponentList(ComponentOperator op)
    
public static  voidprintComponentList(Container container)
    
public static  voidprintComponentList(String fileName, Container container)
    
public static  voidpushPopupMenuItemOnMainDesignerTab(DesignerPaneOperator designerOperator, String menuItem)
    
public static  voidsetHTTPProxy(String proxyHost, String proxyPort)
    
public static  Stringunzip(String file)
    
public static  voidwait(int millisec)
    
public static  voidwaitDeployed(OutputOperator output, int maxTimeout)
    
public static  StringwaitStatus(StatusWaitable csw)
    
public static  voidwaitStatusText(String line)
    

Field Detail
KEY_STRING_AFTER_PRJ_NAME_J2EEKEY_STRING_AFTER_PRJ_NAME_JSF
final public static String KEY_STRING_AFTER_PRJ_NAME_J2EEKEY_STRING_AFTER_PRJ_NAME_JSF(Code)





Method Detail
checkProjectBuilded
public static boolean checkProjectBuilded()(Code)



closeCurrentProject
public static void closeCurrentProject()(Code)



closeCurrentProjectSaveAll
public static void closeCurrentProjectSaveAll()(Code)



closeProject
public static void closeProject(String prjName)(Code)
Closes project prjName if it is currently selected
Parameters:
  prjName - Project Name



closeProjectAfterSaveAll
public static void closeProjectAfterSaveAll(String prjName)(Code)



closeProjectByName
public static void closeProjectByName(String prjName)(Code)
Closes project prjName. Saves all if Save Dialog is shown
Parameters:
  prjName - Project Name



closeProjectSaveAll
public static void closeProjectSaveAll(String prjName)(Code)



copyInputStream
final protected static void copyInputStream(InputStream in, OutputStream out) throws IOException(Code)



createJavaEE5ProjectLoc
public static String createJavaEE5ProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType)(Code)
Creates JAVA EE 5 project with default source level
Parameters:
  location - Project's location, if null then default location used
Parameters:
  projectName - Project's name, if null then default name used
Parameters:
  absoluteLocation - absolute or relative location
Parameters:
  projectCategory - Category of the project (General, Web, etc.)
Parameters:
  projectType - Type of the project of the given category Name of the Created project



createNewJSFProject
public static String createNewJSFProject()(Code)



createNewJSFProject
public static String createNewJSFProject(String projectName)(Code)



createNewPortletProjectLoc
public static String createNewPortletProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType)(Code)



createNewProject
public static void createNewProject(String projectName)(Code)
Create new Project with given name
Parameters:
  projectName - - Project's name



createNewProject
public static String createNewProject(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType, String sourceStructure, String J2EELevel)(Code)
Creating project
Parameters:
  location - Project's location, if null then default location used
Parameters:
  projectName - Project's name, if null then default name used
Parameters:
  absoluteLocation - absolute or relative location
Parameters:
  projectCategory - Category of the project (General, Web, etc.)
Parameters:
  projectType - Type of the project of the given category, i.e. Web Application
Parameters:
  sourceStructure - source structure (Java BluePrints, Jakarta), if nullthen currently selected used
Parameters:
  J2EELevel - (Java EE 5, J2EE 1.4, J2EE 1.3), if null then currently selected used Name of the Created project



createNewProject
public static String createNewProject(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType, String sourceStructure, String J2EELevel, String server)(Code)
Creating project
Parameters:
  location - Project's location, if null then default location used
Parameters:
  projectName - Project's name, if null then default name used
Parameters:
  absoluteLocation - absolute or relative location
Parameters:
  projectCategory - Category of the project (General, Web, etc.)
Parameters:
  projectType - Type of the project of the given category, i.e. Web Application
Parameters:
  sourceStructure - source structure (Java BluePrints, Jakarta), if nullthen currently selected used
Parameters:
  J2EELevel - (Java EE 5, J2EE 1.4, J2EE 1.3), if null then currently selected used
Parameters:
  server - deployment target, if null then default application server used Name of the Created project



createNewProjectAbsoluteLocation
public static void createNewProjectAbsoluteLocation(String location, String projectName)(Code)
Create new Project with given name and absolute location
Parameters:
  location - - absolute location
Parameters:
  projectName - - Project's name



createNewProjectLoc
public static String createNewProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType)(Code)
Creates project with J2EE 1.4 and default source structure
Parameters:
  location - Project's location, if null then default location used
Parameters:
  projectName - Project's name, if null then default name used
Parameters:
  absoluteLocation - absolute or relative location
Parameters:
  projectCategory - Category of the project (General, Web, etc.)
Parameters:
  projectType - Type of the project of the given category Name of the Created project



createNewProjectLoc
public static void createNewProjectLoc(String location, String projectName, boolean absoluteLocation)(Code)



createNewProjectLocation
public static void createNewProjectLocation(String location, String projectName)(Code)
Create new Project with given name and relative location
Parameters:
  location - - relative location
Parameters:
  projectName - - Project's name



createNewProjectTimeStamped
public static void createNewProjectTimeStamped(String projectName)(Code)
Create new Project with name included time stamp
Parameters:
  projectName - - Project's name



disableBrowser
public static void disableBrowser(String prjName, boolean dis)(Code)



disableBrowser
public static void disableBrowser(String prjName, String prjLoc, boolean dis)(Code)



downloadFile
public static void downloadFile(String destinationUrl, String srcFile) throws MalformedInputException, IOException(Code)

Parameters:
  destinationUrl - - url with zip file
Parameters:
  srcFile - - file in which downloaded file will be saved



exportWAR
public static void exportWAR(String projectName, String pathToWAR, boolean platform)(Code)
export WAR file



exportWAR
public static void exportWAR(String projectName, String pathToWAR)(Code)



findPopupMenuItemByLabel
public static JMenuItem findPopupMenuItemByLabel(JPopupMenuOperator menuOperator, String menuItemLabel)(Code)



findPopupMenuItemByLabel
public static JMenuItem findPopupMenuItemByLabel(JPopupMenuOperator menuOperator, String menuItemLabel, boolean equalsMode, boolean ignoreCaseMode)(Code)



getAdminPortFromProperties
public static String getAdminPortFromProperties()(Code)



getComponentCoords
public static Point getComponentCoords()(Code)
getting coords of selected component from "style" property



getCreatorInstallProperties
public static Properties getCreatorInstallProperties()(Code)



getCurrentDateAndTimeAsString
public static String getCurrentDateAndTimeAsString()(Code)
getting current Date and Time as one string ( YYYYMMDDHHMMSS )



getCurrentProjectName
public static String getCurrentProjectName()(Code)



getCurrentProjectName
public static String getCurrentProjectName(String keyStringAfterPrjName)(Code)



getJ2EEApplicationURL
public static URL getJ2EEApplicationURL(String projectName)(Code)



getPathLastCreatedProject
public static String getPathLastCreatedProject()(Code)



getRequestPrefix
public static String getRequestPrefix(long timeout)(Code)



getTabSelectedTopComponent
public static TopComponent getTabSelectedTopComponent(ContainerOperator containerOperator)(Code)



getTabTopComponents
public static TopComponent[] getTabTopComponents(ContainerOperator containerOperator)(Code)



getTopComponentName
public static String getTopComponentName(TopComponent topComponent)(Code)



getWebPortFromProperties
public static String getWebPortFromProperties()(Code)



isMainTabOfDesignerSelected
public static boolean isMainTabOfDesignerSelected(DesignerPaneOperator designerOperator, String tabTitle)(Code)



isProjectOpened
public static boolean isProjectOpened(String prjName)(Code)
Checks whether project prjName is opened
Parameters:
  prjName - Project Name to check Returns true if project name is shown in Projects tree



isServerStarted
public static boolean isServerStarted()(Code)



isServerStarted
public static boolean isServerStarted(String host, String port)(Code)



isServerStarted
public static boolean isServerStarted(String host, String port, String userName, String userPassword)(Code)



openProject
public static void openProject(String projectPath, boolean welcomeOperator)(Code)



openProject
public static void openProject(String projectPath)(Code)



openWebFormJavaFile
public static void openWebFormJavaFile(String projectName)(Code)



outMsg
public static void outMsg(String msg)(Code)



outMsg
public static void outMsg(String msg, boolean spaceBefore, boolean spaceAfter)(Code)



outMsg
public static void outMsg(String fileName, String msg)(Code)



outMsg
public static void outMsg(String fileName, String msg, boolean spaceBefore, boolean spaceAfter)(Code)



parseLogs
public static String parseLogs(String pathToFile, String strToFind) throws IOException(Code)
Parse logs for exceptions



printComponentList
public static void printComponentList(ComponentOperator op)(Code)
Prints list of all child components of container
Parameters:
  op - - container



printComponentList
public static void printComponentList(Container container)(Code)



printComponentList
public static void printComponentList(String fileName, Container container)(Code)



pushPopupMenuItemOnMainDesignerTab
public static void pushPopupMenuItemOnMainDesignerTab(DesignerPaneOperator designerOperator, String menuItem)(Code)



setHTTPProxy
public static void setHTTPProxy(String proxyHost, String proxyPort)(Code)



unzip
public static String unzip(String file) throws IOException(Code)



wait
public static void wait(int millisec)(Code)



waitDeployed
public static void waitDeployed(OutputOperator output, int maxTimeout) throws InterruptedException(Code)



waitStatus
public static String waitStatus(StatusWaitable csw)(Code)



waitStatusText
public static void waitStatusText(String line)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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