);
}
@Test//TODO add description here
public void testCreateLinkTransportationMethodCoordinateCoordinate() throws GameException{
final Coordinate cA = BoardMapFactory.createCoordinate(0,1);
final Coordinate cB = BoardMapFactory.createCoordinate(2,3);
final Link link =BoardMapFactory.createLink(TransportationMethod.UG, cA, cB);
final Coordinate coordinateA = link.getCoordinateA();
final Coordinate coordinateB = link.getCoordinateB();
assertNotNull(
"the link map should not be null",
link.getBoardMap()
);
assertNotNull(
"the coordinate map should not be null",
coordinateA.getBoardMap()
);
assertNotNull(
"the coordinate map should not be null",
coordinateB.getBoardMap()
);
assertEquals(
"the coordinate A latitude should be [0]",
0,
coordinateA.getLatitude(),
0
);
assertEquals(
"the coordinate B longtitude should be [3]",
3,
coordinateB.getLongtitude(),
0
);
assertSame(
"coordinate B == coB",
cB,