Package de.hpi.eworld.importer

Examples of de.hpi.eworld.importer.Osm2Model


   * Helper method to parse a given input file and compare the created model with key
   * values extracted from the original xml file
   * @param inputFilename
   */
  private void testParseFileInputStream(String inputFilename) {
    Osm2Model converter = new Osm2Model();
    this.mmmu = ModelManagerMockUp.getInstance();
    ModelManager mm = ModelManager.getInstance();
    mm.clearModel();
    mm.addObserver(this.mmmu);
    try {
      converter.parseFile(new FileInputStream(inputFilename));
    }
    catch (Exception xcp) {
      xcp.printStackTrace();
    }
  }
View Full Code Here


   * generated one.
   */
  @Ignore // test takes forever, ignore it for now
  @Test
  public void testSaveLoad_Imported() {
    Osm2Model converter = new Osm2Model();
    ModelManager mm = ModelManager.getInstance();
    ModelManagerMockUp mmmu = ModelManagerMockUp.getInstance();
    mm.addObserver(mmmu);
    mm.notifyObservers(new ObserverNotification(NotificationType.elementAdded));
    try {
      converter.parseFile(new FileInputStream("./resources/rostock.osm"));
    }
    catch (Exception xcp) {
      xcp.printStackTrace();
    }
    mm.deleteObserver(mmmu);
View Full Code Here

TOP

Related Classes of de.hpi.eworld.importer.Osm2Model

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.