Skip to content

Commit 9810c6b

Browse files
committed
test(CenterSignService): join assertion chain
- 소나가 알려줌
1 parent eb9beb7 commit 9810c6b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/test/java/com/somemore/center/service/query/CenterSignServiceTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ void getIdByAccountId() {
3535
UUID centerId = centerSignService.getIdByAccountId("account123");
3636

3737
//then
38-
assertThat(centerId).isNotNull();
39-
assertThat(centerId).isEqualTo(center.getId());
38+
assertThat(centerId)
39+
.isNotNull()
40+
.isEqualTo(center.getId());
4041
}
4142

4243
@DisplayName("존재하지 않는 계정 ID로 센터 ID를 조회하면 예외가 발생한다.")
@@ -63,8 +64,9 @@ void getPasswordByAccountId() {
6364
String password = centerSignService.getPasswordByAccountId("account123");
6465

6566
//then
66-
assertThat(password).isNotNull();
67-
assertThat(password).isEqualTo("password123");
67+
assertThat(password)
68+
.isNotNull()
69+
.isEqualTo("password123");
6870
}
6971

7072
@DisplayName("존재하지 않는 계정 ID로 비밀번호를 조회하면 예외가 발생한다.")

0 commit comments

Comments
 (0)