|
|
@ -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() { |
|
|
|