From aaa3d117e2966b16270b862ff3c8788413afa931 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Fri, 1 Sep 2017 14:23:05 +0200 Subject: [PATCH] Update versions in libraries (#2543) * Bump datanucleus versions * Update HikariCP * Update Hoverfly-java --- libraries/pom.xml | 14 +++++++------- .../java/com/baeldung/date/DateDiffUnitTest.java | 11 ----------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/libraries/pom.xml b/libraries/pom.xml index 9bbc0c41d2..44be5c9c09 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -190,7 +190,7 @@ io.specto hoverfly-java - 0.8.0 + 0.8.1 org.apache.httpcomponents @@ -295,22 +295,22 @@ org.datanucleus javax.jdo - 3.2.0-m6 + 3.2.0-m7 org.datanucleus datanucleus-core - 5.1.0-m1 + 5.1.1 org.datanucleus datanucleus-api-jdo - 5.1.0-m1 + 5.1.1 org.datanucleus datanucleus-rdbms - 5.1.0-m1 + 5.1.1 org.datanucleus @@ -364,7 +364,7 @@ com.zaxxer HikariCP - 2.6.1 + 2.6.3 compile @@ -565,7 +565,7 @@ 1.1.3-rc.5 1.4.0 1.1.0 - 4.1.10.Final + 4.1.15.Final 4.1 4.12 0.10 diff --git a/libraries/src/test/java/com/baeldung/date/DateDiffUnitTest.java b/libraries/src/test/java/com/baeldung/date/DateDiffUnitTest.java index 6046781619..14d3f925f5 100644 --- a/libraries/src/test/java/com/baeldung/date/DateDiffUnitTest.java +++ b/libraries/src/test/java/com/baeldung/date/DateDiffUnitTest.java @@ -28,17 +28,6 @@ public class DateDiffUnitTest { assertEquals(diff, 6); } - @Test - public void givenTwoDatesInJava8_whenDifferentiating_thenWeGetSix() { - LocalDate now = LocalDate.now(); - LocalDate sixDaysBehind = now.minusDays(6); - - Duration duration = Duration.between(now, sixDaysBehind); - long diff = Math.abs(duration.toDays()); - - assertEquals(diff, 6); - } - @Test public void givenTwoDateTimesInJava8_whenDifferentiating_thenWeGetSix() { LocalDateTime now = LocalDateTime.now();