Skip to content

Commit e22de4a

Browse files
committed
refactor: isEqualTo(0) -> isZero() 변경
1 parent 247106c commit e22de4a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/com/somemore/recruitboard/repository/RecruitBoardRepositoryImplTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void findAllWithCenterWithoutCriteria() {
119119
assertThat(result).isNotNull();
120120
assertThat(result.getTotalElements()).isEqualTo(boards.size());
121121
assertThat(result.getSize()).isEqualTo(5);
122-
assertThat(result.getNumber()).isEqualTo(0);
122+
assertThat(result.getNumber()).isZero();
123123
assertThat(result.getContent()).hasSize(5);
124124

125125
assertThat(result.getContent().get(0).recruitBoard().getCreatedAt())
@@ -149,7 +149,7 @@ void findAllWithCenterByKeyword() {
149149
assertThat(result).isNotNull();
150150
assertThat(result.getTotalElements()).isEqualTo(1);
151151
assertThat(result.getSize()).isEqualTo(5);
152-
assertThat(result.getNumber()).isEqualTo(0);
152+
assertThat(result.getNumber()).isZero();
153153
assertThat(result.getContent()).hasSize(1);
154154

155155
assertThat(result.getContent().getFirst().recruitBoard().getTitle())
@@ -180,7 +180,7 @@ void findAllWithCenterByType() {
180180
assertThat(result).isNotNull();
181181
assertThat(result.getTotalElements()).isEqualTo(1);
182182
assertThat(result.getSize()).isEqualTo(5);
183-
assertThat(result.getNumber()).isEqualTo(0);
183+
assertThat(result.getNumber()).isZero();
184184
assertThat(result.getContent()).hasSize(1);
185185

186186
assertThat(result.getContent().getFirst().recruitBoard().getRecruitmentInfo()
@@ -213,7 +213,7 @@ void findAllWithCenterByRegion() {
213213
assertThat(result).isNotNull();
214214
assertThat(result.getTotalElements()).isEqualTo(1);
215215
assertThat(result.getSize()).isEqualTo(5);
216-
assertThat(result.getNumber()).isEqualTo(0);
216+
assertThat(result.getNumber()).isZero();
217217
assertThat(result.getContent()).hasSize(1);
218218

219219
assertThat(result.getContent().getFirst().recruitBoard().getRecruitmentInfo()
@@ -245,7 +245,7 @@ void findAllWithCenterByAdmitted() {
245245
assertThat(result).isNotNull();
246246
assertThat(result.getTotalElements()).isEqualTo(1);
247247
assertThat(result.getSize()).isEqualTo(5);
248-
assertThat(result.getNumber()).isEqualTo(0);
248+
assertThat(result.getNumber()).isZero();
249249
assertThat(result.getContent()).hasSize(1);
250250

251251
assertThat(result.getContent().getFirst().recruitBoard().getRecruitmentInfo()
@@ -279,7 +279,7 @@ void findAllWithCenterByStatus() {
279279
assertThat(result).isNotNull();
280280
assertThat(result.getTotalElements()).isEqualTo(1);
281281
assertThat(result.getSize()).isEqualTo(5);
282-
assertThat(result.getNumber()).isEqualTo(0);
282+
assertThat(result.getNumber()).isZero();
283283
assertThat(result.getContent()).hasSize(1);
284284

285285
assertThat(result.getContent().getFirst().recruitBoard().getRecruitStatus()).isEqualTo(
@@ -326,7 +326,7 @@ void findAllNearByLocation_noResult() {
326326

327327
// then
328328
assertThat(result).isNotNull();
329-
assertThat(result.getTotalElements()).isEqualTo(0);
329+
assertThat(result.getTotalElements()).isZero();
330330
assertThat(result.getContent()).isEmpty();
331331

332332
}

0 commit comments

Comments
 (0)