Fix RestAssuredRestDocumentationConfigurerTests.nextFilterIsCalled

The test wasn’t actually verifying that the next filter was being
called. This commit corrects that.
This commit is contained in:
Andy Wilkinson
2016-06-16 13:13:44 +01:00
parent 832f4fdbc3
commit 41b7fd63f6

View File

@@ -35,7 +35,6 @@ import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.Matchers.hasEntry;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
@@ -65,8 +64,7 @@ public class RestAssuredRestDocumentationConfigurerTests {
@Test
public void nextFilterIsCalled() {
this.configurer.filter(this.requestSpec, this.responseSpec, this.filterContext);
verify(this.filterContext).setValue(
eq(RestDocumentationFilter.CONTEXT_KEY_CONFIGURATION), any(Map.class));
verify(this.filterContext).next(this.requestSpec, this.responseSpec);
}
@Test