Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.POI


  }
 
  @Test
  public void testPOIType() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    assertEquals("TEST_TYPE", poi.getReadTypeQuery().get());
  }
View Full Code Here


  }
 
  @Test
  public void testPOIColor() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    Color c = new Color(255, 128, 0);
    assertEquals(c, poi.getReadColorQuery().get());
  }
View Full Code Here

  }
 
  @Test
  public void testPOIPosition() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    Point2D pos = new Point2D.Double(100, 50);
    Point2D poiPos = poi.getReadPositionQuery().get();
    assertEquals(pos.getX(), poiPos.getX(), DELTA);
    assertEquals(pos.getY(), poiPos.getY(), DELTA);
  }
View Full Code Here

  }
 
  @Test
  public void testSetPOIType() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    ChangeStringQ q = poi.getChangeTypeQuery();
    final String newType = "NEW_TYPE";
    q.setValue(newType);
    q.run();
    assertEquals(newType, poi.getReadTypeQuery().get());
  }
View Full Code Here

  }
 
  @Test
  public void testSetPOIPosition() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    final Point2D newPos = new Point2D.Double(0, 0);
    ChangePositionQuery q = poi.getChangePositionQuery();
    q.setValue(newPos);
    q.run();
    final Point2D pos = poi.getReadPositionQuery().get();
    assertEquals(newPos.getX(), pos.getX(), DELTA);
    assertEquals(newPos.getY(), pos.getY(), DELTA);
  }
View Full Code Here

  }
 
  @Test
  public void testSetPOIColor() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    final Color newColor = Color.cyan;
    ChangeColorQuery q = poi.getChangeColorQuery();
    q.setValue(newColor);
    q.run();
    assertEquals(newColor, poi.getReadColorQuery().get());
  }
View Full Code Here

   * @throws IOException
   */
  @Test
  public void testPOIType() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    assertEquals("TEST_TYPE", poi.getType());
  }
View Full Code Here

   * @throws IOException
   */
  @Test
  public void testPOIColor() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    Color c = new Color(255, 128, 0);
    assertEquals(c, poi.getColor());
  }
View Full Code Here

   * @throws IOException
   */
  @Test
  public void testPOIPosition() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    Point2D pos = new Point2D.Double(100, 50);
    Point2D poiPos = poi.getPosition();
    assertEquals(pos.getX(), poiPos.getX(), DELTA);
    assertEquals(pos.getY(), poiPos.getY(), DELTA);
  }
View Full Code Here

   * @throws IOException
   */
  @Test
  public void testSetPOIType() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    final String newType = "NEW_TYPE";
    poi.changeType(newType);
    assertEquals(newType, poi.getType());
  }
View Full Code Here

TOP

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

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.