Add parameterized ShapeContractTest for Shape interface invariants
Some checks failed
CI / build-and-test (pull_request) Failing after 1m34s

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
This commit is contained in:
2026-03-27 16:13:59 +01:00
committed by Thibaud Gasser
parent 2db2ed19a0
commit 35e5829e5c
3 changed files with 105 additions and 0 deletions

View File

@@ -92,5 +92,12 @@
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>