[bisq-network/bisq-core] PriceFeedService#applyLatestPrice() refactoring (#149)
tau3
notifications at github.com
Wed Aug 22 09:09:51 UTC 2018
tau3 commented on this pull request.
> + public void testApplyLatestBisqMarketPrice() {
+ long initialTime = new Date().getTime();
+
+ List<TradeStatistics2> obsoletes = Lists.newArrayList(
+ mockTradeStatistics("a", new Date(initialTime), 5),
+ mockTradeStatistics("b", new Date(initialTime), 6),
+ mockTradeStatistics("b", new Date(initialTime), 7),
+ mockTradeStatistics("a", new Date(initialTime), 8));
+
+ List<TradeStatistics2> stats = new ArrayList<>(obsoletes);
+ stats.add(mockTradeStatistics("a", new Date(initialTime + 100), 8));
+ stats.add(mockTradeStatistics("b", new Date(initialTime + 200), 9));
+
+ Collections.shuffle(stats);
+
+ PriceFeedService service = new PriceFeedService(mock(HttpClient.class),
What dependency should be added?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-core/pull/149#discussion_r211881973
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180822/0c0b1b12/attachment.html>
More information about the bisq-github
mailing list