Try for a test fix and a bit of cleanup

This commit is contained in:
James Agnew 2019-02-16 16:11:33 -05:00
parent c6fcb4fcbf
commit 14e04085ae
3 changed files with 11 additions and 5 deletions

View File

@ -4,6 +4,7 @@ package ca.uhn.fhir.jpa.subscription.module.cache;
import ca.uhn.fhir.jpa.subscription.module.BaseSubscriptionDstu3Test;
import org.hl7.fhir.dstu3.model.Subscription;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
@ -16,8 +17,13 @@ public class SubscriptionRegistryTest extends BaseSubscriptionDstu3Test {
@Autowired
SubscriptionRegistry mySubscriptionRegistry;
@Before
public void clearRegistryBefore() {
mySubscriptionRegistry.unregisterAllSubscriptions();
}
@After
public void clearRegistry() {
public void clearRegistryAfter() {
mySubscriptionRegistry.unregisterAllSubscriptions();
}