Skip to content

Commit

Permalink
Update tests to reflect changes in FasterXML/jackson-databind#2643
Browse files Browse the repository at this point in the history
  • Loading branch information
fluorumlabs committed Sep 3, 2021
1 parent 1275b09 commit c62da41
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ public class DateTimeConversionTest extends BaseTypeConversionTest {
@Test
public void should_ConvertToDate_When_ReceiveATimeStampAsNumber() {
String timeStamp = "1546300800000"; // 01-01-2019 00:00:00
String expectedValue = "\"2019-01-02T00:00:00.000+0000\"";
String expectedValue = "\"2019-01-02T00:00:00.000+00:00\"";
assertEqualExpectedValueWhenCallingMethod("addOneDayToDate", timeStamp,
expectedValue);
}

@Test
public void should_ConvertToDate_When_ReceiveATimeStampAsString() {
String timeStamp = "\"1546300800000\""; // 01-01-2019 00:00:00
String expected = "\"2019-01-02T00:00:00.000+0000\"";
String expected = "\"2019-01-02T00:00:00.000+00:00\"";
assertEqualExpectedValueWhenCallingMethod("addOneDayToDate", timeStamp,
expected);
}

@Test
public void should_ConvertToDate_When_ReceiveADate() {
String inputDate = "\"2019-01-01\"";
String expectedTimestamp = "\"2019-01-02T00:00:00.000+0000\"";
String expectedTimestamp = "\"2019-01-02T00:00:00.000+00:00\"";
assertEqualExpectedValueWhenCallingMethod("addOneDayToDate", inputDate,
expectedTimestamp);
}
Expand Down

0 comments on commit c62da41

Please sign in to comment.