@Test public void provider() { DiscoveryHelper helper = DiscoveryHelperFactory.provider(); assertThat(helper).isNotNull() .isExactlyInstanceOf(DiscoveryHelperImpl.class); }
public static DiscoveryHelper provider() { NetworkStore networkStore = NetworkStore.getInstance(); Enclave enclave = EnclaveFactory.create().enclave().get(); return new DiscoveryHelperImpl(networkStore,enclave); }
DiscoveryHelperFactory implements DiscoveryHelper { public static DiscoveryHelper provider() { NetworkStore networkStore = NetworkStore.getInstance(); Enclave enclave = EnclaveFactory.create().enclave().get(); return new DiscoveryHelperImpl(networkStore,enclave); } }
DiscoveryHelperFactory implements DiscoveryHelper { public static DiscoveryHelper provider() { NetworkStore networkStore = NetworkStore.getInstance(); Enclave enclave = EnclaveFactory.create().enclave().get(); return new DiscoveryHelperImpl(networkStore,enclave); } DiscoveryHelperFactory(); protected  DiscoveryHelperFactory(DiscoveryHelper discoveryHelper); }
DiscoveryHelperFactory implements DiscoveryHelper { public static DiscoveryHelper provider() { NetworkStore networkStore = NetworkStore.getInstance(); Enclave enclave = EnclaveFactory.create().enclave().get(); return new DiscoveryHelperImpl(networkStore,enclave); } DiscoveryHelperFactory(); protected  DiscoveryHelperFactory(DiscoveryHelper discoveryHelper); static DiscoveryHelper provider(); @Override NodeInfo buildCurrent(); @Override void onCreate(); }
DiscoveryHelperFactory implements DiscoveryHelper { public static DiscoveryHelper provider() { NetworkStore networkStore = NetworkStore.getInstance(); Enclave enclave = EnclaveFactory.create().enclave().get(); return new DiscoveryHelperImpl(networkStore,enclave); } DiscoveryHelperFactory(); protected  DiscoveryHelperFactory(DiscoveryHelper discoveryHelper); static DiscoveryHelper provider(); @Override NodeInfo buildCurrent(); @Override void onCreate();  }