Skip to content

Commit 41b7fd6

Browse files
committed
Fix RestAssuredRestDocumentationConfigurerTests.nextFilterIsCalled
The test wasn’t actually verifying that the next filter was being called. This commit corrects that.
1 parent 832f4fd commit 41b7fd6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-restdocs-restassured/src/test/java/org/springframework/restdocs/restassured/RestAssuredRestDocumentationConfigurerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import static org.hamcrest.CoreMatchers.instanceOf;
3636
import static org.hamcrest.Matchers.hasEntry;
3737
import static org.junit.Assert.assertThat;
38-
import static org.mockito.Matchers.any;
3938
import static org.mockito.Matchers.eq;
4039
import static org.mockito.Mockito.mock;
4140
import static org.mockito.Mockito.verify;
@@ -65,8 +64,7 @@ public class RestAssuredRestDocumentationConfigurerTests {
6564
@Test
6665
public void nextFilterIsCalled() {
6766
this.configurer.filter(this.requestSpec, this.responseSpec, this.filterContext);
68-
verify(this.filterContext).setValue(
69-
eq(RestDocumentationFilter.CONTEXT_KEY_CONFIGURATION), any(Map.class));
67+
verify(this.filterContext).next(this.requestSpec, this.responseSpec);
7068
}
7169

7270
@Test

0 commit comments

Comments
 (0)