Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes made
This PR implements the functionality for recovering a test case after it is deleted by the user. The changes made are described as follows.
actionListener
to create a the recover panel for the deleted test case at the end of the panel. The intuition is that Removed Test Cases are less important to the user, therefore, they are deprioritized.Why is merge request needed
Currently, deletion is a permanent action from the user -- and users often avoid functionalities that are permanent. In this case, since the unit generation relies on large language models or EvoSuite, permanently removing the test case may be either expensive (if using a base model, like GPT-4) or time-consuming, respectively, if they'd like to restore the test case.
Adding a recover button improves the user experience and avoids the previous issues.
Other notes
Closes #230
What is missing?
The interface contains empty separators which should be removed. Improving the interface should be completed in following PRs.
I have checked that I am merging into correct branch