From b674f18e3e023f7c22ea81865fa54b742f4cb8ea Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Wed, 8 Feb 2023 22:10:49 +0100 Subject: [PATCH] Unittest Pong --- src/test_/java/CollisionCheckerTest.java | 5 +++-- .../test-classes/CollisionCheckerTest.class | Bin 1403 -> 3056 bytes 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test_/java/CollisionCheckerTest.java b/src/test_/java/CollisionCheckerTest.java index 9ba64c5..513c34d 100644 --- a/src/test_/java/CollisionCheckerTest.java +++ b/src/test_/java/CollisionCheckerTest.java @@ -8,11 +8,12 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -public class CollisionCheckerTest { + class CollisionCheckerTest { CollisionChecker collisionChecker; + @BeforeEach public void before() { - CollisionChecker collisionChecker = new CollisionChecker(); + collisionChecker = new CollisionChecker(); } @Test void WhenBallYCoordinateIsLessOrEqualThanZero_didTouchTopOrBottomEdge_ReturnsTrue() { diff --git a/target/test-classes/CollisionCheckerTest.class b/target/test-classes/CollisionCheckerTest.class index 357ab1139009acaf65c9e1a0cb661512229f2a17..15f75ac541d43328e231cbcd0e14b0c9d71f9b1c 100644 GIT binary patch literal 3056 zcmbtWe^V1z6g?Zz#kfj91@TvbYMUUC+G<-xt$?AVE(9?JWje!bl1H+*?9$zh?M(Yu zr(dWutvYt5AD~~UGo7Bdzer%yu{N1(UiQ6v?s?~)yDxwK{pJq<_pp&g27M~}H5|in z1-V`0g;BH&yIHK%c17J+aQv=moBn+Tefh$MiU9>d%Fn zg^IotI0;R~DGjGFsNn43MOEPuHdj9stKg#E6L>C*Aq=ZHqv0&hDHuB7S+;%A6s`jG zg<-WtWkoHtro7`kYocA@7T*Wm77Uw-rxIVS^6l9IyN7a=O{rRl|>o|cAHRL70$#8bbusoq+O2KfTh4GzVTxUsH zTuWq8z_cv-428>=`H~naiW)w`4F#uTeb$Ud!(x_ukt|&(bD=KX_tJ$?@rj0;xW&rH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