Rename test so that it will run from Maven and the pipeline since it didn't before. Fix small bug that made the test error out. (#6273)

This commit is contained in:
Luke deGruchy 2024-09-10 11:44:53 -04:00 committed by GitHub
parent 2717a0dc95
commit c00292767d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
package ca.uhn.fhir.cr.r4; package ca.uhn.fhir.cr.r4;
import ca.uhn.fhir.jpa.cache.ResourceChangeListenerCacheRefresherImpl; import ca.uhn.fhir.jpa.cache.IResourceChangeListenerCacheRefresher;
import ca.uhn.fhir.jpa.cache.ResourceChangeListenerRegistryImpl; import ca.uhn.fhir.jpa.cache.ResourceChangeListenerRegistryImpl;
import org.hl7.fhir.r4.model.DateType; import org.hl7.fhir.r4.model.DateType;
import org.hl7.fhir.r4.model.IdType; import org.hl7.fhir.r4.model.IdType;
@ -16,13 +16,13 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNotNull;
@ExtendWith(SpringExtension.class) @ExtendWith(SpringExtension.class)
public class CrResourceListenerTests extends BaseCrR4TestServer { public class CrResourceListenerTest extends BaseCrR4TestServer {
@Autowired @Autowired
EvaluationSettings myEvaluationSettings; EvaluationSettings myEvaluationSettings;
@Autowired @Autowired
ResourceChangeListenerRegistryImpl myResourceChangeListenerRegistry; ResourceChangeListenerRegistryImpl myResourceChangeListenerRegistry;
@Autowired @Autowired
ResourceChangeListenerCacheRefresherImpl myResourceChangeListenerCacheRefresher; IResourceChangeListenerCacheRefresher myResourceChangeListenerCacheRefresher;
public MeasureReport runEvaluateMeasure(String periodStart, String periodEnd, String subject, String measureId, String reportType, String practitioner){ public MeasureReport runEvaluateMeasure(String periodStart, String periodEnd, String subject, String measureId, String reportType, String practitioner){
@ -118,7 +118,7 @@ public class CrResourceListenerTests extends BaseCrR4TestServer {
myResourceChangeListenerCacheRefresher.refreshExpiredCachesAndNotifyListeners(); myResourceChangeListenerCacheRefresher.refreshExpiredCachesAndNotifyListeners();
//cache should be invalidated for matching library name and version //cache should be invalidated for matching library name and version
assertThat(myEvaluationSettings.getLibraryCache()).hasSize(6); assertThat(myEvaluationSettings.getLibraryCache()).hasSize(7);
} }
@Test @Test