Examples of OsmUser


Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

                correctedUserName = "";
            } else {
                correctedUserName = userName;
            }

            return new OsmUser(userId, correctedUserName);
        } else {
            return OsmUser.NONE;
        }
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

  @Override
  public void processRow(ResultSet resultSet) throws SQLException {
        long id;
        int version;
        Date timestamp;
        OsmUser user;
        long changesetId;
        CommonEntityData entityData;
       
    id = resultSet.getLong("id");
        version = resultSet.getInt("version");
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

  public final void testProcess3() {
    testOsmWriter.process(
        new NodeContainer(
          new Node(
            new CommonEntityData(
                1234, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0, new ArrayList<Tag>()),
            20, 20)));
    // Nothing to assert; just expect no exception
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

   */
  @Test(expected = OsmosisRuntimeException.class)
  public final void testProcess4() {
    testOsmWriter.process(new NodeContainer(
        new Node(
            new CommonEntityData(1234, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0,
                new ArrayList<Tag>()),
            20, 20)));
    testOsmWriter.process(new BoundContainer(new Bound("source")));
    fail("Expected to throw an exception.");
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

   */
  @Test
  public final void testProcess6() {
    Way testWay;
   
    testWay = new Way(new CommonEntityData(3456, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0));
    testWay.getWayNodes().add(new WayNode(1234));
    testWay.getWayNodes().add(new WayNode(1235));
    testWay.getTags().add(new Tag("test_key1", "test_value1"));
   
    testOsmWriter.process(new WayContainer(testWay));
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

   */
  @Test(expected = OsmosisRuntimeException.class)
  public final void testProcess7() {
    Way testWay;
   
    testWay = new Way(new CommonEntityData(3456, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0));
    testWay.getWayNodes().add(new WayNode(1234));
    testWay.getWayNodes().add(new WayNode(1235));
    testWay.getTags().add(new Tag("test_key1", "test_value1"));
   
    testOsmWriter.process(new WayContainer(testWay));
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

   */
  @Test
  public final void testProcess8() {
    Relation testRelation;
   
    testRelation = new Relation(new CommonEntityData(3456, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0));
    testRelation.getMembers().add(new RelationMember(1234, EntityType.Node, "role1"));
    testRelation.getTags().add(new Tag("test_key1", "test_value1"));
   
    testOsmWriter.process(new RelationContainer(testRelation));
    // Nothing to assert; just expect no exception
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

   */
  @Test(expected = OsmosisRuntimeException.class)
  public final void testProcess9() {
    Relation testRelation;
   
    testRelation = new Relation(new CommonEntityData(3456, 0, new Date(), new OsmUser(12, "OsmosisTest"), 0));
    testRelation.getMembers().add(new RelationMember(1234, EntityType.Node, "role1"));
    testRelation.getTags().add(new Tag("test_key1", "test_value1"));
   
    testOsmWriter.process(new RelationContainer(testRelation));
    testOsmWriter.process(new BoundContainer(new Bound("source")));
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.OsmUser

  /**
   * Performs pre-test activities.
   */
  @Before
  public void setUp() {
    OsmUser user;
    List<Tag> tags;
   
    user = new OsmUser(12, "OsmosisTest");
     
    tags = Arrays.asList(new Tag("amenity", "bank"), new Tag("Akey", "Avalue"));
    amenityNode = new Node(new CommonEntityData(1101, 0, new Date(), user, 0, tags), 1, 2);
    amenityNodeContainer = new NodeContainer(amenityNode);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.