Skip to content

Commit

Permalink
Update to use refactored DateTime APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 11, 2021
1 parent 422f5a3 commit 52bdb4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ public void test_Can_deserialize_Overview() throws IOException {
assertTrue(techstacks.description.startsWith("This Website! "));
assertEquals("https://techstacks.io", techstacks.getAppUrl());
assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/screenshots/techstacks.png", techstacks.getScreenshotUrl());
assertEquals(Utils.parseDate("2015-01-01T17:33:58.9892560"), techstacks.getCreated());
assertEquals(Utils.fromDateTime("2015-01-01T17:33:58.9892560"), techstacks.getCreated());
assertEquals("layoric", techstacks.getCreatedBy());
assertEquals(Utils.parseDate("2015-01-12T23:34:12.4516410"), techstacks.getLastModified());
assertEquals(Utils.fromDateTime("2015-01-12T23:34:12.4516410"), techstacks.getLastModified());
assertEquals("layoric", techstacks.getLastModifiedBy());
assertTrue(techstacks.getIsLocked());
assertEquals("2", techstacks.getOwnerId());
assertEquals("techstacks-website", techstacks.getSlug());
assertEquals(Utils.parseDate("2015-01-12T23:34:12.4516410"), techstacks.getLastStatusUpdate());
assertEquals(Utils.fromDateTime("2015-01-12T23:34:12.4516410"), techstacks.getLastStatusUpdate());

ArrayList<TechnologyInStack> techstackChoices = techstacks.getTechnologyChoices();
assertEquals(10, techstackChoices.size());
Expand All @@ -219,9 +219,9 @@ public void test_Can_deserialize_Overview() throws IOException {
assertEquals("https://servicestack.net", techChoice.getVendorUrl());
assertEquals("https://servicestack.net", techChoice.getProductUrl());
assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/servicestack-logo.png", techChoice.getLogoUrl());
assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.getCreated());
assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.getCreated());
assertEquals("demisbellot", techChoice.getCreatedBy());
assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.getLastModified());
assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.getLastModified());
assertEquals("demisbellot", techChoice.getLastModifiedBy());
assertEquals("1", techChoice.getOwnerId());
assertEquals("servicestack", techChoice.getSlug());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ class TechStacksServiceTests : TestCase() {
Assert.assertTrue(techstacks.description!!.startsWith("The original TechStacks Website"))
Assert.assertEquals("http://angular.techstacks.io", techstacks.appUrl)
Assert.assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/screenshots/techstacks.png", techstacks.screenshotUrl)
Assert.assertEquals(Utils.parseDate("2015-01-01T17:33:58.9892560"), techstacks.created)
Assert.assertEquals(Utils.fromDateTime("2015-01-01T17:33:58.9892560"), techstacks.created)
Assert.assertEquals("layoric", techstacks.createdBy)
Assert.assertEquals(Utils.parseDate("2018-03-23T03:18:38.9958030"), techstacks.lastModified)
Assert.assertEquals(Utils.fromDateTime("2018-03-23T03:18:38.9958030"), techstacks.lastModified)
Assert.assertEquals("mythz", techstacks.lastModifiedBy)
Assert.assertTrue(techstacks.isLocked!!)
Assert.assertEquals("2", techstacks.ownerId)
Assert.assertEquals("techstacks-website", techstacks.slug)
Assert.assertEquals(Utils.parseDate("2018-03-23T03:12:44.0426320"), techstacks.lastStatusUpdate)
Assert.assertEquals(Utils.fromDateTime("2018-03-23T03:12:44.0426320"), techstacks.lastStatusUpdate)

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

0 comments on commit 52bdb4d

Please sign in to comment.