You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* TEMPORARY: the following test was added while we temporarily accept java-default-format fallback while Android fixes their bug in sending the incorrect format. Remove them once the ISO format is accepted again. This test exists only to document and pin down the temporary fallback behaviour, and MUST fail once that fallback is gone.
42
+
/* ==================== TEMPORARY: start of java-default-format fallback tests ====================
43
+
* The 3 tests below were added while we temporarily accept the java-default-format fallback
44
+
* while Android fixes their bug in sending the incorrect format. These tests exist only to
45
+
* document and pin down the temporary fallback behaviour, and MUST fail (or get removed) once
46
+
* that fallback is gone.
41
47
*/
42
48
"save the articles when the date is in the java default format" in newSetup {
43
49
valjavaDefaultDateTimeString="Fri Jan 01 00:00:01 GMT 2010"
@@ -48,6 +54,37 @@ class SaveArticlesControllerSpec extends Specification with Mockito {
48
54
49
55
there was one(updateSavedArticles).save(any[Map[String, String]](), any[SavedArticles]())
50
56
}
57
+
58
+
"save the java default format date to the db as the correct parsed LocalDateTime" in newSetup {
59
+
valjavaDefaultDateTimeString="Fri Jan 01 00:00:01 GMT 2010"
0 commit comments