Add parameterized ShapeContractTest for Shape interface invariants

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
parent da70c9f568
commit 2ff811e8bb
3 changed files with 105 additions and 0 deletions

View File

@@ -58,5 +58,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>