Add 36 tests covering bounds-based hit-testing (getBounds().contains(Point))
for SRectangle, SCircle, STriangle, SText, and SCollection:
- Point inside, outside, on boundary (inclusive top-left, exclusive bottom-right)
- Point after translate to verify position update
- SCollection union bounds, gap between children, single-child bounds
Closes#11
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
Test core data type for selected/unselected state, default values,
ID constant, interface compliance, and instance independence.
8 tests covering all public API of SelectionAttributes.
Closes#6
Verify clone(), getBounds(), and translate() contracts across all Shape
implementations (SRectangle, SCircle, STriangle, SText, SCollection)
using @ParameterizedTest + @MethodSource.
Also adds junit-jupiter-params dependency to pom.xml.
Closes#8
- Add HTMLExporterTest covering HTML structure, rectangle/circle div generation,
empty and nested collections, and constructor
- Add SVGExporterTest covering SVG structure, rectangle/circle elements,
color attributes, nested collections, and constructor