Skip to content

Commit 268ba66

Browse files
committed
Remove SpringSessionWebSessionStore#storeSession
Closes gh-1150
1 parent 3f4873f commit 268ba66

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

spring-session-core/src/main/java/org/springframework/session/web/server/session/SpringSessionWebSessionStore.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ public Mono<WebSession> updateLastAccessTime(WebSession session) {
8787
return Mono.just(session);
8888
}
8989

90-
public Mono<Void> storeSession(WebSession session) {
91-
@SuppressWarnings("unchecked")
92-
SpringSessionWebSession springWebSession = (SpringSessionWebSession) session;
93-
return this.sessions.save(springWebSession.session);
94-
}
95-
9690
@Override
9791
public Mono<WebSession> retrieveSession(String sessionId) {
9892
return this.sessions.findById(sessionId)

spring-session-core/src/test/java/org/springframework/session/web/server/session/SpringSessionWebSessionStoreTests.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,6 @@ public void createSessionWhenGetAttributesAndEntrySetThenDelegatesToCreateSessio
253253
.containsExactly(new AbstractMap.SimpleEntry<>(attrName, attrValue));
254254
}
255255

256-
@Test
257-
public void storeSessionWhenInvokedThenSessionSaved() {
258-
given(this.sessionRepository.save(this.createSession)).willReturn(Mono.empty());
259-
WebSession createdSession = this.webSessionStore.createWebSession()
260-
.block();
261-
262-
this.webSessionStore.storeSession(createdSession).block();
263-
264-
verify(this.sessionRepository).save(this.createSession);
265-
}
266-
267256
@Test
268257
public void retrieveSessionThenStarted() {
269258
String id = "id";

0 commit comments

Comments
 (0)