Skip to content
Snippets Groups Projects
Commit e785155b authored by Konrad Krasnodebski's avatar Konrad Krasnodebski
Browse files

Fix di

parent 6be0c111
No related branches found
No related tags found
2 merge requests!841Draft: Update version of default branch to 0.26.0-SNAPSHOT,!796Update persistablereference by UnitOfMeasureID
Pipeline #230394 failed
......@@ -17,10 +17,12 @@ package org.opengroup.osdu.storage.policy.cache;
import org.opengroup.osdu.core.common.cache.VmCache;
import org.opengroup.osdu.core.common.model.policy.PolicyStatus;
import org.springframework.stereotype.Component;
import org.springframework.context.annotation.Primary;
import javax.inject.Named;
@Component
@Primary
public class PolicyCache extends VmCache<String, PolicyStatus> {
public PolicyCache(final @Named("POLICY_CACHE_TIMEOUT") int timeout) {
......
......@@ -52,7 +52,7 @@ import static org.mockito.ArgumentMatchers.eq;
@RunWith(SpringRunner.class)
@WebMvcTest(controllers = PatchApi.class)
@ComponentScan("org.opengroup.osdu")
@ComponentScan({"org.opengroup.osdu", "org.baeldung.primary"})
public class PatchApiControllerTest extends ApiTest<PatchRecordsRequestModel> {
private final ObjectMapper mapper = new ObjectMapper();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment