Browse Source

Unittest Pong

main
fdai4616 2 years ago
parent
commit
b674f18e3e
  1. 5
      src/test_/java/CollisionCheckerTest.java
  2. BIN
      target/test-classes/CollisionCheckerTest.class

5
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; 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() {

BIN
target/test-classes/CollisionCheckerTest.class

Loading…
Cancel
Save