Skip to content

Commit

Permalink
General Refactor (#440)
Browse files Browse the repository at this point in the history
* Move class-level fields in TestSparkAction to actionPerformed

Because this may lead to resource leaks. Closes #242

* Remove redundant qualifier names in TestSparkAction.kt

* Extract the TestSparkActionWindow class into a separate file

Extract the TestSparkActionWindow class into a separate file for better modularity and maintainability. This separation improves code readability and simplifies the structure of TestSparkAction by isolating UI logic. It will also reduce potential git conflicts.

* Add intelliJPlatform folder to gitignore

* Remove the irrelevant TODO in TestSparkActionWindow.kt

If the psiHelper is not available, we'll get a NullPointerException automatically, so we don't need to throw anything manually. It's the responsibility of the caller class to make sure that the window is shown only when the dataContext returns some data and a psiHelper instance can be retrieved.

* Refactor TestCompilerFactory to resolve issue #324

Use the provided javaSDKHomePath or derive it from the project's instance. If can't derive throw an exception.

* Resolve ktlint issues
  • Loading branch information
DanielRendox authored Feb 14, 2025
1 parent c174a46 commit 3dbe4d8
Show file tree
Hide file tree
Showing 4 changed files with 418 additions and 422 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ lib/evosuite-*.jar
lib/JUnitRunner.jar
**/evosuite-tests/
*.DS_Store
.intellijPlatform/

# Test projects
src/test/resources/project/.idea/
Expand Down
Loading

0 comments on commit 3dbe4d8

Please sign in to comment.