diff --git a/test/unit/org/openstreetmap/josm/tools/ExceptionUtilTest.java b/test/unit/org/openstreetmap/josm/tools/ExceptionUtilTest.java
index f75af6a..15c382c 100644
a
|
b
|
import java.net.HttpURLConnection;
|
8 | 8 | import java.net.SocketException; |
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; |
13 | 14 | import org.junit.Test; |
… |
… |
import org.openstreetmap.josm.io.OsmApiException;
|
21 | 22 | import org.openstreetmap.josm.io.OsmApiInitializationException; |
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 | /** |
26 | 28 | * Unit tests of {@link ExceptionUtil} class. |
… |
… |
public class ExceptionUtilTest {
|
123 | 125 | ExceptionUtil.explainConflict(new OsmApiException(code, "header", ""))); |
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", ""))); |
128 | 134 | } |