@Test public void testConnectionSetup() { reset(intentSynchronizer); for (Intent intent : intentList) { intentSynchronizer.submit(eqExceptId(intent)); } replay(intentSynchronizer); peerConnectivityManager.start(); verify(intentSynchronizer); }
public void start() { configService.addListener(configListener); interfaceService.addListener(interfaceListener); setUpConnectivity(); }
PeerConnectivityManager { public void start() { configService.addListener(configListener); interfaceService.addListener(interfaceListener); setUpConnectivity(); } }
PeerConnectivityManager { public void start() { configService.addListener(configListener); interfaceService.addListener(interfaceListener); setUpConnectivity(); } PeerConnectivityManager(ApplicationId appId,
                                   IntentSynchronizationService intentSynchronizer,
                                   NetworkConfigService configService,
                                   ApplicationId routerAppId,
                                   InterfaceService interfaceService); }
PeerConnectivityManager { public void start() { configService.addListener(configListener); interfaceService.addListener(interfaceListener); setUpConnectivity(); } PeerConnectivityManager(ApplicationId appId,
                                   IntentSynchronizationService intentSynchronizer,
                                   NetworkConfigService configService,
                                   ApplicationId routerAppId,
                                   InterfaceService interfaceService); void start(); void stop(); }
PeerConnectivityManager { public void start() { configService.addListener(configListener); interfaceService.addListener(interfaceListener); setUpConnectivity(); } PeerConnectivityManager(ApplicationId appId,
                                   IntentSynchronizationService intentSynchronizer,
                                   NetworkConfigService configService,
                                   ApplicationId routerAppId,
                                   InterfaceService interfaceService); void start(); void stop();  }