Fix static code analysis warning

This commit is contained in:
Martha 2024-04-10 11:07:56 -07:00
parent 04e33050e8
commit 05f48705a3

View File

@ -57,23 +57,6 @@ public class SubscriptionSubmitInterceptorLoaderTest {
@Configuration
public static class MyConfig {
@Bean
public FhirContext fhirContext() {
return FhirContext.forR4();
}
@Bean
public PartitionSettings partitionSettings() {
return new PartitionSettings();
}
@Bean
public JpaStorageSettings storageSettings() {
JpaStorageSettings storageSettings = new JpaStorageSettings();
storageSettings.addSupportedSubscriptionType(Subscription.SubscriptionChannelType.RESTHOOK);
return storageSettings;
}
@MockBean
private ISearchParamProvider mySearchParamProvider;
@MockBean
@ -94,6 +77,23 @@ public class SubscriptionSubmitInterceptorLoaderTest {
private IHapiTransactionService myHapiTransactionService;
@MockBean
private ResourceIndexHasher myResourceIndexHasher;
@Bean
public FhirContext fhirContext() {
return FhirContext.forR4();
}
@Bean
public PartitionSettings partitionSettings() {
return new PartitionSettings();
}
@Bean
public JpaStorageSettings storageSettings() {
JpaStorageSettings storageSettings = new JpaStorageSettings();
storageSettings.addSupportedSubscriptionType(Subscription.SubscriptionChannelType.RESTHOOK);
return storageSettings;
}
}