Changeset 14068 in josm
- Timestamp:
- 2018-08-01T00:08:06+02:00 (6 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r14055 r14068 163 163 try { 164 164 final Object obj = get(PT_TIME); 165 final Date time = obj instanceof Date ? (Date) obj : DateUtils.fromString(obj.toString());166 t his.time = time.getTime() / 1000.;167 return time;165 final Date date = obj instanceof Date ? (Date) obj : DateUtils.fromString(obj.toString()); 166 time = date.getTime() / 1000.; 167 return date; 168 168 } catch (UncheckedParseException e) { 169 169 Logging.warn(e); -
trunk/src/org/openstreetmap/josm/gui/progress/swing/ProgressMonitorExecutor.java
r14052 r14068 51 51 t = cancellationException; 52 52 } catch (ExecutionException executionException) { 53 Logging.trace(executionException); 53 54 t = executionException.getCause(); 54 55 } catch (InterruptedException interruptedException) { -
trunk/test/unit/org/openstreetmap/josm/TestUtils.java
r14052 r14068 2 2 package org.openstreetmap.josm; 3 3 4 import static org.junit.Assert.assertArrayEquals; 4 5 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertArrayEquals;6 6 import static org.junit.Assert.assertTrue; 7 7 import static org.junit.Assert.fail; … … 52 52 import com.github.tomakehurst.wiremock.WireMockServer; 53 53 import com.github.tomakehurst.wiremock.core.WireMockConfiguration; 54 55 54 import com.google.common.io.ByteStreams; 56 55 … … 460 459 } 461 460 } catch (IOException e) { 462 fail(e.toString());461 throw new RuntimeException(e); 463 462 } 464 463 } -
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackActionTest.java
r14066 r14068 10 10 import org.junit.Test; 11 11 import org.openstreetmap.josm.data.gpx.GpxData; 12 import org.openstreetmap.josm.data.imagery.ImageryInfo;13 12 import org.openstreetmap.josm.gui.MainApplication; 14 13 import org.openstreetmap.josm.gui.layer.GpxLayerTest; -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/AllMappaintTests.java
r14048 r14068 5 5 import org.junit.runners.Suite; 6 6 import org.openstreetmap.josm.gui.mappaint.mapcss.AllMapCSSTests; 7 8 import junit.framework.TestCase;9 7 10 8 /** … … 17 15 AllMapCSSTests.class 18 16 }) 19 public class AllMappaintTests extends TestCase{17 public class AllMappaintTests { 20 18 21 19 } -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/AllMapCSSTests.java
r14048 r14068 4 4 import org.junit.runner.RunWith; 5 5 import org.junit.runners.Suite; 6 7 import junit.framework.TestCase;8 6 9 7 /** … … 18 16 ChildOrParentSelectorTest.class 19 17 }) 20 public class AllMapCSSTests extends TestCase{18 public class AllMapCSSTests { 21 19 22 20 } -
trunk/test/unit/org/openstreetmap/josm/io/ChangesetQueryUrlParserTest.java
r14040 r14068 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertFalse; 5 6 import static org.junit.Assert.assertNotNull; 6 7 import static org.junit.Assert.assertTrue; … … 95 96 q = parser.parse("open=true"); 96 97 assertNotNull(q); 97 assert Equals(Boolean.TRUE,q.getRestrictionToOpen());98 assertTrue(q.getRestrictionToOpen()); 98 99 99 100 // OK 100 101 q = parser.parse("open=false"); 101 102 assertNotNull(q); 102 assert Equals(Boolean.FALSE,q.getRestrictionToOpen());103 assertFalse(q.getRestrictionToOpen()); 103 104 104 105 // illegal value for open … … 118 119 q = parser.parse("closed=true"); 119 120 assertNotNull(q); 120 assert Equals(Boolean.TRUE,q.getRestrictionToClosed());121 assertTrue(q.getRestrictionToClosed()); 121 122 122 123 // OK 123 124 q = parser.parse("closed=false"); 124 125 assertNotNull(q); 125 assert Equals(Boolean.FALSE,q.getRestrictionToClosed());126 assertFalse(q.getRestrictionToClosed()); 126 127 127 128 // illegal value for open -
trunk/test/unit/org/openstreetmap/josm/io/nmea/NmeaReaderTest.java
r14067 r14068 172 172 @Test 173 173 public void testTicket16496() throws Exception { 174 assertEquals("2018-05-30T16:28:59.400Z", iso8601.format(readDate("$GNRMC,162859.400,A,4543.03388,N,00058.19870,W,45.252,209.07,300518,,,D,V*13"))); 175 assertEquals("2018-05-30T16:28:59.400Z", iso8601.format(readDate("$GNRMC,162859.40,A,4543.03388,N,00058.19870,W,45.252,209.07,300518,,,D,V*23"))); 176 assertEquals("2018-05-30T16:28:59.400Z", iso8601.format(readDate("$GNRMC,162859.4,A,4543.03388,N,00058.19870,W,45.252,209.07,300518,,,D,V*13"))); 174 assertEquals("2018-05-30T16:28:59.400Z", iso8601.format( 175 readDate("$GNRMC,162859.400,A,4543.03388,N,00058.19870,W,45.252,209.07,300518,,,D,V*13"))); 176 assertEquals("2018-05-30T16:28:59.400Z", iso8601.format( 177 readDate("$GNRMC,162859.40,A,4543.03388,N,00058.19870,W,45.252,209.07,300518,,,D,V*23"))); 178 assertEquals("2018-05-30T16:28:59.400Z", iso8601.format( 179 readDate("$GNRMC,162859.4,A,4543.03388,N,00058.19870,W,45.252,209.07,300518,,,D,V*13"))); 177 180 } 178 181 }
Note:
See TracChangeset
for help on using the changeset viewer.