added tests

This commit is contained in:
Ken Stevens 2019-09-30 21:07:37 -04:00
parent b757d95d64
commit 082dff71c2
1 changed files with 10 additions and 0 deletions

View File

@ -54,4 +54,14 @@ public class SubscriptionRegistryTest extends BaseSubscriptionRegistryTest {
assertFalse(newActiveSubscription == origActiveSubscription); assertFalse(newActiveSubscription == origActiveSubscription);
} }
@Test
public void updateRemove() {
Subscription subscription = createSubscription();
assertRegistrySize(0);
mySubscriptionRegistry.registerSubscriptionUnlessAlreadyRegistered(subscription);
assertRegistrySize(1);
mySubscriptionRegistry.unregisterSubscription(subscription.getId());
assertRegistrySize(0);
}
} }