Skip to content

Commit

Permalink
chore: organize dependency versions and update vulnerable jackson-dat…
Browse files Browse the repository at this point in the history
…abind version for fusion-endpoint (#11659)

* Organize dependency versions

* Retrigger validation

* Update tests to reflect changes in FasterXML/jackson-databind#2643
  • Loading branch information
fluorumlabs committed Sep 3, 2021
1 parent e27d467 commit 2d02bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/java/fusion-endpoint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<packaging>jar</packaging>

<properties>
<validation.api.version>2.0.1.Final</validation.api.version>
<jackson.version>2.10.2</jackson.version>
<spring.version>5.3.0</spring.version>
<spring.autoconfigure.version>2.2.0.RELEASE</spring.autoconfigure.version>
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
Expand Down Expand Up @@ -111,6 +109,7 @@
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson.version}</version>
</dependency>

<!-- Needed for security annotations -->
<dependency>
<groupId>javax.annotation</groupId>
Expand Down
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 2d02bb3

Please sign in to comment.