diff --git a/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java b/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java index 4d274c7..d69692b 100644 --- a/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java +++ b/src/test/java/ch/zhaw/pm2/racetrack/CarTest.java @@ -14,7 +14,9 @@ import java.util.List; import static org.junit.jupiter.api.Assertions.*; /** - * Tests for Class Car + * Class that contains all test for the Class Car + * + * @author Roman Schenk */ class CarTest { @@ -26,7 +28,7 @@ class CarTest { final char DEFAULT_ID = 'f'; /** - * Create a new Car Object and set Position to a defined Default Position + * Creates a new Car Object and set Position to a defined Default Position */ @BeforeEach void setUp() { @@ -34,7 +36,7 @@ class CarTest { } /** - * Checks getID + * Checks if the method getID returns the correct value */ @Test void getID() { @@ -52,8 +54,8 @@ class CarTest { } /** - * - checks if the position of the car can be set and saved correctly with valid positions. - * - checks if an exception is thrown and position keeps unchanged if invalid coordinates are entered. + * Checks if the position of the car can be set and saved correctly with valid positions. + * Checks if an exception is thrown and position kept unchanged if invalid coordinates are entered. */ @Test void setPosition() { @@ -159,7 +161,8 @@ class CarTest { /** - * test for methods crash and isCrashed. checks if state crashed is set and returned correctly. + * Test for methods crash and isCrashed. + * Checks if state crashed is set and returned correctly. */ @Test void crash() { @@ -169,8 +172,8 @@ class CarTest { } /** - * test for methods setMoveStrategy. Checks if the MoveStrategy Object is saved and returned correctly - * with all Types of MoveStrategy. + * Test for methods setMoveStrategy. + * Checks if the MoveStrategy Object is saved and returned correctly with all Types of MoveStrategy. */ @Test void MoveStrategy() { @@ -202,7 +205,7 @@ class CarTest { } /** - * Test for get WinPoints + * Tests if getWinPoints returns the correct value. */ @Test void getWinPoints() { @@ -210,7 +213,7 @@ class CarTest { } /** - * Test for increase WinPoints + * Tests if winpoints increase functions properly. */ @Test void increaseWinPoints() { @@ -219,7 +222,7 @@ class CarTest { } /** - * Test for deduct WinPoints + * Tests if the deductions of winpoints functions properly. */ @Test void deductWinPoints() {