Use one spring boot context through all SpringBootTests

Viewed 14499

I want to be able to cache application context through different classes with tests using junit.

Test classes are declared this way:

@SpringBootTest
@RunWith(SpringRunner.class)
public class SomeIntegrationTest {
}

I saw this question Reuse spring application context across junit test classes but in this case I don't use any xml and I want to start context completely, not just few beans from it, so @SpringBootTest is more suitable than @ContextConfiguration, if I got it right.

1 Answers
Related