Package org.fest.swing.driver
Class JTreeVerifySelectionTask
java.lang.Object
org.fest.swing.driver.JTreeVerifySelectionTask
Understands verification that a
JTree
has the expected selection.- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkSelection
(JTree tree, int[] selection, org.fest.assertions.Description errMsg) private static void
checkSelection
(JTree tree, String[] selection, JTreePathFinder pathFinder, org.fest.assertions.Description errMsg) private static void
failNoSelection
(org.fest.assertions.Description errorMessage) private static AssertionError
failNotEqualSelection
(org.fest.assertions.Description msg, int[] expected, int[] actual) private static AssertionError
failNotEqualSelection
(org.fest.assertions.Description msg, String[] expected, TreePath[] actual) (package private) static void
verifyNoSelection
(JTree tree, org.fest.assertions.Description errMsg) (package private) static void
verifySelection
(JTree tree, int[] selection, org.fest.assertions.Description errMsg) (package private) static void
verifySelection
(JTree tree, String[] selection, JTreePathFinder pathFinder, org.fest.assertions.Description errMsg)
-
Constructor Details
-
JTreeVerifySelectionTask
private JTreeVerifySelectionTask()
-
-
Method Details
-
verifySelection
@RunsInEDT static void verifySelection(JTree tree, int[] selection, org.fest.assertions.Description errMsg) -
checkSelection
@RunsInCurrentThread private static void checkSelection(JTree tree, int[] selection, org.fest.assertions.Description errMsg) -
failNotEqualSelection
private static AssertionError failNotEqualSelection(org.fest.assertions.Description msg, int[] expected, int[] actual) -
verifySelection
@RunsInEDT static void verifySelection(JTree tree, String[] selection, JTreePathFinder pathFinder, org.fest.assertions.Description errMsg) -
checkSelection
@RunsInCurrentThread private static void checkSelection(JTree tree, String[] selection, JTreePathFinder pathFinder, org.fest.assertions.Description errMsg) -
failNotEqualSelection
private static AssertionError failNotEqualSelection(org.fest.assertions.Description msg, String[] expected, TreePath[] actual) -
failNoSelection
private static void failNoSelection(org.fest.assertions.Description errorMessage) -
verifyNoSelection
-