Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.POI$ChangeColorQuery


   * @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);
  }
View Full Code Here


   * @throws IOException
   */
  @Test
  public void testSetPOIColor() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    final Color newColor = Color.cyan;
    poi.changeColor(newColor);
    assertEquals(newColor, poi.getColor());
  }
View Full Code Here

TOP

Related Classes of it.polito.appeal.traci.POI$ChangeColorQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.