Added a test to check the cleaning of server status in start/sop cycles (usually used in integration tests itself.

This commit is contained in:
andrea
2013-12-26 11:43:53 +01:00
parent 9639639420
commit a020d83c8a
2 changed files with 107 additions and 0 deletions
@@ -70,11 +70,17 @@ public class SubscriptionsStore {
m_storageService = storageService;
//reload any subscriptions persisted
if (LOG.isDebugEnabled()) {
LOG.debug("subscription tree before {}", dumpTree());
}
LOG.debug("Reloading all stored subscriptions...");
for (Subscription subscription : m_storageService.retrieveAllSubscriptions()) {
LOG.debug("Re-subscribing {} to topic {}", subscription.getClientId(), subscription.getTopic());
addDirect(subscription);
}
if (LOG.isDebugEnabled()) {
LOG.debug("subscription tree after {}", dumpTree());
}
LOG.debug("Finished loading");
}