Changeset 17990 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-07-11T00:49:02+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/vectortile/mapbox/style/MapboxVectorStyleTest.java
r17965 r17990 238 238 final String file = "file:/" + TestUtils.getTestDataRoot() + "/mapillary.json"; 239 239 final MapboxVectorStyle style = MapboxVectorStyle.getMapboxVectorStyle(file); 240 assertNotNull(style );240 assertNotNull(style, file); 241 241 // There are three "sources" in the mapillary.json file 242 242 assertEquals(3, style.getSources().size()); … … 244 244 .filter(source -> "mapillary-source".equals(source.getKey().getName())).map( 245 245 Map.Entry::getValue).findAny().orElse(null); 246 assertNotNull(mapillarySource );246 assertNotNull(mapillarySource, style.toString()); 247 247 mapillarySource.getStyleSources().forEach(StyleSource::loadStyleSource); 248 248 assertEquals(1, mapillarySource.getStyleSources().size()); 249 249 final MapCSSStyleSource mapillaryCssSource = (MapCSSStyleSource) mapillarySource.getStyleSources().get(0); 250 assertTrue(mapillaryCssSource.getErrors().isEmpty() );250 assertTrue(mapillaryCssSource.getErrors().isEmpty(), mapillaryCssSource.getErrors().toString()); 251 251 final MapCSSRule mapillaryOverview = getRule(mapillaryCssSource, "node", "mapillary-overview"); 252 assertNotNull(mapillaryOverview );252 assertNotNull(mapillaryOverview, mapillaryCssSource.toString()); 253 253 assertInInstructions(mapillaryOverview.declaration.instructions, "symbol-shape", new Keyword("circle")); 254 254 assertInInstructions(mapillaryOverview.declaration.instructions, "symbol-fill-color", ColorHelper.html2color("#05CB63"));
Note:
See TracChangeset
for help on using the changeset viewer.