Last change
on this file since 1813 was 1806, checked in by Gubaer, 15 years ago |
added OsmServerBackreferenceReader - reads primitives referring to a particular primitive (ways including a node, relations referring to a relation)
Extended relation dialog - now supports querying for parent relation(s)
|
File size:
487 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import org.junit.Test;
|
---|
5 |
|
---|
6 | import static org.junit.Assert.*;
|
---|
7 |
|
---|
8 | public class RelationTest {
|
---|
9 | @Test(expected=NullPointerException.class)
|
---|
10 | public void createNewRelation() {
|
---|
11 | new Relation(null);
|
---|
12 | }
|
---|
13 |
|
---|
14 | @Test
|
---|
15 | public void equalSemenaticsToNull() {
|
---|
16 | Relation relation = new Relation();
|
---|
17 | assertFalse(relation.hasEqualTechnicalAttributes(null));
|
---|
18 | }
|
---|
19 |
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.