1

How to properly annotate BaseTests for CDC with spring-cloud-contract?

I'm using currently

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {WithoutDbConfig.class, SomeController.class})
public abstract class BaseControllerTest {

as it is specified in https://spring.io/guides/gs/contract-rest/

Anybody runs it with Junit5?

tillias
  • 1,035
  • 2
  • 12
  • 30
  • I haven’t tried your specific case but in general you can just remove the RunWith annotation since Jupiter support is build into Spring testing directly (since version 5 or so). – johanneslink Sep 23 '20 at 16:45

0 Answers0