diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-08-30 23:07:09 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-08-30 23:07:09 +0200 |
commit | 9bb3c0d4ced88c689da66f6e759ebc14ef2a2ee6 (patch) | |
tree | 5fc226af2327b98a1a180c0b701652747cbceeb0 /archiva-modules/archiva-web/archiva-rss | |
parent | 51171b98a28979bde71377122806e2930bf40cf9 (diff) | |
download | archiva-9bb3c0d4ced88c689da66f6e759ebc14ef2a2ee6.tar.gz archiva-9bb3c0d4ced88c689da66f6e759ebc14ef2a2ee6.zip |
Relaxing precision for date comparison in unit test
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.java | 2 |
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 89ddd63ce..8b27d5241 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 @@ -126,7 +126,7 @@ public class NewArtifactsRssFeedProcessorTest assertTrue( feed.getDescription().equals( "New artifacts found in repository 'test-repo' during repository scan." ) ); assertTrue( feed.getLanguage().equals( "en-us" ) ); - assertTrue( feed.getPublishedDate().toInstant().equals( whenGathered.toInstant() ) ); + assertTrue( feed.getPublishedDate().toInstant().truncatedTo( ChronoUnit.MILLIS ).equals( whenGathered.toInstant().truncatedTo( ChronoUnit.MILLIS ) ) ); List<SyndEntry> entries = feed.getEntries(); assertEquals( entries.size(), 1 ); |