Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviarla authored and marcusdacoregio committed Apr 30, 2024
1 parent b317c53 commit 112239f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,12 +463,12 @@ void onMessageCreated() {
MapSession session = this.cached;
byte[] pattern = "".getBytes(StandardCharsets.UTF_8);
String channel = "spring:session:event:0:created:" + session.getId();
JdkSerializationRedisSerializer defaultSerailizer = new JdkSerializationRedisSerializer();
this.redisRepository.setDefaultSerializer(defaultSerailizer);
JdkSerializationRedisSerializer defaultSerializer = new JdkSerializationRedisSerializer();
this.redisRepository.setDefaultSerializer(defaultSerializer);
Map<String, Object> map = map(RedisSessionMapper.CREATION_TIME_KEY, Instant.EPOCH.toEpochMilli(),
RedisSessionMapper.MAX_INACTIVE_INTERVAL_KEY, 0, RedisSessionMapper.LAST_ACCESSED_TIME_KEY,
System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(5));
byte[] body = defaultSerailizer.serialize(map);
byte[] body = defaultSerializer.serialize(map);
DefaultMessage message = new DefaultMessage(channel.getBytes(StandardCharsets.UTF_8), body);

this.redisRepository.setApplicationEventPublisher(this.publisher);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void save_SessionExistsAndNoChanges_ShouldSaveSession() {
}

@Test
void save_WithSaveModeOnSetAttribute_SholdSaveSession() {
void save_WithSaveModeOnSetAttribute_ShouldSaveSession() {
given(this.sessionRedisOperations.hasKey(eq(TEST_SESSION_KEY))).willReturn(true);
this.sessionRepository.setSaveMode(SaveMode.ON_SET_ATTRIBUTE);
Map<String, Object> attributes = new HashMap<>();
Expand Down

0 comments on commit 112239f

Please sign in to comment.