Class GhidraFileChooserTest

    • Constructor Detail

      • GhidraFileChooserTest

        public GhidraFileChooserTest()
    • 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 by GhidraFileChooser.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