Explorar el Código

[phr] insertPhr 테스트.

sjpark hace 4 años
padre
commit
34f2ec3b3d

+ 17 - 0
src/test/java/com/lemon/lifecenter/LifeCenterApplicationTests.java

@@ -1,13 +1,30 @@
 package com.lemon.lifecenter;
 
 import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
+import com.lemon.lifecenter.dto.PatientPHRHistoryDTO;
+import com.lemon.lifecenter.service.PHRService;
+
 @SpringBootTest
 class LifeCenterApplicationTests {
 
 	@Test
 	void contextLoads() {
 	}
+	
+	@Autowired PHRService phrService;
+	
+	@Test
+	void insertPhr() {
+		PatientPHRHistoryDTO dto = new PatientPHRHistoryDTO();
+    	dto.setPatientIdx(1046);
+    	dto.setPhrType("temperature");
+    	dto.setPhrValue(36.5f);
+    	dto.setRecordedBy("홍길동");
+    	
+    	phrService.insertPHR(dto);
+	}
 
 }