aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rss
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-09-01 11:18:11 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-09-01 11:18:11 +0200
commitf39fc917a8b87f4437095ef7d2d26c6344911e07 (patch)
tree5f2291a136145110b3775cc9a30675c59227edca /archiva-modules/archiva-web/archiva-rss
parent36249f664600be844e3204276d957f23767f83f0 (diff)
downloadarchiva-f39fc917a8b87f4437095ef7d2d26c6344911e07.tar.gz
archiva-f39fc917a8b87f4437095ef7d2d26c6344911e07.zip
Fixes for JDK11
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss')
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java2
1 files changed, 1 insertions, 1 deletions
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 )