Add Session.changeSessionId
This commit is contained in:
@@ -131,6 +131,16 @@ public class RedisOperationsSessionRepositoryTests {
|
||||
this.redisRepository.save(session);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void changeSessionId() {
|
||||
RedisSession createSession = this.redisRepository.createSession();
|
||||
String originalId = createSession.getId();
|
||||
String changeSessionId = createSession.changeSessionId();
|
||||
|
||||
assertThat(originalId).isNotEqualTo(changeSessionId);
|
||||
assertThat(createSession.getId()).isEqualTo(createSession.getId());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createSessionDefaultMaxInactiveInterval() throws Exception {
|
||||
Session session = this.redisRepository.createSession();
|
||||
|
||||
Reference in New Issue
Block a user