Skip to content

Commit 6555418

Browse files
Merge branch '3.0.x' into 3.1.x
2 parents af65479 + 8e3ea44 commit 6555418

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

etc/checkstyle/suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
<suppress files="[\\/]spring-session-samples[\\/]" checks="Javadoc*"/>
99
<suppress files="[\\/]spring-session-samples[\\/].+Application\.java" checks="HideUtilityClassConstructor"/>
1010
<suppress files="CookieSerializer\.java" checks="SpringMethodVisibility"/>
11+
<suppress files="RedisIndexedSessionRepositoryDynamicITests\.java" checks="RegexpSinglelineJava"/>
1112
</suppressions>

spring-session-data-redis/src/integration-test/java/org/springframework/session/data/redis/RedisIndexedSessionRepositoryDynamicITests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
import static org.assertj.core.api.Assertions.assertThat;
3535
import static org.mockito.ArgumentMatchers.any;
36-
import static org.mockito.BDDMockito.willThrow;
36+
import static org.mockito.Mockito.doThrow;
3737
import static org.mockito.Mockito.spy;
3838

3939
/**
@@ -69,7 +69,7 @@ void saveChangeSessionIdWhenFailedRenameOperationExceptionContainsMoreDetailsThe
6969

7070
RedisSystemException redisSystemException = new RedisSystemException(null,
7171
new RedisCommandExecutionException("ERR no such key. channel: [id: 0xec125091,..."));
72-
willThrow(redisSystemException).given(this.spyOperations).rename(any(), any());
72+
doThrow(redisSystemException).when(this.spyOperations).rename(any(), any());
7373

7474
this.sessionRepository.save(session);
7575
assertThat(this.sessionRepository.findById(sessionId)).isNull();

0 commit comments

Comments
 (0)