Commit 4a9fa49a authored by Komal Makkar's avatar Komal Makkar
Browse files

minor changes

parent a31ea2b4
...@@ -23,9 +23,6 @@ public class HandshakeFilterTest { ...@@ -23,9 +23,6 @@ public class HandshakeFilterTest {
@Mock @Mock
private IPubsubRequestBodyExtractor requestBodyExtractor; private IPubsubRequestBodyExtractor requestBodyExtractor;
@Mock
private IPubsubHandshakeHandler handshakeHandler;
@Mock @Mock
private HttpServletRequest httpServletRequest; private HttpServletRequest httpServletRequest;
...@@ -42,6 +39,7 @@ public class HandshakeFilterTest { ...@@ -42,6 +39,7 @@ public class HandshakeFilterTest {
public void should_CallFiltersIfNotHandshake() throws IOException, ServletException { public void should_CallFiltersIfNotHandshake() throws IOException, ServletException {
doReturn("records-changed").when(httpServletRequest).getServletPath(); doReturn("records-changed").when(httpServletRequest).getServletPath();
doReturn(false).when(this.requestBodyExtractor).isHandshakeRequest(); doReturn(false).when(this.requestBodyExtractor).isHandshakeRequest();
this.sut.doFilter(this.httpServletRequest, this.servletResponse, this.filterChain); this.sut.doFilter(this.httpServletRequest, this.servletResponse, this.filterChain);
verify(this.filterChain, times(1)).doFilter(httpServletRequest, servletResponse); verify(this.filterChain, times(1)).doFilter(httpServletRequest, servletResponse);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment