mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-22 20:51:27 +00:00
test simplification [ci skip]
This commit is contained in:
@@ -61,10 +61,7 @@ public class LoopbackFilterTest {
|
||||
Mockito.when(request.getRemoteAddr()).thenReturn(hostname);
|
||||
|
||||
filter.doFilter(request, response, chain);
|
||||
|
||||
ArgumentCaptor<Integer> statusCode = ArgumentCaptor.forClass(Integer.class);
|
||||
Mockito.verify(response).sendError(statusCode.capture(), Mockito.anyString());
|
||||
Assert.assertEquals(405, statusCode.getValue().intValue());
|
||||
Mockito.verify(response).sendError(Mockito.eq(405), Mockito.anyString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user