File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/test/java/com/bitpay/sdk/util Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ public class DateDeserializerTest {
1616 @ Test
1717 public void it_should_deserialize_date () throws IOException {
1818 // given
19+ System .setProperty ("user.timezone" , "UTC" );
1920 DateDeserializer testedClass = new DateDeserializer ();
2021 JsonParser jsonParser = Mockito .mock (JsonParser .class );
2122 DeserializationContext deserializationContext = Mockito .mock (DeserializationContext .class );
22- Mockito .when (jsonParser .getText ()).thenReturn ("1977-05-24T20 :07:03.232Z" );
23+ Mockito .when (jsonParser .getText ()).thenReturn ("1977-05-24T18 :07:03.232Z" );
2324
2425 // when
2526 Long result = testedClass .deserialize (jsonParser , deserializationContext );
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ public class DateSerializerTest {
1515 @ Test
1616 public void it_should_serialize_date () throws IOException {
1717 // given
18+ System .setProperty ("user.timezone" , "UTC" );
1819 DateSerializer testedClass = new DateSerializer ();
1920 JsonGenerator jsonGenerator = Mockito .mock (JsonGenerator .class );
2021 SerializerProvider serializerProvider = Mockito .mock (SerializerProvider .class );
@@ -24,6 +25,6 @@ public void it_should_serialize_date() throws IOException {
2425 testedClass .serialize (value , jsonGenerator , serializerProvider );
2526
2627 // then
27- Mockito .verify (jsonGenerator , Mockito .times (1 )).writeString ("1977-05-24T20 :07:03.232Z" );
28+ Mockito .verify (jsonGenerator , Mockito .times (1 )).writeString ("1977-05-24T18 :07:03.232Z" );
2829 }
2930}
You can’t perform that action at this time.
0 commit comments