-
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.
fix: GitHub Actions 초기화 테스트용 코드 오류 수정
- Loading branch information
1 parent
56746d6
commit f29fbea
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/test/java/com/example/demo/infra/health/dao/HealthRepositoryTest.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,20 @@ | ||
package com.example.demo.infra.health.dao; | ||
|
||
import com.example.demo.infra.health.entity.User; | ||
import org.assertj.core.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class HealthRepositoryTest { | ||
HealthRepository healthRepository = HealthRepository.getInstance(); | ||
@Test | ||
void countAllResult3AfterInit(){ | ||
//when | ||
healthRepository.addUser(new User(1L, "강연주")); | ||
healthRepository.addUser(new User(2L, "정소민")); | ||
healthRepository.addUser(new User(3L, "정경은")); | ||
|
||
Integer resultInt = healthRepository.countAll(); | ||
//then | ||
Assertions.assertThat(resultInt).isEqualTo(3); | ||
} | ||
} |