Skip to content

Commit

Permalink
NO-JIRA--test : public -> default
Browse files Browse the repository at this point in the history
  • Loading branch information
born-A committed Jan 29, 2024
1 parent 023f2ec commit ddeb106
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CompleteRequestServiceTest {


@BeforeEach
public void setUp() {
void setUp() {
tokenA = "tokenA";
tokenB = "tokenB";

Expand Down Expand Up @@ -168,7 +168,7 @@ public void setUp() {

@Test
@DisplayName("거래 성사 요청이 생성된다.")
public void createCompleteRequest() {
void createCompleteRequest() {
//given
CompleteRequestDTO completeRequestDTO = new CompleteRequestDTO(
fromCardId,
Expand Down Expand Up @@ -209,7 +209,7 @@ public void createCompleteRequest() {

@Test
@DisplayName("사용자 B가 거래 성사 요청을 수락하여 거래 성사 요청의 상태가 바뀐다.")
public void updateSuggestionStatus() {
void updateSuggestionStatus() {
//given
Boolean isAccepted = true;

Expand Down Expand Up @@ -242,7 +242,7 @@ public void updateSuggestionStatus() {

@Test
@DisplayName("거래 성사 내역을 id로 조회할 수 있다.")
public void getCompleteRequestById() {
void getCompleteRequestById() {
//given
when(checkService.parseToken(tokenA)).thenReturn(fromUserId);
when(userRepository.existsById(fromUserId)).thenReturn(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.intThat;
import static org.mockito.Mockito.when;


@ExtendWith(MockitoExtension.class)
public class SuggestionServiceTest {
@InjectMocks
Expand Down Expand Up @@ -79,7 +77,7 @@ public class SuggestionServiceTest {
private Suggestion suggestion;

@BeforeEach
public void setUp() {
void setUp() {
tokenA = "tokenA";

SuggestionType suggestionType = SuggestionType.OFFER;
Expand Down Expand Up @@ -163,7 +161,7 @@ public void setUp() {

@Test
@DisplayName("사용자 A는 사용자 B에게 제안을 한다.")
public void createSuggestion() {
void createSuggestion() {
//given
SuggestionType suggestionType = SuggestionType.OFFER;
SuggestionRequestDTO suggestionRequestDTO = new SuggestionRequestDTO(fromCardId, toCardId);
Expand Down Expand Up @@ -199,7 +197,7 @@ public void createSuggestion() {

@Test
@DisplayName("사용자 B는 사용자 A의 제안을 승낙하여 제안의 상태가 바뀐다.")
public void updateSuggestionStatus() {
void updateSuggestionStatus() {
//given
Boolean isAccepted = true;
SuggestionType suggestionType = SuggestionType.OFFER;
Expand Down Expand Up @@ -236,7 +234,7 @@ public void updateSuggestionStatus() {

@Test
@DisplayName("특정 제안 유형의 제안을 조회한다.")
public void getSuggestionsByType() {
void getSuggestionsByType() {
//given
DirectionType directionType = DirectionType.SEND;
SuggestionType suggestionType = SuggestionType.OFFER;
Expand Down

0 comments on commit ddeb106

Please sign in to comment.