From: Jim Procter Date: Mon, 1 Aug 2016 12:46:09 +0000 (+0100) Subject: JAL-2164 prevent jalview news from opening X-Git-Tag: Release_2_10_0~126^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4eb9955fd442f5fa51c1771d00b6c352ff227a4c;p=jalview.git JAL-2164 prevent jalview news from opening --- diff --git a/test/jalview/io/Jalview2xmlTests.java b/test/jalview/io/Jalview2xmlTests.java index 2c55909..ddc615f 100644 --- a/test/jalview/io/Jalview2xmlTests.java +++ b/test/jalview/io/Jalview2xmlTests.java @@ -44,7 +44,9 @@ import jalview.schemes.ColourSchemeI; import jalview.viewmodel.AlignmentViewport; import java.io.File; +import java.time.Instant; import java.util.ArrayList; +import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -67,6 +69,9 @@ public class Jalview2xmlTests { jalview.bin.Jalview.main(new String[] { "-props", "test/jalview/io/testProps.jvprops" }); + jalview.bin.Cache.setProperty("JALVIEW_NEWS_RSS_LASTMODIFIED", + Cache.date_format.format(Date.from(Instant.now().plusSeconds( + 3600)))); } /**