Changeset 10487 in josm for trunk/test/unit
- Timestamp:
- 2016-06-25T11:15:22+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/ExceptionUtilTest.java
r9669 r10487 9 9 import java.net.URL; 10 10 import java.net.UnknownHostException; 11 import java.util.TimeZone; 11 12 12 13 import org.junit.BeforeClass; … … 22 23 import org.openstreetmap.josm.io.auth.CredentialsManager; 23 24 import org.openstreetmap.josm.tools.date.DateUtils; 25 import org.openstreetmap.josm.tools.date.DateUtilsTest; 24 26 25 27 /** … … 124 126 assertEquals("<html>Closing of changeset <strong>1</strong> failed <br>because it has already been closed.", 125 127 ExceptionUtil.explainConflict(new OsmApiException(code, "The changeset 1 was closed at xxx", ""))); 128 assertEquals("<html>Closing of changeset <strong>1</strong> failed<br> because it has already been closed on 2016-01-01 12:34:56.", 129 ExceptionUtil.explainConflict(new OsmApiException(code, "The changeset 1 was closed at 2016-01-01 12:34:56 UTC", ""))); 130 DateUtilsTest.setTimeZone(TimeZone.getTimeZone("Europe/Berlin")); 131 TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin")); 126 132 assertEquals("<html>Closing of changeset <strong>1</strong> failed<br> because it has already been closed on 2016-01-01 13:34:56.", 127 133 ExceptionUtil.explainConflict(new OsmApiException(code, "The changeset 1 was closed at 2016-01-01 12:34:56 UTC", "")));
Note:
See TracChangeset
for help on using the changeset viewer.