| org.netbeans.test.junit4.ExtJellyTestCase
All known Subclasses: org.netbeans.test.junit4.CreateProjectTest,
ExtJellyTestCase | abstract public class ExtJellyTestCase extends JellyTestCase (Code) | | Class with helpers for easy creating jemmy/jelly tests
author: Jiri Vagner |
Method Summary | |
public void | addBean(String beanFileName) | public String | createBeanFormFile(String beanClassName) | public String | createFrameFile() | public String | createJDialogFile() | public String | createJFrameFile() | public void | findInCode(ArrayList<String> lines, EditorOperator editor) | public void | findInCode(String stringToFind, EditorOperator editor) | public static boolean | findInFile(String msg, String filePath) | public static String | getContents(File aFile) Fetch the entire contents of a text file, and return it in a String. | public String | getFilePathFromDataPackage(String fileName) | public Node | getProjectFileNode(String fileName) | public Node | getProjectFileNode(String fileName, boolean containsFilePathPackage) | public Node | getProjectFileNode(String fileName, String packageName) | public String | getTimeStamp() | public void | missInCode(String stringToFind, EditorOperator editor) | public Node | openFile(String fileName) | public void | p(String msg) | public void | p(Boolean msg) | public void | p(int msg) | public void | removeFile(String fileName) | public void | runNoBlockPopupOverNode(String actionName, Node node) | public void | runPopupOverNode(String actionName, Node node) | public void | runPopupOverNode(ArrayList<String> actionNames, Node node, Operator.DefaultStringComparator comparator) | public void | runPopupOverNode(ArrayList<String> actionNames, Node node) | public static void | waitAMoment() | public static void | waitNoEvent(long waitTimeout) |
DELETE_OBJECT_CONFIRM | public static String DELETE_OBJECT_CONFIRM(Code) | | |
TEST_PACKAGE_NAME | public static String TEST_PACKAGE_NAME(Code) | | |
TEST_PROJECT_NAME | public static String TEST_PROJECT_NAME(Code) | | |
ExtJellyTestCase | public ExtJellyTestCase(String testName)(Code) | | Constructor required by JUnit
|
addBean | public void addBean(String beanFileName)(Code) | | Adds new bean into palette
Parameters: beanFileName - |
createFrameFile | public String createFrameFile()(Code) | | Creates new AWT Frame file in project
new file name |
createJDialogFile | public String createJDialogFile()(Code) | | Creates new JDialog file in project
new file name |
createJFrameFile | public String createJFrameFile()(Code) | | Creates new JFrame file in project
new file name |
findInCode | public void findInCode(ArrayList<String> lines, EditorOperator editor)(Code) | | Find a strings in a code
Parameters: lines - array list of strings to find Parameters: designer - operator "with text" |
findInCode | public void findInCode(String stringToFind, EditorOperator editor)(Code) | | Find a string in a code
Parameters: lines - array list of strings to find Parameters: designer - operator "with text" |
findInFile | public static boolean findInFile(String msg, String filePath)(Code) | | Find msg string in file
|
getContents | public static String getContents(File aFile)(Code) | | Fetch the entire contents of a text file, and return it in a String.
This style of implementation does not throw Exceptions to the caller.
Parameters: aFile - is a file which already exists and can be read. |
getFilePathFromDataPackage | public String getFilePathFromDataPackage(String fileName)(Code) | | Gets full path to file from "data" package from SampleProject
short file name with extension (e.g TestFrame.java); |
getProjectFileNode | public Node getProjectFileNode(String fileName)(Code) | | |
getProjectFileNode | public Node getProjectFileNode(String fileName, boolean containsFilePathPackage)(Code) | | |
getProjectFileNode | public Node getProjectFileNode(String fileName, String packageName)(Code) | | |
missInCode | public void missInCode(String stringToFind, EditorOperator editor)(Code) | | Miss a string in a code
Test fail() method is called, when code contains stringToFind string
Parameters: stringToFind - Parameters: designer - operator "with text" |
openFile | public Node openFile(String fileName)(Code) | | Opens file into nb editor
Parameters: fileName - node |
p | public void p(int msg)(Code) | | Simple console println
|
removeFile | public void removeFile(String fileName)(Code) | | Removes file from actual project and actual test package
|
runNoBlockPopupOverNode | public void runNoBlockPopupOverNode(String actionName, Node node)(Code) | | Runs popoup command over node using NoBlockAction
Parameters: popup - command, ex.: "Add|Swing|Label" Parameters: node - to run action on |
runPopupOverNode | public void runPopupOverNode(String actionName, Node node)(Code) | | Runs popoup command over node
Parameters: popup - command, ex.: "Add|Swing|Label" Parameters: node - to run action on |
runPopupOverNode | public void runPopupOverNode(ArrayList<String> actionNames, Node node, Operator.DefaultStringComparator comparator)(Code) | | Runs popup commands over node
Parameters: array - list of popup commands Parameters: node - to run actions on |
runPopupOverNode | public void runPopupOverNode(ArrayList<String> actionNames, Node node)(Code) | | Runs popup commands over node
Parameters: array - list of popup commands Parameters: node - to run actions on |
waitAMoment | public static void waitAMoment()(Code) | | Calls Jelly waitNoEvent() with MY_WAIT_MOMENT
|
waitNoEvent | public static void waitNoEvent(long waitTimeout)(Code) | | Calls Jelly waitNoEvent()
Parameters: quiet - time (miliseconds) |
|
|