From f39fc917a8b87f4437095ef7d2d26c6344911e07 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 1 Sep 2019 11:18:11 +0200 Subject: Fixes for JDK11 --- .../apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archiva-modules/archiva-web/archiva-rss') diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java index 8b27d5241..40cccc048 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java @@ -132,7 +132,7 @@ public class NewArtifactsRssFeedProcessorTest assertEquals( entries.size(), 1 ); assertTrue( entries.get( 0 ).getTitle().contains( "New Artifacts in Repository 'test-repo' as of " )); - assertTrue( entries.get( 0 ).getPublishedDate().toInstant().equals( whenGathered.toInstant() ) ); + assertTrue( entries.get( 0 ).getPublishedDate().toInstant().truncatedTo( ChronoUnit.MILLIS ).equals( whenGathered.toInstant().truncatedTo( ChronoUnit.MILLIS ) ) ); } private ArtifactMetadata createArtifact( String artifactId, String version, ZonedDateTime whenGathered ) -- cgit v1.2.3