Fix Spring IO Tests

This commit is contained in:
Rob Winch
2015-07-08 11:09:29 -05:00
parent 350b48e3fd
commit 1f74ac811e
5 changed files with 41 additions and 16 deletions

View File

@@ -42,6 +42,12 @@ public class ChangeSessionIdAuthenticationStrategyTests {
@Test(expected = IllegalStateException.class)
public void constructChangeIdMethodNotFound() {
spy(ReflectionUtils.class);
MockHttpServletRequest request = new MockHttpServletRequest();
request.getSession();
when(ReflectionUtils.findMethod(HttpServletRequest.class, "changeSessionId"))
.thenReturn(null);
new ChangeSessionIdAuthenticationStrategy();
}