Package docking.widgets.filechooser
Class GhidraFileChooserTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- docking.widgets.filechooser.GhidraFileChooserTest
-
public class GhidraFileChooserTest extends AbstractDockingTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class generic.test.AbstractGenericTest
concurrentTestExceptionRule, DEFAULT_TEST_TOOL_NAME, ruleChain, TESTDATA_DIRECTORY_NAME, watchman
-
Fields inherited from class generic.test.AbstractGTest
BATCH_MODE, DEFAULT_WAIT_DELAY, DEFAULT_WAIT_TIMEOUT, DEFAULT_WINDOW_TIMEOUT, PARALLEL_MODE, PRIVATE_LONG_WAIT_TIMEOUT, testName
-
-
Constructor Summary
Constructors Constructor Description GhidraFileChooserTest()
-
Method Summary
-
Methods inherited from class docking.test.AbstractDockingTest
assertEnabled, assertToggleButtonSelected, capture, checkMessageDisplay, clickComponentProvider, clickComponentProvider, close, close, closeAllWindows, closeAllWindows, closeAllWindowsAndFrames, closeProvider, closeSaveChangesDialog, createApplicationConfiguration, createApplicationLayout, createRenderedImage, createScreenImage, disposeErrorGUI, dockingSetUp, dockingTearDown, expandPath, expandTree, findButtonByActionName, findButtonByIcon, findButtonByText, findComponent, findComponentByName, getAction, getAction, getActions, getClipboardText, getComponentProvider, getDialogComponent, getDialogComponentProvider, getDockableComponent, getNode, getOpenWindowsAsString, getStatusText, getTitleForWindow, getWindow, getWindowByTitle, getWindowByTitleContaining, getWindows, isEnabled, isEnabled, isSelected, isUseErrorGUI, performAction, performAction, performAction, performAction, performDialogAction, pressButtonByText, pressButtonByText, printOpenWindows, selectPath, selectTabIfAvailable, setErrorGUIEnabled, setErrorsExpected, setToggleActionSelected, setToggleActionSelected, setToggleButtonSelected, setToggleButtonSelected, showProvider, triggerActionKey, triggerActionKey, triggerBackspaceKey, triggerEnter, triggerEscapeKey, triggerKey, triggerKey, triggerText, triggerText, waitForComponentProvider, waitForComponentProvider, waitForDialogComponent, waitForDialogComponent, waitForDialogComponent, waitForJDialog, waitForJDialog, waitForTableModel, waitForTree, waitForUpdateOnChooser, waitForWindow, waitForWindow, waitForWindow, waitForWindow, waitForWindowByName, waitForWindowByTitleContaining, waitForWindowByTitleContaining, writeImage, writeImage
-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, createStackTraceForAllThreads, createTempDirectory, createTempFile, createTempFile, createTempFileForTest, createTempFileForTest, createTempFilePath, createTempFilePath, deleteMatchingTempFiles, deleteSimilarTempFiles, doubleClick, dragMouse, editCell, executeOnSwingWithoutBlocking, findAbstractButtonByName, findAbstractButtonByText, findButtonByIcon, findButtonByText, findComponent, findComponent, findComponentByName, findComponentByName, findComponentsByName, findOwnedWindows, findPathToText, findTestDataFile, findTreePathToText, fixupGUI, getAllWindows, getDebugFileDirectory, getInstanceField, getInstanceFieldByClassType, getLocalResourceFile, getTestDataDir, getTestDataDirectory, getTestDataFile, getText, hasTestFailed, initializeLayout, initializeSystemProperties, invokeConstructor, invokeInstanceMethod, invokeInstanceMethod, leftClick, loadTextResource, loadTextResource, middleClick, moveMouse, postEvent, pressButton, pressButton, pressButtonByName, pressButtonByName, pressButtonByText, pressButtonByText, printMemory, privateWaitForPostedSwingRunnables_SwingSafe, rightClick, runSwing, runSwing, runSwing, setComboBoxSelection, setInstanceField, setText, testFailed, toString, waitForPostedSwingRunnables, waitForSwing, waitForTasks, windowForComponent, yieldToSwing
-
Methods inherited from class generic.test.AbstractGTest
assertArraysEqualOrdered, assertArraysEqualUnordered, assertArraysEqualUnordered, assertContainsExactly, assertContainsExactly, assertListEqualOrdered, assertListEqualOrdered, assertListEqualsArrayOrdered, assertListEqualsArrayUnordered, assertListEqualUnordered, failWithException, getName, getRandomInt, getRandomInt, getRandomString, getRandomString, getTestDirectoryPath, sleep, waitFor, waitFor, waitFor, waitForCondition, waitForCondition, waitForConditionWithoutFailing, waitForValue, waitForValueWithoutFailing
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testBack
public void testBack() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testShowWithARootDirectory
public void testShowWithARootDirectory() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testBackForSCR_3392
public void testBackForSCR_3392() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testBackForSCR_3358
public void testBackForSCR_3358() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testUp
public void testUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNewFolderThenNavigateWithoutCancellingForSCR_4513
public void testNewFolderThenNavigateWithoutCancellingForSCR_4513() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNewFolderInList
public void testNewFolderInList() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNewFolderInTable
public void testNewFolderInTable() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPickingFileFromDropDownListByTypingPartialTextAndThenPressingEnterForSCR_4406
public void testPickingFileFromDropDownListByTypingPartialTextAndThenPressingEnterForSCR_4406() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPickingNonExistentFileForSCR_3949
public void testPickingNonExistentFileForSCR_3949() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRefresh
public void testRefresh() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRefreshForSCR_3380
public void testRefreshForSCR_3380() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNavigateToDirectoryInFilesOnlyModeForSCR_5757
public void testNavigateToDirectoryInFilesOnlyModeForSCR_5757() throws java.lang.Exception
The user should be able to enter a directory into the text field and navigate to that directory by pressing Enter or OK.An absolute dir should navigate always. A relative dir navigates if that directory is a child of the current directory.
- Throws:
java.lang.Exception
-
testNavigateToDirectoryInDirectoriesOnlyModeForSCR_5757
public void testNavigateToDirectoryInDirectoriesOnlyModeForSCR_5757() throws java.lang.Exception
The user should be able to enter a directory into the text field and navigate to that directory by pressing Enter or OK.An absolute dir should navigate always. A relative dir is taken as a user selection, since we can't tell what the user wants when in this mode.
- Throws:
java.lang.Exception
-
testNavigateToDirectoryInDirectoriesAndFilesModeForSCR_5757
public void testNavigateToDirectoryInDirectoriesAndFilesModeForSCR_5757() throws java.lang.Exception
The user should be able to enter a directory into the text field and navigate to that directory by pressing Enter or OK.An absolute dir should navigate always. A relative dir is taken as a user selection, since we can't tell what the user wants when in this mode.
- Throws:
java.lang.Exception
-
testDirectoryInDirectory
public void testDirectoryInDirectory() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testChooseDirectoryByTextWhenInsideThatDirectory
public void testChooseDirectoryByTextWhenInsideThatDirectory() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testUpdateOnDirectoryDoesNotCloseUserDropDownSelectionWindow
public void testUpdateOnDirectoryDoesNotCloseUserDropDownSelectionWindow() throws java.lang.Exception
Test that an update/refresh of the current directory does not interfere with the user's editing of the text field, which may include the drop-down selection window.- Throws:
java.lang.Exception
-
testDirectoryInFileOnlyMode
public void testDirectoryInFileOnlyMode() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDirectoryInFileOnlyMode_Selection_NoTextFieldText
public void testDirectoryInFileOnlyMode_Selection_NoTextFieldText() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDirectoryInFileOnlyMode_Selection_WithTextFieldText
public void testDirectoryInFileOnlyMode_Selection_WithTextFieldText() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSelectCurrentDirectoryInDiretoriesOnlyModeForSCR_3932
public void testSelectCurrentDirectoryInDiretoriesOnlyModeForSCR_3932() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testShowDetails
public void testShowDetails() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingByFileName
public void testSortingByFileName() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingByFileSzie
public void testSortingByFileSzie() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingByFileDate
public void testSortingByFileDate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSelectingDirectoryForSCR_3638
public void testSelectingDirectoryForSCR_3638() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSelectInvalidFileInSpecialDirectory
public void testSelectInvalidFileInSpecialDirectory() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetSelectedFile
public void testSetSelectedFile() throws java.lang.Exception
NOTE: make sure this test matches the features described byGhidraFileChooser.setSelectedFile(File)
- Throws:
java.lang.Exception
-
testSetSelectedFileForSCR_3923
public void testSetSelectedFileForSCR_3923() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetSelectedFileNonExistent_NameTextIsSelected
public void testSetSelectedFileNonExistent_NameTextIsSelected() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetSelectedFileNonExistent_InFilesOnlyMode
public void testSetSelectedFileNonExistent_InFilesOnlyMode() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetSelectedFileNonExistent_InFilesAndDirectoriesOnlyMode
public void testSetSelectedFileNonExistent_InFilesAndDirectoriesOnlyMode() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetSelectedFileNonExistent_InDirectoriesOnlyMode
public void testSetSelectedFileNonExistent_InDirectoriesOnlyMode() throws java.lang.Exception
- Throws:
java.lang.Exception
-
doTestSetSelectedFileNonExistent
public void doTestSetSelectedFileNonExistent() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTypingInDirectoryNameUsesTheTextAndNotTheSelectedFile_FilenameOnly
public void testTypingInDirectoryNameUsesTheTextAndNotTheSelectedFile_FilenameOnly() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTypingRelativePathInTextField
public void testTypingRelativePathInTextField() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTypingInDirectoryNameUsesTheTextAndNotTheSelectedFile_AbsolutePath
public void testTypingInDirectoryNameUsesTheTextAndNotTheSelectedFile_AbsolutePath() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRenameInList
public void testRenameInList() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRenameInTable
public void testRenameInTable() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMyComputer
public void testMyComputer() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDesktop_SystemNativeDesktop
public void testDesktop_SystemNativeDesktop() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMissingDesktop
public void testMissingDesktop() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDesktop_InjectedDesktop
public void testDesktop_InjectedDesktop() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testHome
public void testHome() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRecent
public void testRecent() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRecentRemove
public void testRecentRemove() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFileFilter
public void testFileFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRememberSettings_Size
public void testRememberSettings_Size() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRememberSettings_DetailsView
public void testRememberSettings_DetailsView() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_FileOnlyMode_FileSelected
public void testGetSelectedFiles_FileOnlyMode_FileSelected() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_DirOnlyMode_DirSelected
public void testGetSelectedFiles_DirOnlyMode_DirSelected() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_Cancel
public void testGetSelectedFiles_Cancel() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_OkWithNoSelection
public void testGetSelectedFiles_OkWithNoSelection() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_FilesOnlyMode_OnlyDirsSelected
public void testGetSelectedFiles_FilesOnlyMode_OnlyDirsSelected() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_FilesOnlyMode_MixedSelection
public void testGetSelectedFiles_FilesOnlyMode_MixedSelection() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSelectedFiles_MixedMode_MixedSelection
public void testGetSelectedFiles_MixedMode_MixedSelection() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-