Changeset 11486 in josm for trunk/test
- Timestamp:
- 2017-01-22T19:14:12+01:00 (8 years ago)
- Location:
- trunk/test
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerActionTest.java
r11094 r11486 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertNotNull; 6 7 import java.io.IOException; 5 8 6 9 import org.junit.BeforeClass; … … 13 16 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 14 17 import org.openstreetmap.josm.io.GpxReaderTest; 18 import org.xml.sax.SAXException; 15 19 16 20 /** … … 40 44 osm.getNodes().iterator().next().getKeys()); 41 45 } 46 47 /** 48 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/14275">#14275</a> 49 * @throws IOException if an error occurs during reading 50 * @throws SAXException if any XML error occurs 51 */ 52 @Test 53 public void testTicket14275() throws IOException, SAXException { 54 assertNotNull(GpxReaderTest.parseGpxData(TestUtils.getRegressionDataFile(14275, "1485101437.8189685.gpx"))); 55 } 42 56 } -
trunk/test/unit/org/openstreetmap/josm/tools/date/DateUtilsTest.java
r11036 r11486 117 117 */ 118 118 @Test 119 public void testFromDate() throws Exception{119 public void testFromDate() { 120 120 assertEquals("1970-01-01T00:00:00Z", DateUtils.fromDate(new Date(0))); 121 121 assertEquals("1970-01-01T00:00:00.1Z", DateUtils.fromDate(new Date(100)));
Note:
See TracChangeset
for help on using the changeset viewer.