add empty constructors for mocking

pull/4/head
Zlatin Balevsky 2018-07-25 23:56:56 +01:00
parent 9c85dfa7b4
commit 49bb78688f
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,8 @@ abstract class ConnectionManager {
final EventBus eventBus
ConnectionManager() {}
ConnectionManager(EventBus eventBus) {
this.eventBus = eventBus
}

View File

@ -23,6 +23,8 @@ class HostCache extends Service {
final Destination myself
final Map<Destination, Host> hosts = new ConcurrentHashMap<>()
HostCache(){}
public HostCache(TrustService trustService, File storage, int interval,
MuWireSettings settings, Destination myself) {
this.trustService = trustService