From 3e609bb09d0012ce266a379240807f8e66c0565a Mon Sep 17 00:00:00 2001 From: kang yeon joo Date: Wed, 10 Apr 2024 18:38:02 +0900 Subject: [PATCH] =?UTF-8?q?remove:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/HealthCheckServiceTest.java | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/test/java/com/kuit/conet/infra/health/application/HealthCheckServiceTest.java diff --git a/src/test/java/com/kuit/conet/infra/health/application/HealthCheckServiceTest.java b/src/test/java/com/kuit/conet/infra/health/application/HealthCheckServiceTest.java deleted file mode 100644 index 463b792..0000000 --- a/src/test/java/com/kuit/conet/infra/health/application/HealthCheckServiceTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.kuit.conet.infra.health.application; - -import com.kuit.conet.infra.health.dao.HealthRepository; -import com.kuit.conet.infra.health.entity.User; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.junit.jupiter.MockitoExtension; - -import static org.junit.jupiter.api.Assertions.*; - -@ExtendWith(MockitoExtension.class) -public class HealthCheckServiceTest { - @InjectMocks - private HealthCheckService healthCheckService; - @Mock - private HealthRepository healthRepository; - - @BeforeEach - public void set_up(){ - User user = new User(); - user.setName("강연주"); - healthCheckService.addUser(user); - - User user2 = new User(); - user.setName("정경은"); - healthCheckService.addUser(user2); - - User user3 = new User(); - user.setName("정소민"); - healthCheckService.addUser(user3); - } - - @Test - public void count_all(){ - long count = healthCheckService.countAll(); - assertEquals(3L,count); - } -} \ No newline at end of file