Changeset 30737 in osm for applications/editors/josm/plugins/graphview/test
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/FullGraphCreationTest.java
r23189 r30737 35 35 static { 36 36 Map<VehiclePropertyType<?>, String> vehiclePropertyValues = 37 new HashMap< VehiclePropertyType<?>, String>();37 new HashMap<>(); 38 38 vehiclePropertyValues.put(VehiclePropertyTypes.WIDTH, "3.0"); 39 39 … … 56 56 } 57 57 public java.util.List<Implication> getImplications() { 58 return new LinkedList< Implication>();58 return new LinkedList<>(); 59 59 } 60 60 }; … … 162 162 private TransitionStructure createTestTransitionStructure(TestDataSource dataSource) { 163 163 164 LinkedList<RoadPropertyType<?>> properties = new LinkedList< RoadPropertyType<?>>();164 LinkedList<RoadPropertyType<?>> properties = new LinkedList<>(); 165 165 properties.add(new RoadWidth()); 166 166 167 return new GenericTransitionStructure< TestNode, TestWay, TestRelation, TestRelationMember>(167 return new GenericTransitionStructure<>( 168 168 ACCESS_PARAMS, TEST_RULESET, dataSource, properties); 169 169 } -
applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/TestDataSource.java
r23189 r30737 15 15 16 16 public static class TestPrimitive { 17 public final Map<String, String> tags = new HashMap< String, String>();17 public final Map<String, String> tags = new HashMap<>(); 18 18 }; 19 19 … … 35 35 36 36 public static class TestWay extends TestPrimitive { 37 public final List<TestNode> nodes = new LinkedList< TestNode>();37 public final List<TestNode> nodes = new LinkedList<>(); 38 38 @Override 39 39 public String toString() { … … 43 43 44 44 public static class TestRelation extends TestPrimitive { 45 public final Collection<TestRelationMember> members = new LinkedList< TestRelationMember>();45 public final Collection<TestRelationMember> members = new LinkedList<>(); 46 46 @Override 47 47 public String toString() { … … 70 70 71 71 72 public final Collection<TestNode> nodes = new LinkedList< TestNode>();73 public final Collection<TestWay> ways = new LinkedList< TestWay>();74 public final Collection<TestRelation> relations = new LinkedList< TestRelation>();72 public final Collection<TestNode> nodes = new LinkedList<>(); 73 public final Collection<TestWay> ways = new LinkedList<>(); 74 public final Collection<TestRelation> relations = new LinkedList<>(); 75 75 76 76 -
applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReaderTest.java
r30559 r30737 101 101 102 102 private static TagGroup createTagGroup(Tag... tags) { 103 Map<String, String> tagMap = new HashMap< String, String>();103 Map<String, String> tagMap = new HashMap<>(); 104 104 for (Tag tag : tags) { 105 105 tagMap.put(tag.key, tag.value); -
applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/util/TagConditionLogicTest.java
r30550 r30737 20 20 @Before 21 21 public void setUp() { 22 Map<String, String> mapA = new HashMap< String, String>();22 Map<String, String> mapA = new HashMap<>(); 23 23 mapA.put("key1", "value1"); 24 24 mapA.put("key2", "value2"); … … 26 26 groupA = new MapBasedTagGroup(mapA); 27 27 28 Map<String, String> mapB = new HashMap< String, String>();28 Map<String, String> mapB = new HashMap<>(); 29 29 mapB.put("key1", "value1"); 30 30 mapB.put("key4", "value4"); -
applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/visualisation/FloatPropertyColorSchemeTest.java
r23189 r30737 18 18 public void setUp() { 19 19 20 Map<Float, Color> colorMap = new HashMap< Float, Color>();20 Map<Float, Color> colorMap = new HashMap<>(); 21 21 colorMap.put( 5f, new Color( 42, 42, 42)); 22 22 colorMap.put(10f, new Color(100, 100, 100));
Note:
See TracChangeset
for help on using the changeset viewer.