-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GMT+12 MOJURO TimeZone to ReportStream #16864
Changes from 1 commit
a308fd9
b709cf5
61e0237
02c5b89
e6e2ef9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ package gov.cdc.prime.router | |
import assertk.assertThat | ||
import assertk.assertions.isEqualTo | ||
import assertk.assertions.isFalse | ||
import assertk.assertions.isNotEqualTo | ||
import assertk.assertions.isNull | ||
import assertk.assertions.isTrue | ||
import gov.cdc.prime.router.unittest.UnitTestUtils | ||
|
@@ -273,4 +274,11 @@ internal class ReceiverTests { | |
val receiver = Receiver("elr", "IGNORE", Topic.COVID_19, CustomerStatus.INACTIVE, translatorConfig) | ||
assertThat(receiver.transportType.type).isEqualTo("NULL") | ||
} | ||
|
||
@Test | ||
fun `test MOJURO receiver timezone`() { | ||
val shouldWork1 = | ||
ZonedDateTime.of(2024, 12, 20, 0, 0, 0, 0, ZoneId.of(USTimeZone.MAJURO.zoneId)).toOffsetDateTime() | ||
assertThat(shouldWork1).isNotEqualTo("2024-12-20T00:00+12:00") | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this test actually testing? Is testing that it works or that it doesn't work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test to see, it is working. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't it be testing that the date gets converted to MAJURO than? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes, are you correct. I will test the date get converted to MAJURO as well. Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the test the date get converted to MAJURO. Done. |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: test name typo.
Also, why is it testing
isNotEqualTo
if it's creating a time in MHT and comparing it to what appears to be the same datetime?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, Andrew. It is fixed.