-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 리프레시 토큰 관리를 Redis로 변경 (#710) * feat: redis 설정 추가 * refactor: RefreshToken 관리를 redis로 업데이트 * test: refreshToken 관련 service 테스트 수정 * refactor: EmbbedRedis 설정 제거 * feat: Redis Test Container 설정 추가 * refactor: 테스트가 용이하게 RefreshToken TTL을 외부에서 관리 * test: OauthComand관련 테스트 수정 * test: Restdocs 테스트 수정 * refactor: OauthCommandService 생성자에 refreshTokenExpireMinutes를 받도록 수정 * test: RefreshToken 추가 * test: 사용하지 않는 RefreshToken 삭제 * refactor: RefreshToken2 를 RefreshToken으로 이름 변경 * refactor: expire minutes 이름 변경 * test: RefreshTokenFixture로 리팩토링 * refactor: Facade 패턴 적용 * refactor: ttl 단위를 분으로 변경 * refactor: RedisConfig에 username과 password 추가 * feat: docker-compose 에 redis 설정 추가 * refactor: 사용하지 않는 Restemplate 제거 * refactor: 스프링 부트 버전 3.1.8로 업그레이드 * refactor: redis.conf bind를 localhost만 가능하도록 변경 * 게시글 조회 API에 게시글 총 개수 포함해서 반환 (#711) refactor: 글 조회시 전체 개수가 같이 반환되도록 구현 * 완료된 리뷰가 많은 서포터 순대로 조회하는 기능 구현 (#712) * feat: 리뷰가 많은 사람 랭킹 구하는 기능 구현 * test: 랭킹 인수테스트와 restdocs 테스트 구현 * feat: 랭킹에 company 항목 추가 * refactor: 다른 랭킹도 추가할 수 있도록 Rankable 마커 인터페이스 구현 * feat: review 완료 시 reviewCount 증가 기능 구현 (#721) * feat: review 완료 시 reviewCount 증가 기능 구현 * test: reviewCount 증가로직 테스트 구현 * refactor: 리뷰수 증가 로직을 RunnerPost 안으로 옮김 * reviewCount가 0인 항목이 조회가 되면 제외되도록 구현 (#722) * refactor: reviewCount가 0인 항목이 조회가 되면 제외되도록 구현 * refactor: count 할 때 reviewStatus가 포함되도록 변경
- Loading branch information
Showing
16 changed files
with
160 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
backend/baton/src/test/java/touch/baton/domain/member/vo/ReviewCountTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package touch.baton.domain.member.vo; | ||
|
||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
import touch.baton.domain.member.command.vo.ReviewCount; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class ReviewCountTest { | ||
|
||
@DisplayName("increaseCount가 호출 되면 value가 1 증가한다.") | ||
@Test | ||
void increaseCount() { | ||
// given | ||
final int initialValue = 0; | ||
final ReviewCount reviewCount = new ReviewCount(initialValue); | ||
|
||
// when | ||
reviewCount.increase(); | ||
|
||
// then | ||
assertThat(reviewCount.getValue()).isEqualTo(initialValue + 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters