Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 정적 데이터 엔티티 폴더 위치 변경 #34

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
import com.odiga.fiesta.festival.dto.response.CompanionResponse;
import com.odiga.fiesta.festival.dto.response.MoodResponse;
import com.odiga.fiesta.festival.dto.response.PriorityResponse;
import com.odiga.fiesta.festival.service.CategoryService;
import com.odiga.fiesta.festival.service.CompanionService;
import com.odiga.fiesta.festival.service.MoodService;
import com.odiga.fiesta.festival.service.PriorityService;
import com.odiga.fiesta.global.service.CategoryService;
import com.odiga.fiesta.global.service.CompanionService;
import com.odiga.fiesta.global.service.MoodService;
import com.odiga.fiesta.global.service.PriorityService;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static lombok.AccessLevel.*;

import com.odiga.fiesta.festival.domain.Category;
import com.odiga.fiesta.global.domain.Category;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static lombok.AccessLevel.*;

import com.odiga.fiesta.festival.domain.Companion;
import com.odiga.fiesta.global.domain.Companion;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static lombok.AccessLevel.*;

import com.odiga.fiesta.festival.domain.Mood;
import com.odiga.fiesta.global.domain.Mood;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static lombok.AccessLevel.*;

import com.odiga.fiesta.festival.domain.Priority;
import com.odiga.fiesta.global.domain.Priority;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.odiga.fiesta.festival.domain;
package com.odiga.fiesta.global.domain;

import static jakarta.persistence.GenerationType.*;
import static lombok.AccessLevel.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.odiga.fiesta.festival.domain;
package com.odiga.fiesta.global.domain;

import static jakarta.persistence.GenerationType.*;
import static lombok.AccessLevel.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.odiga.fiesta.festival.domain;
package com.odiga.fiesta.global.domain;

import static jakarta.persistence.GenerationType.*;
import static lombok.AccessLevel.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.odiga.fiesta.festival.domain;
package com.odiga.fiesta.global.domain;

import static jakarta.persistence.GenerationType.*;
import static lombok.AccessLevel.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.odiga.fiesta.festival.repository;
package com.odiga.fiesta.global.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.odiga.fiesta.festival.domain.Category;
import com.odiga.fiesta.global.domain.Category;

public interface CategoryRepository extends JpaRepository<Category, Long> {
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.odiga.fiesta.festival.repository;
package com.odiga.fiesta.global.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.odiga.fiesta.festival.domain.Companion;
import com.odiga.fiesta.global.domain.Companion;

public interface CompanionRepository extends JpaRepository<Companion, Long> {
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.odiga.fiesta.festival.repository;
package com.odiga.fiesta.global.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.odiga.fiesta.festival.domain.Mood;
import com.odiga.fiesta.global.domain.Mood;

public interface MoodRepository extends JpaRepository<Mood, Long> {
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.odiga.fiesta.festival.repository;
package com.odiga.fiesta.global.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.odiga.fiesta.festival.domain.Priority;
import com.odiga.fiesta.global.domain.Priority;

public interface PriorityRepository extends JpaRepository<Priority, Long> {
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.odiga.fiesta.festival.service;
package com.odiga.fiesta.global.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.odiga.fiesta.festival.domain.Category;
import com.odiga.fiesta.global.domain.Category;
import com.odiga.fiesta.festival.dto.response.CategoryResponse;
import com.odiga.fiesta.festival.repository.CategoryRepository;
import com.odiga.fiesta.global.repository.CategoryRepository;

import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.odiga.fiesta.festival.service;
package com.odiga.fiesta.global.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.odiga.fiesta.festival.domain.Companion;
import com.odiga.fiesta.global.domain.Companion;
import com.odiga.fiesta.festival.dto.response.CompanionResponse;
import com.odiga.fiesta.festival.repository.CompanionRepository;
import com.odiga.fiesta.global.repository.CompanionRepository;

import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.odiga.fiesta.festival.service;
package com.odiga.fiesta.global.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.odiga.fiesta.festival.domain.Mood;
import com.odiga.fiesta.global.domain.Mood;
import com.odiga.fiesta.festival.dto.response.MoodResponse;
import com.odiga.fiesta.festival.repository.MoodRepository;
import com.odiga.fiesta.global.repository.MoodRepository;

import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.odiga.fiesta.festival.service;
package com.odiga.fiesta.global.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.odiga.fiesta.festival.domain.Priority;
import com.odiga.fiesta.global.domain.Priority;
import com.odiga.fiesta.festival.dto.response.PriorityResponse;
import com.odiga.fiesta.festival.repository.PriorityRepository;
import com.odiga.fiesta.global.repository.PriorityRepository;

import lombok.RequiredArgsConstructor;

Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/odiga/fiesta/ControllerTestSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.odiga.fiesta.festival.controller.FestivalController;
import com.odiga.fiesta.festival.service.CategoryService;
import com.odiga.fiesta.festival.service.CompanionService;
import com.odiga.fiesta.festival.service.MoodService;
import com.odiga.fiesta.festival.service.PriorityService;
import com.odiga.fiesta.global.service.CategoryService;
import com.odiga.fiesta.global.service.CompanionService;
import com.odiga.fiesta.global.service.MoodService;
import com.odiga.fiesta.global.service.PriorityService;

@ActiveProfiles("test")
@WithMockUser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import com.odiga.fiesta.festival.dto.response.CompanionResponse;
import com.odiga.fiesta.festival.dto.response.MoodResponse;
import com.odiga.fiesta.festival.dto.response.PriorityResponse;
import com.odiga.fiesta.festival.service.CategoryService;
import com.odiga.fiesta.festival.service.CompanionService;
import com.odiga.fiesta.festival.service.MoodService;
import com.odiga.fiesta.festival.service.PriorityService;
import com.odiga.fiesta.global.service.CategoryService;
import com.odiga.fiesta.global.service.CompanionService;
import com.odiga.fiesta.global.service.MoodService;
import com.odiga.fiesta.global.service.PriorityService;

class FestivalControllerTest extends ControllerTestSupport {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
import org.mockito.Mock;

import com.odiga.fiesta.MockTestSupport;
import com.odiga.fiesta.festival.domain.Category;
import com.odiga.fiesta.global.domain.Category;
import com.odiga.fiesta.festival.dto.response.CategoryResponse;
import com.odiga.fiesta.festival.repository.CategoryRepository;
import com.odiga.fiesta.global.repository.CategoryRepository;
import com.odiga.fiesta.global.service.CategoryService;

class CategoryServiceTest extends MockTestSupport {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
import org.mockito.Mock;

import com.odiga.fiesta.MockTestSupport;
import com.odiga.fiesta.festival.domain.Companion;
import com.odiga.fiesta.global.domain.Companion;
import com.odiga.fiesta.festival.dto.response.CompanionResponse;
import com.odiga.fiesta.festival.repository.CompanionRepository;
import com.odiga.fiesta.global.repository.CompanionRepository;
import com.odiga.fiesta.global.service.CompanionService;

class CompanionServiceTest extends MockTestSupport {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
import org.mockito.Mock;

import com.odiga.fiesta.MockTestSupport;
import com.odiga.fiesta.festival.domain.Mood;
import com.odiga.fiesta.global.domain.Mood;
import com.odiga.fiesta.festival.dto.response.MoodResponse;
import com.odiga.fiesta.festival.repository.MoodRepository;
import com.odiga.fiesta.global.repository.MoodRepository;
import com.odiga.fiesta.global.service.MoodService;

class MoodServiceTest extends MockTestSupport {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
import org.mockito.Mock;

import com.odiga.fiesta.MockTestSupport;
import com.odiga.fiesta.festival.domain.Priority;
import com.odiga.fiesta.global.domain.Priority;
import com.odiga.fiesta.festival.dto.response.PriorityResponse;
import com.odiga.fiesta.festival.repository.PriorityRepository;
import com.odiga.fiesta.global.repository.PriorityRepository;
import com.odiga.fiesta.global.service.PriorityService;

class PriorityServiceTest extends MockTestSupport {

Expand Down
Loading