-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: 트랜잭션 전파 레벨 때문에 테스트가 불가능하여 기존 서비스를 상속하는 테스트 서비스 추가
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
backend/src/test/java/com/funeat/member/application/TestMemberService.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,21 @@ | ||
package com.funeat.member.application; | ||
|
||
import com.funeat.auth.dto.SignUserDto; | ||
import com.funeat.auth.dto.UserInfoDto; | ||
import com.funeat.member.persistence.MemberRepository; | ||
import org.springframework.stereotype.Service; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
@Service | ||
public class TestMemberService extends MemberService { | ||
|
||
public TestMemberService(final MemberRepository memberRepository) { | ||
super(memberRepository); | ||
} | ||
|
||
@Override | ||
@Transactional | ||
public SignUserDto findOrCreateMember(final UserInfoDto userInfoDto) { | ||
return super.findOrCreateMember(userInfoDto); | ||
} | ||
} |