Changeset 10824 in josm for trunk/test
- Timestamp:
- 2016-08-17T09:18:31+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/GpxLayerTest.java
r10467 r10824 74 74 assertEquals("foo", layer.getName()); 75 75 assertFalse(layer.isLocalFile()); 76 assertEquals(Color.MAGENTA, layer.getColor (false));76 assertEquals(Color.MAGENTA, layer.getColorProperty().get()); 77 77 assertEquals("<html>0 tracks, 0 routes, 0 waypoints<br>Length: < 0.01 m<br></html>", layer.getToolTipText()); 78 78 … … 80 80 assertEquals("bar", layer2.getName()); 81 81 assertTrue(layer2.isLocalFile()); 82 assertEquals(Color.MAGENTA, layer2.getColor (true));82 assertEquals(Color.MAGENTA, layer2.getColorProperty().get()); 83 83 assertEquals("<html>0 tracks, 0 routes, 0 waypoints<br>Length: < 0.01 m<br></html>", layer2.getToolTipText()); 84 84 -
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java
r9809 r10824 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import java.awt.Color; 6 7 import java.io.FileNotFoundException; 7 8 import java.io.IOException; … … 17 18 import org.openstreetmap.josm.data.gpx.GpxData; 18 19 import org.openstreetmap.josm.data.gpx.WayPoint; 20 import org.openstreetmap.josm.data.preferences.ColorProperty; 19 21 import org.openstreetmap.josm.io.GpxReaderTest; 20 22 import org.openstreetmap.josm.tools.ColorHelper; … … 125 127 static List<String> calculateColors(String fileName, String layerName, int n) throws IOException, SAXException { 126 128 final GpxData data = GpxReaderTest.parseGpxData(fileName); 127 final GpxDrawHelper gdh = new GpxDrawHelper(data );129 final GpxDrawHelper gdh = new GpxDrawHelper(data, new ColorProperty("x", Color.MAGENTA)); 128 130 gdh.readPreferences(layerName); 129 131 gdh.calculateColors(); -
trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayerTest.java
r10378 r10824 42 42 43 43 assertEquals("foo", layer.getName()); 44 assertEquals(Color.magenta, layer.getColor (false));44 assertEquals(Color.magenta, layer.getColorProperty().get()); 45 45 assertNotNull(layer.getIcon()); 46 46 assertEquals("0 markers", layer.getToolTipText()); … … 59 59 60 60 assertEquals("bar", layer.getName()); 61 assertEquals(Color.magenta, layer.getColor (false));61 assertEquals(Color.magenta, layer.getColorProperty().get()); 62 62 assertNotNull(layer.getIcon()); 63 63 assertEquals("3 markers", layer.getToolTipText());
Note:
See TracChangeset
for help on using the changeset viewer.