Skip to content

Refactor AbstractSelectionAction constructor and listener#1

Closed
Bertildk wants to merge 5 commits into
developfrom
basicEditing
Closed

Refactor AbstractSelectionAction constructor and listener#1
Bertildk wants to merge 5 commits into
developfrom
basicEditing

Conversation

@Bertildk

Copy link
Copy Markdown
Collaborator

Changed constructor visibility to protected and refactored property change listener for clarity. Introduced ENABLED_PROPERTY constant and made propertyHandler transient. Simplified listener logic and improved code readability.

Changed constructor visibility to protected and refactored property change listener for clarity. Introduced ENABLED_PROPERTY constant and made propertyHandler transient. Simplified listener logic and improved code readability.
Unit tests for CopyAction, CutAction, and DeleteAction in jhotdraw-actions. Added JUnit as a test dependency in jhotdraw-actions/pom.xml and in the root pom.xml to manage versions.
Introduced Mockito as a test dependency in both project and module POM files. Refactored CopyActionTest and CutActionTest to use mock Clipboard and TransferHandler, replacing direct clipboard assertions with mock verifications for improved reliability and isolation.
SonarQube refactoring for readabillity and unnecesarry code removed
Commit contains BDD Test for the PastAction, aswell as Pom.xml dependency additions of JGiven, AssertJ.
@Benjamand Benjamand closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants