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 f7a0f10 commit 56746d6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ repositories {

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import com.example.demo.infra.health.entity.User;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository
@NoArgsConstructor
public class HealthRepository{
private Map<Long,User> users = new HashMap<>();
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/example/demo/infra/health/entity/User.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.example.demo.infra.health.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Getter;

@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.example.demo.infra.health.application;

import com.example.demo.infra.health.dao.HealthRepository;
import com.example.demo.infra.health.entity.User;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import static org.junit.jupiter.api.Assertions.*;

@SpringBootTest
class HealthCheckServiceTest {
@Autowired
Expand Down

0 comments on commit 56746d6

Please sign in to comment.