mirror of https://github.com/zlatinb/muwire
add empty constructors for mocking
parent
9c85dfa7b4
commit
49bb78688f
|
@ -10,6 +10,8 @@ abstract class ConnectionManager {
|
||||||
|
|
||||||
final EventBus eventBus
|
final EventBus eventBus
|
||||||
|
|
||||||
|
ConnectionManager() {}
|
||||||
|
|
||||||
ConnectionManager(EventBus eventBus) {
|
ConnectionManager(EventBus eventBus) {
|
||||||
this.eventBus = eventBus
|
this.eventBus = eventBus
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,8 @@ class HostCache extends Service {
|
||||||
final Destination myself
|
final Destination myself
|
||||||
final Map<Destination, Host> hosts = new ConcurrentHashMap<>()
|
final Map<Destination, Host> hosts = new ConcurrentHashMap<>()
|
||||||
|
|
||||||
|
HostCache(){}
|
||||||
|
|
||||||
public HostCache(TrustService trustService, File storage, int interval,
|
public HostCache(TrustService trustService, File storage, int interval,
|
||||||
MuWireSettings settings, Destination myself) {
|
MuWireSettings settings, Destination myself) {
|
||||||
this.trustService = trustService
|
this.trustService = trustService
|
||||||
|
|
Loading…
Reference in New Issue