Skip to content

Commit

Permalink
Try to fix missing BFDClient bean
Browse files Browse the repository at this point in the history
  • Loading branch information
bennavapbc committed Nov 22, 2024
1 parent c65de74 commit 8cdd581
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.annotation.DirtiesContext;
import org.testcontainers.containers.PostgreSQLContainer;
import org.testcontainers.junit.jupiter.Container;
Expand All @@ -19,6 +20,7 @@
import static org.junit.jupiter.api.Assertions.fail;

@SpringBootTest
@ComponentScan(basePackages = {"gov.cms.ab2d.bfd.client"})
@Testcontainers
@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
@EnableFeignClients(clients = {ContractFeignClient.class})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Profile;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
Expand Down Expand Up @@ -107,6 +108,7 @@
* (except the last one). All the data pulls from BFDs sandbox Synthea data.
*/
@SpringBootTest
@ComponentScan(basePackages = {"gov.cms.ab2d.bfd.client"})
@Testcontainers
@Slf4j
@ExtendWith(MockitoExtension.class)
Expand Down

0 comments on commit 8cdd581

Please sign in to comment.