I'm writing a simple integration test:
@SpringBootTest(classes = StoreApplication.class)
@RunWith(SpringRunner.class)
public class DefaultCreateOrderUseCaseTests {
@Autowired
BatchCrudPort batchCrudPort;
// Some other autowired dependencies
@Test
public void test() {
Assert.assertTrue(true)
}
}
When I run it (using IntelliJ's built-in button) the application starts, but my test is not ran. Without the @RunWith annotation, my autowired dependencies remain null, which is weird, because I thought the point of the @SpringBootTest annotation is that I have access to the application context.
Any ideas?