@Test public void testDeactivate() { assertEquals(0, this.baseDir.list().length); this.initialRegistration.activate(this.props); this.initialRegistration.deactivate(); verify(this.serviceSettings, times(1)).removeSyncRoot(this.baseDir); }
@Deactivate protected void deactivate() { logger.debug("deactivate()"); if (this.localDir != null) { this.serviceSettings.removeSyncRoot(this.localDir); } this.filterRoots = null; this.localDir = null; this.overwriteConfigFiles = null; this.syncOnceType = null; this.willSyncOnce = null; }
InitialRegistrationImpl { @Deactivate protected void deactivate() { logger.debug("deactivate()"); if (this.localDir != null) { this.serviceSettings.removeSyncRoot(this.localDir); } this.filterRoots = null; this.localDir = null; this.overwriteConfigFiles = null; this.syncOnceType = null; this.willSyncOnce = null; } }
InitialRegistrationImpl { @Deactivate protected void deactivate() { logger.debug("deactivate()"); if (this.localDir != null) { this.serviceSettings.removeSyncRoot(this.localDir); } this.filterRoots = null; this.localDir = null; this.overwriteConfigFiles = null; this.syncOnceType = null; this.willSyncOnce = null; }  }
InitialRegistrationImpl { @Deactivate protected void deactivate() { logger.debug("deactivate()"); if (this.localDir != null) { this.serviceSettings.removeSyncRoot(this.localDir); } this.filterRoots = null; this.localDir = null; this.overwriteConfigFiles = null; this.syncOnceType = null; this.willSyncOnce = null; }   }
InitialRegistrationImpl { @Deactivate protected void deactivate() { logger.debug("deactivate()"); if (this.localDir != null) { this.serviceSettings.removeSyncRoot(this.localDir); } this.filterRoots = null; this.localDir = null; this.overwriteConfigFiles = null; this.syncOnceType = null; this.willSyncOnce = null; }    }