What does SpringClassRule/SpringMethodRule actually do?

Viewed 5550

In an integration test class I met these lines of code:

    @ClassRule
    public static final SpringClassRule SPRING_CLASS_RULE = new SpringClassRule();

    @Rule
    public final SpringMethodRule springMethodRule = new SpringMethodRule();

When I try to navigate to the class (I use Intellij Idea) I get 'Cannot find declaration to go to'. When I try to find usage I get 'No usage found in the project' I am familiar with concept of Rules. But still don't understand what do these two things do. I checked this page: https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/ no info there.

1 Answers
Related