|
@ -8,11 +8,12 @@ import static org.junit.jupiter.api.Assertions.assertFalse; |
|
|
import static org.junit.jupiter.api.Assertions.assertTrue; |
|
|
import static org.junit.jupiter.api.Assertions.assertTrue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class CollisionCheckerTest { |
|
|
|
|
|
|
|
|
class CollisionCheckerTest { |
|
|
CollisionChecker collisionChecker; |
|
|
CollisionChecker collisionChecker; |
|
|
|
|
|
|
|
|
@BeforeEach |
|
|
@BeforeEach |
|
|
public void before() { |
|
|
public void before() { |
|
|
CollisionChecker collisionChecker = new CollisionChecker(); |
|
|
|
|
|
|
|
|
collisionChecker = new CollisionChecker(); |
|
|
} |
|
|
} |
|
|
@Test |
|
|
@Test |
|
|
void WhenBallYCoordinateIsLessOrEqualThanZero_didTouchTopOrBottomEdge_ReturnsTrue() { |
|
|
void WhenBallYCoordinateIsLessOrEqualThanZero_didTouchTopOrBottomEdge_ReturnsTrue() { |
|
|