aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rss
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-30 23:07:09 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-30 23:07:09 +0200
commit9bb3c0d4ced88c689da66f6e759ebc14ef2a2ee6 (patch)
tree5fc226af2327b98a1a180c0b701652747cbceeb0 /archiva-modules/archiva-web/archiva-rss
parent51171b98a28979bde71377122806e2930bf40cf9 (diff)
downloadarchiva-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.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 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 );