From 03b7eaae44de4e94b6f0c3c9806dd4a99592b2f0 Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Wed, 8 Feb 2023 22:00:01 +0100 Subject: [PATCH] Unittest Pong --- src/test_/java/CollisionCheckerTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test_/java/CollisionCheckerTest.java b/src/test_/java/CollisionCheckerTest.java index 0f4dfd5..0fdf316 100644 --- a/src/test_/java/CollisionCheckerTest.java +++ b/src/test_/java/CollisionCheckerTest.java @@ -85,4 +85,15 @@ public class CollisionCheckerTest { //assert assertTrue(result); } + @Test + void WhenBallXCoordinateIsMoreThanZero_didTouchLeftEdge_ReturnsTrue() { + // arrange + Integer ballXCoordinate = 10; + + //act + Boolean result = collisionChecker.didTouchLeftEdge(ballXCoordinate); + + //assert + assertFalse(result); + } }