Skip to content

Commit

Permalink
fix: GitHub Actions 초기화 테스트용 코드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjookang committed Apr 5, 2024
1 parent 56746d6 commit f29fbea
Showing 1 changed file with 20 additions and 0 deletions.
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);
}
}

0 comments on commit f29fbea

Please sign in to comment.