test: add comprehensive SPolygon unit tests for PR #45
All checks were successful
CI / build-and-test (pull_request) Successful in 17s

Add tests to restore code coverage above 50% threshold:
- SPolygonTest: 14 tests for creation, translate, resize, clone, edge cases
- ShapeFactory: Updated contract tests to include SPolygon
- SVGDraftmanTest: 4 tests for SVG polygon rendering
- HTMLDraftmanTest: 4 tests for HTML/CSS polygon rendering
- ShapeDraftmanTest: 2 tests for Graphics2D polygon drawing

All tests use reflection to work with SPolygon class.
Fixes coverage failure on PR #45 (Issue #38).
This commit is contained in:
2026-03-28 01:32:04 +01:00
parent 4e1b83f6d1
commit a1e24292e4
7 changed files with 997 additions and 1 deletions

1
.gitignore vendored
View File

@@ -33,3 +33,4 @@ dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
new-shapes.wiki/