| java.lang.Object org.netbeans.modules.visualweb.gravy.TestUtils
TestUtils | public class TestUtils (Code) | | TestUtils class
author: Vladimir Strigun (sva@sparc.spb.su) |
Method Summary | |
public static boolean | checkProjectBuilded() | public static void | closeCurrentProject() | public static void | closeCurrentProjectSaveAll() | public static void | closeProject(String prjName) | public static void | closeProjectAfterSaveAll(String prjName) | public static void | closeProjectByName(String prjName) Closes project prjName . | public static void | closeProjectSaveAll(String prjName) | final protected static void | copyInputStream(InputStream in, OutputStream out) | public static String | createJavaEE5ProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType) | public static String | createNewJSFProject() | public static String | createNewJSFProject(String projectName) | public static String | createNewPortletProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType) | public static void | createNewProject(String projectName) | public static String | createNewProject(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 String | createNewProject(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 void | createNewProjectAbsoluteLocation(String location, String projectName) | public static String | createNewProjectLoc(String location, String projectName, boolean absoluteLocation, String projectCategory, String projectType) | public static void | createNewProjectLoc(String location, String projectName, boolean absoluteLocation) | public static void | createNewProjectLocation(String location, String projectName) | public static void | createNewProjectTimeStamped(String projectName) | public static void | disableBrowser(String prjName, boolean dis) | public static void | disableBrowser(String prjName, String prjLoc, boolean dis) | public static void | downloadFile(String destinationUrl, String srcFile) | public static void | exportWAR(String projectName, String pathToWAR, boolean platform) | public static void | exportWAR(String projectName, String pathToWAR) | public static JMenuItem | findPopupMenuItemByLabel(JPopupMenuOperator menuOperator, String menuItemLabel) | public static JMenuItem | findPopupMenuItemByLabel(JPopupMenuOperator menuOperator, String menuItemLabel, boolean equalsMode, boolean ignoreCaseMode) | public static String | getAdminPortFromProperties() | public static Point | getComponentCoords() | public static Properties | getCreatorInstallProperties() | public static String | getCurrentDateAndTimeAsString() | public static String | getCurrentProjectName() | public static String | getCurrentProjectName(String keyStringAfterPrjName) | public static URL | getJ2EEApplicationURL(String projectName) | public static String | getPathLastCreatedProject() | public static String | getRequestPrefix(long timeout) | public static TopComponent | getTabSelectedTopComponent(ContainerOperator containerOperator) | public static TopComponent[] | getTabTopComponents(ContainerOperator containerOperator) | public static String | getTopComponentName(TopComponent topComponent) | public static String | getWebPortFromProperties() | public static boolean | isMainTabOfDesignerSelected(DesignerPaneOperator designerOperator, String tabTitle) | public static boolean | isProjectOpened(String prjName) | public static boolean | isServerStarted() | public static boolean | isServerStarted(String host, String port) | public static boolean | isServerStarted(String host, String port, String userName, String userPassword) | public static void | openProject(String projectPath, boolean welcomeOperator) | public static void | openProject(String projectPath) | public static void | openWebFormJavaFile(String projectName) | public static void | outMsg(String msg) | public static void | outMsg(String msg, boolean spaceBefore, boolean spaceAfter) | public static void | outMsg(String fileName, String msg) | public static void | outMsg(String fileName, String msg, boolean spaceBefore, boolean spaceAfter) | public static String | parseLogs(String pathToFile, String strToFind) | public static void | printComponentList(ComponentOperator op) | public static void | printComponentList(Container container) | public static void | printComponentList(String fileName, Container container) | public static void | pushPopupMenuItemOnMainDesignerTab(DesignerPaneOperator designerOperator, String menuItem) | public static void | setHTTPProxy(String proxyHost, String proxyPort) | public static String | unzip(String file) | public static void | wait(int millisec) | public static void | waitDeployed(OutputOperator output, int maxTimeout) | public static String | waitStatus(StatusWaitable csw) | public static void | waitStatusText(String line) |
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) | | |
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) | | |
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) | | |
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) | | |
exportWAR | public static void exportWAR(String projectName, String pathToWAR, boolean platform)(Code) | | export WAR file
|
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) | | |
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) | | |
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, boolean spaceBefore, boolean spaceAfter)(Code) | | |
outMsg | public static void outMsg(String fileName, String msg, boolean spaceBefore, boolean spaceAfter)(Code) | | |
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) | | |
wait | public static void wait(int millisec)(Code) | | |
waitStatusText | public static void waitStatusText(String line)(Code) | | |
|
|