Skip to content
Snippets Groups Projects
Commit 346cc089 authored by dro024's avatar dro024
Browse files

Added walltest, test the getters and setters in the class wall

parent 7e9ce865
No related branches found
No related tags found
No related merge requests found
package inf112.skeleton.app;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.*;
public class WallTest{
Wall wall;
@BeforeEach
void setup() {
this.wall = new Wall(0, 0, 100, 100, "grass");
}
@Test
void TestgetHeight() {
assertEquals(wall.getHeight(), 100);
}
@Test
void TestgetWidth() {
assertEquals(wall.getWidth(), 100);
}
@Test
void TestgetX() {
assertEquals(wall.getX(), 0);
}
@Test
void getY() {
assertEquals(wall.getY(), 0);
}
@Test
void getSpeed() {
assertEquals(wall.getSpeed(), 0);
}
@Test
void getGravity() {
assertEquals(wall.getGravity(), 0);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment