Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/Java_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' 사용
Expand Down
Binary file modified todo/.gradle/8.12.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified todo/.gradle/8.12.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified todo/.gradle/8.12.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified todo/.gradle/8.12.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified todo/.gradle/8.12.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified todo/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
48 changes: 18 additions & 30 deletions todo/build/reports/tests/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">1</div>
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
Expand All @@ -38,7 +38,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">3.365s</div>
<div class="counter">3.583s</div>
<p>duration</p>
</div>
</td>
Expand All @@ -47,8 +47,8 @@ <h1>Test Summary</h1>
</div>
</td>
<td>
<div class="infoBox failures" id="successRate">
<div class="percent">75%</div>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
Expand All @@ -58,25 +58,13 @@ <h1>Test Summary</h1>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Failed tests</a>
</li>
<li>
<a href="#tab1">Packages</a>
<a href="#tab0">Packages</a>
</li>
<li>
<a href="#tab2">Classes</a>
<a href="#tab1">Classes</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Failed tests</h2>
<ul class="linkList">
<li>
<a href="classes/com.todo.todo.Intergration.TodoIntergrationTest.html">TodoIntergrationTest</a>.
<a href="classes/com.todo.todo.Intergration.TodoIntergrationTest.html#GetTodo()">GetTodo()</a>
</li>
</ul>
</div>
<div id="tab1" class="tab">
<h2>Packages</h2>
<table>
<thead>
Expand All @@ -91,19 +79,19 @@ <h2>Packages</h2>
</thead>
<tbody>
<tr>
<td class="failures">
<a href="packages/com.todo.todo.Intergration.html">com.todo.todo.Intergration</a>
<td class="success">
<a href="packages/com.todo.todo.Controller.html">com.todo.todo.Controller</a>
</td>
<td>4</td>
<td>1</td>
<td>0</td>
<td>3.365s</td>
<td class="failures">75%</td>
<td>0</td>
<td>3.583s</td>
<td class="success">100%</td>
</tr>
</tbody>
</table>
</div>
<div id="tab2" class="tab">
<div id="tab1" class="tab">
<h2>Classes</h2>
<table>
<thead>
Expand All @@ -118,14 +106,14 @@ <h2>Classes</h2>
</thead>
<tbody>
<tr>
<td class="failures">
<a href="classes/com.todo.todo.Intergration.TodoIntergrationTest.html">com.todo.todo.Intergration.TodoIntergrationTest</a>
<td class="success">
<a href="classes/com.todo.todo.Controller.TodoControllerTest.html">com.todo.todo.Controller.TodoControllerTest</a>
</td>
<td>4</td>
<td>1</td>
<td>0</td>
<td>3.365s</td>
<td class="failures">75%</td>
<td>0</td>
<td>3.583s</td>
<td class="success">100%</td>
</tr>
</tbody>
</table>
Expand All @@ -138,7 +126,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.12.1</a> at 2025. 2. 26. 오전 1:59:45</p>
<a href="http://www.gradle.org">Gradle 8.12.1</a> at 2025. 2. 26. 오전 2:24:20</p>
</div>
</div>
</body>
Expand Down
Binary file modified todo/build/test-results/test/binary/output.bin
Binary file not shown.
Binary file modified todo/build/test-results/test/binary/output.bin.idx
Binary file not shown.
Binary file modified todo/build/test-results/test/binary/results.bin
Binary file not shown.
Binary file modified todo/build/tmp/compileTestJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand All @@ -74,10 +74,6 @@ void testUpdateTodo() throws Exception {
@Test
void testGetTodos() throws Exception {
// Given
String email = "test@example.com";
String provider = "google";


List<TodoDTO> todos = Arrays.asList(new TodoDTO(1L, "Test Todo"));
when(todoService.getTodosByUser(anyString(), anyString())).thenReturn(todos);

Expand Down