Session.delete -> deleteById

Fixes gh-809
This commit is contained in:
Rob Winch
2017-06-22 21:24:20 -05:00
parent 0127ef9f9b
commit c6c6beb40c
14 changed files with 25 additions and 25 deletions

View File

@@ -344,7 +344,7 @@ public class RedisOperationsSessionRepositoryTests {
.willReturn(this.boundSetOperations);
String id = expected.getId();
this.redisRepository.delete(id);
this.redisRepository.deleteById(id);
assertThat(getDelta().get(RedisOperationsSessionRepository.MAX_INACTIVE_ATTR))
.isEqualTo(0);
@@ -358,7 +358,7 @@ public class RedisOperationsSessionRepositoryTests {
.willReturn(this.boundHashOperations);
String id = "abc";
this.redisRepository.delete(id);
this.redisRepository.deleteById(id);
verify(this.redisOperations, times(0)).delete(anyString());
verify(this.redisOperations, times(0)).delete(anyString());
}