diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2014-10-22 19:51:58 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2014-10-22 20:42:40 +0200 |
commit | fa50bde7f65d53ee842dd061e18ae49cfbab8ed7 (patch) | |
tree | cb8694c7f66ed136f8511936a0ddfe9ffab8c046 /tests/src/cgeo/geocaching | |
parent | 03464fa36c3f9c67b1373e30682ace9e85a54dec (diff) | |
download | cgeo-fa50bde7f65d53ee842dd061e18ae49cfbab8ed7.zip cgeo-fa50bde7f65d53ee842dd061e18ae49cfbab8ed7.tar.gz cgeo-fa50bde7f65d53ee842dd061e18ae49cfbab8ed7.tar.bz2 |
Use uniform date format in tests
Part of work on #4416.
Diffstat (limited to 'tests/src/cgeo/geocaching')
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java b/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java index 09139f2..ddd2310 100644 --- a/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java +++ b/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java @@ -86,7 +86,7 @@ public class GC1ZXX2 extends MockedCache { @Override public Date getHiddenDate() { try { - return GCLogin.parseGcCustomDate("16/10/2009", getDateFormat()); + return GCLogin.parseGcCustomDate("2009-10-16", getDateFormat()); } catch (ParseException e) { // intentionally left blank } diff --git a/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java b/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java index 3fe105d..817f285 100644 --- a/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java +++ b/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java @@ -121,7 +121,7 @@ public class GC2CJPF extends MockedCache { @Override public Date getHiddenDate() { try { - return GCLogin.parseGcCustomDate("31/07/2010", getDateFormat()); + return GCLogin.parseGcCustomDate("2010-07-31", getDateFormat()); } catch (ParseException e) { // intentionally left blank } diff --git a/tests/src/cgeo/geocaching/test/mock/GC2JVEH.java b/tests/src/cgeo/geocaching/test/mock/GC2JVEH.java index a1337cd..be27a2e 100644 --- a/tests/src/cgeo/geocaching/test/mock/GC2JVEH.java +++ b/tests/src/cgeo/geocaching/test/mock/GC2JVEH.java @@ -89,7 +89,7 @@ public class GC2JVEH extends MockedCache { @Override public Date getHiddenDate() { try { - return GCLogin.parseGcCustomDate("28/11/2010", getDateFormat()); + return GCLogin.parseGcCustomDate("2010-11-28", getDateFormat()); } catch (ParseException e) { // intentionally left blank } diff --git a/tests/src/cgeo/geocaching/test/mock/MockedCache.java b/tests/src/cgeo/geocaching/test/mock/MockedCache.java index cd482f8..0ef6488 100644 --- a/tests/src/cgeo/geocaching/test/mock/MockedCache.java +++ b/tests/src/cgeo/geocaching/test/mock/MockedCache.java @@ -12,14 +12,14 @@ import cgeo.geocaching.utils.TextUtils; import org.apache.commons.lang3.StringUtils; import org.mapsforge.core.IOUtils; +import junit.framework.Assert; + import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.List; -import junit.framework.Assert; - public abstract class MockedCache implements ICache { final protected Geopoint coords; @@ -44,7 +44,7 @@ public abstract class MockedCache implements ICache { } public static String getDateFormat() { - return "dd/MM/yyyy"; + return "yyyy-MM-dd"; } /* |