diff --git a/.github/workflows/Java_CI.yml b/.github/workflows/Java_CI.yml index ff87fef..3073114 100644 --- a/.github/workflows/Java_CI.yml +++ b/.github/workflows/Java_CI.yml @@ -37,7 +37,6 @@ jobs: # - name: Wait for MySQL to be ready # run: sleep 10 - # MySQL 연결 확인 부분도 주석 처리 (H2를 사용하므로 MySQL 연결 확인을 할 필요 없음) # - name: Check MySQL connection # run: | # mysql -h 127.0.0.1 -u testuser -ptestpassworD # 'mysql' 대신 '127.0.0.1' 사용 diff --git a/todo/.gradle/8.12.1/executionHistory/executionHistory.bin b/todo/.gradle/8.12.1/executionHistory/executionHistory.bin index 0636155..d81e444 100644 Binary files a/todo/.gradle/8.12.1/executionHistory/executionHistory.bin and b/todo/.gradle/8.12.1/executionHistory/executionHistory.bin differ diff --git a/todo/.gradle/8.12.1/executionHistory/executionHistory.lock b/todo/.gradle/8.12.1/executionHistory/executionHistory.lock index adb0d14..500a2f3 100644 Binary files a/todo/.gradle/8.12.1/executionHistory/executionHistory.lock and b/todo/.gradle/8.12.1/executionHistory/executionHistory.lock differ diff --git a/todo/.gradle/8.12.1/fileHashes/fileHashes.bin b/todo/.gradle/8.12.1/fileHashes/fileHashes.bin index 4c8bce2..9c08dd5 100644 Binary files a/todo/.gradle/8.12.1/fileHashes/fileHashes.bin and b/todo/.gradle/8.12.1/fileHashes/fileHashes.bin differ diff --git a/todo/.gradle/8.12.1/fileHashes/fileHashes.lock b/todo/.gradle/8.12.1/fileHashes/fileHashes.lock index 2e1e06a..35082bd 100644 Binary files a/todo/.gradle/8.12.1/fileHashes/fileHashes.lock and b/todo/.gradle/8.12.1/fileHashes/fileHashes.lock differ diff --git a/todo/.gradle/8.12.1/fileHashes/resourceHashesCache.bin b/todo/.gradle/8.12.1/fileHashes/resourceHashesCache.bin index 0e4ef7d..7e9cbe0 100644 Binary files a/todo/.gradle/8.12.1/fileHashes/resourceHashesCache.bin and b/todo/.gradle/8.12.1/fileHashes/resourceHashesCache.bin differ diff --git a/todo/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/todo/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 712fb1f..2666868 100644 Binary files a/todo/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/todo/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/todo/build/reports/tests/test/index.html b/todo/build/reports/tests/test/index.html index c0a75cd..b690e9c 100644 --- a/todo/build/reports/tests/test/index.html +++ b/todo/build/reports/tests/test/index.html @@ -26,7 +26,7 @@

Test Summary

-
1
+
0

failures

@@ -38,7 +38,7 @@

Test Summary

-
3.365s
+
3.583s

duration

@@ -47,8 +47,8 @@

Test Summary

-
-
75%
+
+
100%

successful

@@ -58,25 +58,13 @@

Test Summary

-

Failed tests

- -
-

Packages

@@ -91,19 +79,19 @@

Packages

- - - - + + +
-com.todo.todo.Intergration + +com.todo.todo.Controller 41 03.365s75%03.583s100%
-
+

Classes

@@ -118,14 +106,14 @@

Classes

- - - - + + +
-com.todo.todo.Intergration.TodoIntergrationTest + +com.todo.todo.Controller.TodoControllerTest 41 03.365s75%03.583s100%
@@ -138,7 +126,7 @@

Classes

Generated by -Gradle 8.12.1 at 2025. 2. 26. 오전 1:59:45

+Gradle 8.12.1 at 2025. 2. 26. 오전 2:24:20

diff --git a/todo/build/test-results/test/binary/output.bin b/todo/build/test-results/test/binary/output.bin index a735919..45cf8b3 100644 Binary files a/todo/build/test-results/test/binary/output.bin and b/todo/build/test-results/test/binary/output.bin differ diff --git a/todo/build/test-results/test/binary/output.bin.idx b/todo/build/test-results/test/binary/output.bin.idx index f9fcd53..900da45 100644 Binary files a/todo/build/test-results/test/binary/output.bin.idx and b/todo/build/test-results/test/binary/output.bin.idx differ diff --git a/todo/build/test-results/test/binary/results.bin b/todo/build/test-results/test/binary/results.bin index 041dbe2..aa3b1d9 100644 Binary files a/todo/build/test-results/test/binary/results.bin and b/todo/build/test-results/test/binary/results.bin differ diff --git a/todo/build/tmp/compileTestJava/previous-compilation-data.bin b/todo/build/tmp/compileTestJava/previous-compilation-data.bin index d2fa909..5b46174 100644 Binary files a/todo/build/tmp/compileTestJava/previous-compilation-data.bin and b/todo/build/tmp/compileTestJava/previous-compilation-data.bin differ diff --git a/todo/src/test/java/com/todo/todo/Controller/TodoControllerTest.java b/todo/src/test/java/com/todo/todo/Controller/TodoControllerTest.java index be9696a..55af81a 100644 --- a/todo/src/test/java/com/todo/todo/Controller/TodoControllerTest.java +++ b/todo/src/test/java/com/todo/todo/Controller/TodoControllerTest.java @@ -32,6 +32,9 @@ public class TodoControllerTest { @InjectMocks private TodoController todoController; + private String email = "test@example.com"; + private String provider = "google"; + @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); @@ -56,9 +59,6 @@ void testCreateTodo() throws Exception { @Test void testUpdateTodo() throws Exception { - String email = "test@example.com"; - String provider = "google"; - doNothing().when(todoService).updateTodo(any(TodoDTO.class),anyString(),anyString()); // Mock the service method // When & Then @@ -74,10 +74,6 @@ void testUpdateTodo() throws Exception { @Test void testGetTodos() throws Exception { // Given - String email = "test@example.com"; - String provider = "google"; - - List todos = Arrays.asList(new TodoDTO(1L, "Test Todo")); when(todoService.getTodosByUser(anyString(), anyString())).thenReturn(todos);