Exemple #1
0
 /**
  * Checks the correct setting of a POI's position.
  *
  * @throws IOException
  */
 @Test
 public void testSetPOIPosition() throws IOException {
   Repository<POI> poiRepo = conn.getPOIRepository();
   POI poi = poiRepo.getByID("0");
   final Point2D newPos = new Point2D.Double(0, 0);
   poi.changePosition(newPos);
   final Point2D pos = poi.getPosition();
   assertEquals(newPos.getX(), pos.getX(), DELTA);
   assertEquals(newPos.getY(), pos.getY(), DELTA);
 }