Skip to content

Commit

Permalink
remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-khg committed Dec 3, 2023
1 parent 153849b commit b989006
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/com/catcher/resource/UserControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@
import org.springframework.web.filter.CharacterEncodingFilter;

import java.time.ZonedDateTime;
import java.util.Set;
import java.util.UUID;

import static com.catcher.core.domain.entity.enums.UserProvider.CATCHER;
import static com.catcher.utils.JwtUtils.REFRESH_TOKEN_NAME;
import static com.catcher.utils.KeyGenerator.AuthType.*;
import static com.catcher.utils.KeyGenerator.AuthType.BLACK_LIST_ACCESS_TOKEN;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
Expand Down Expand Up @@ -350,7 +349,7 @@ void valid_logout() throws Exception {
.header(HttpHeaders.AUTHORIZATION, "Bearer " + accessToken)
.content(objectMapper.writeValueAsString(userLoginRequest))
).andExpect(status().isOk());
Set keys = redisTemplate.keys("*");

//then
assertThat(dbManager.getValue(KeyGenerator.generateKey(accessToken, BLACK_LIST_ACCESS_TOKEN))).isPresent();
}
Expand Down

0 comments on commit b989006

Please sign in to comment.