0

When I run the below test, the controllers are always null. Not sure how to fix it or missing anything.

@ExtendWith(SpringExtension.class)
@SpringBootTest
@ActiveProfiles("tests")
class ApplicationTests {
    @Autowired
    PatientController patientController;

    @Autowired
    RecordController recordController;

    @Test
    public void contextLoads() {
        Assertions.assertThat(patientController).isNot(null);
        Assertions.assertThat(recordController).isNot(null);
    }
}
FattyK
  • 13
  • 2

0 Answers0