|
|
@ -0,0 +1,20 @@ |
|
|
|
package de.tims.fleetstorm.matchfield; |
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
class CoordinateTest { |
|
|
|
|
|
|
|
int x = 1; |
|
|
|
int y = 3; |
|
|
|
|
|
|
|
Coordinate coordinate = new Coordinate(x, y); |
|
|
|
|
|
|
|
@Test |
|
|
|
void testGetCorrectValuesForXY() { |
|
|
|
assertEquals(coordinate.getX(), x); |
|
|
|
assertEquals(coordinate.getY(), y); |
|
|
|
} |
|
|
|
|
|
|
|
} |