test: add ResizeHandle enum unit tests #22

Merged
thib8956 merged 1 commits from issue-12/resize-handle-tests into master 2026-03-27 18:06:56 +00:00
Owner

Summary

  • Add 10 unit tests for the ResizeHandle enum covering all 8 direction handles.
  • Verifies handle count, name existence, correct java.awt.Cursor constant mapping for each direction, valueOf() round-trip, and valueOf() with invalid name throwing IllegalArgumentException.

Closes #12

## Summary - Add 10 unit tests for the `ResizeHandle` enum covering all 8 direction handles. - Verifies handle count, name existence, correct `java.awt.Cursor` constant mapping for each direction, `valueOf()` round-trip, and `valueOf()` with invalid name throwing `IllegalArgumentException`. Closes #12
thib8956 added 1 commit 2026-03-27 18:06:50 +00:00
test: add ResizeHandle enum unit tests
All checks were successful
CI / build-and-test (pull_request) Successful in 18s
8635770755
Add 10 tests covering the ResizeHandle enum:
- Verify all 8 handles exist
- Verify each handle name (NW, N, NE, E, SE, S, SW, W)
- Verify each handle maps to the correct java.awt.Cursor constant
- Verify valueOf() round-trip for all handles
- Verify valueOf() with invalid name throws IllegalArgumentException

Closes #12
thib8956 force-pushed issue-12/resize-handle-tests from b3368db2b1 to 8635770755 2026-03-27 18:06:50 +00:00 Compare
thib8956 merged commit 1cabbd0224 into master 2026-03-27 18:06:56 +00:00
thib8956 deleted branch issue-12/resize-handle-tests 2026-03-27 18:06:56 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thib8956/new-shapes#22