From 49bb78688f4bfd5504d7b8f3aa63d4d9409da09c Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 25 Jul 2018 23:56:56 +0100 Subject: [PATCH] add empty constructors for mocking --- .../groovy/com/muwire/core/connection/ConnectionManager.groovy | 2 ++ core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/src/main/groovy/com/muwire/core/connection/ConnectionManager.groovy b/core/src/main/groovy/com/muwire/core/connection/ConnectionManager.groovy index 469db8a8..85be51d2 100644 --- a/core/src/main/groovy/com/muwire/core/connection/ConnectionManager.groovy +++ b/core/src/main/groovy/com/muwire/core/connection/ConnectionManager.groovy @@ -10,6 +10,8 @@ abstract class ConnectionManager { final EventBus eventBus + ConnectionManager() {} + ConnectionManager(EventBus eventBus) { this.eventBus = eventBus } diff --git a/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy b/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy index f4763297..ea76d72e 100644 --- a/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy +++ b/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy @@ -23,6 +23,8 @@ class HostCache extends Service { final Destination myself final Map hosts = new ConcurrentHashMap<>() + HostCache(){} + public HostCache(TrustService trustService, File storage, int interval, MuWireSettings settings, Destination myself) { this.trustService = trustService