Skip to content

Commit 52bdb4d

Browse files
committed
Update to use refactored DateTime APIs
1 parent 422f5a3 commit 52bdb4d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ public void test_Can_deserialize_Overview() throws IOException {
199199
assertTrue(techstacks.description.startsWith("This Website! "));
200200
assertEquals("https://techstacks.io", techstacks.getAppUrl());
201201
assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/screenshots/techstacks.png", techstacks.getScreenshotUrl());
202-
assertEquals(Utils.parseDate("2015-01-01T17:33:58.9892560"), techstacks.getCreated());
202+
assertEquals(Utils.fromDateTime("2015-01-01T17:33:58.9892560"), techstacks.getCreated());
203203
assertEquals("layoric", techstacks.getCreatedBy());
204-
assertEquals(Utils.parseDate("2015-01-12T23:34:12.4516410"), techstacks.getLastModified());
204+
assertEquals(Utils.fromDateTime("2015-01-12T23:34:12.4516410"), techstacks.getLastModified());
205205
assertEquals("layoric", techstacks.getLastModifiedBy());
206206
assertTrue(techstacks.getIsLocked());
207207
assertEquals("2", techstacks.getOwnerId());
208208
assertEquals("techstacks-website", techstacks.getSlug());
209-
assertEquals(Utils.parseDate("2015-01-12T23:34:12.4516410"), techstacks.getLastStatusUpdate());
209+
assertEquals(Utils.fromDateTime("2015-01-12T23:34:12.4516410"), techstacks.getLastStatusUpdate());
210210

211211
ArrayList<TechnologyInStack> techstackChoices = techstacks.getTechnologyChoices();
212212
assertEquals(10, techstackChoices.size());
@@ -219,9 +219,9 @@ public void test_Can_deserialize_Overview() throws IOException {
219219
assertEquals("https://servicestack.net", techChoice.getVendorUrl());
220220
assertEquals("https://servicestack.net", techChoice.getProductUrl());
221221
assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/servicestack-logo.png", techChoice.getLogoUrl());
222-
assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.getCreated());
222+
assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.getCreated());
223223
assertEquals("demisbellot", techChoice.getCreatedBy());
224-
assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.getLastModified());
224+
assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.getLastModified());
225225
assertEquals("demisbellot", techChoice.getLastModifiedBy());
226226
assertEquals("1", techChoice.getOwnerId());
227227
assertEquals("servicestack", techChoice.getSlug());

src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ class TechStacksServiceTests : TestCase() {
144144
Assert.assertTrue(techstacks.description!!.startsWith("The original TechStacks Website"))
145145
Assert.assertEquals("http://angular.techstacks.io", techstacks.appUrl)
146146
Assert.assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/screenshots/techstacks.png", techstacks.screenshotUrl)
147-
Assert.assertEquals(Utils.parseDate("2015-01-01T17:33:58.9892560"), techstacks.created)
147+
Assert.assertEquals(Utils.fromDateTime("2015-01-01T17:33:58.9892560"), techstacks.created)
148148
Assert.assertEquals("layoric", techstacks.createdBy)
149-
Assert.assertEquals(Utils.parseDate("2018-03-23T03:18:38.9958030"), techstacks.lastModified)
149+
Assert.assertEquals(Utils.fromDateTime("2018-03-23T03:18:38.9958030"), techstacks.lastModified)
150150
Assert.assertEquals("mythz", techstacks.lastModifiedBy)
151151
Assert.assertTrue(techstacks.isLocked!!)
152152
Assert.assertEquals("2", techstacks.ownerId)
153153
Assert.assertEquals("techstacks-website", techstacks.slug)
154-
Assert.assertEquals(Utils.parseDate("2018-03-23T03:12:44.0426320"), techstacks.lastStatusUpdate)
154+
Assert.assertEquals(Utils.fromDateTime("2018-03-23T03:12:44.0426320"), techstacks.lastStatusUpdate)
155155

156156
val techstackChoices = techstacks.technologyChoices
157157
Assert.assertEquals(11, techstackChoices.size)
@@ -164,9 +164,9 @@ class TechStacksServiceTests : TestCase() {
164164
Assert.assertEquals("https://servicestack.net", techChoice.vendorUrl)
165165
Assert.assertEquals("https://servicestack.net", techChoice.productUrl)
166166
Assert.assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/servicestack-logo.png", techChoice.logoUrl)
167-
Assert.assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.created)
167+
Assert.assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.created)
168168
Assert.assertEquals("demisbellot", techChoice.createdBy)
169-
Assert.assertEquals(Utils.parseDate("2018-03-14T06:01:13.9571660"), techChoice.lastModified)
169+
Assert.assertEquals(Utils.fromDateTime("2018-03-14T06:01:13.9571660"), techChoice.lastModified)
170170
Assert.assertEquals("mythz", techChoice.lastModifiedBy)
171171
Assert.assertEquals("1", techChoice.ownerId)
172172
Assert.assertEquals("servicestack", techChoice.slug)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy