mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
added a extra test to PositionTest class
This commit is contained in:
parent
470b1bcbd8
commit
69df661e58
@ -2,14 +2,23 @@ package inf112.fiasko.roborally;
|
|||||||
|
|
||||||
import inf112.fiasko.roborally.game.Position;
|
import inf112.fiasko.roborally.game.Position;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class PositionTest {
|
public class PositionTest {
|
||||||
|
private Position testPosition;
|
||||||
|
@Before
|
||||||
|
public void setUp() {
|
||||||
|
testPosition = new Position(3, 4);
|
||||||
|
}
|
||||||
@Test
|
@Test
|
||||||
public void TestGetXPosition(){
|
public void TestGetXPosition(){
|
||||||
Position testXPosition = new Position(3,4);
|
assertEquals(3,testPosition.getXCoordinate());
|
||||||
assertEquals(3,testXPosition.getXCoordinate());
|
}
|
||||||
|
@Test
|
||||||
|
public void TestGetYPosition(){
|
||||||
|
assertEquals(4,testPosition.getYCoordinate());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user