Skip to content

Commit

Permalink
♻️ Refactor code : amend package
Browse files Browse the repository at this point in the history
  • Loading branch information
nowgnas committed Nov 25, 2023
1 parent bf8b97a commit 35ef5bb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/main/java/kr/bb/product/config/JpaConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@

@Configuration
@EnableJpaAuditing
@EnableJpaRepositories(
basePackages = {"kr.bb.product.domain.*.repository.jpa", "kr.bb.product.domain.*.adapter.*"})
@EnableJpaRepositories(basePackages = "kr.bb.product.domain.**.jpa")
public class JpaConfiguration {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kr.bb.product.domain.review.adapter.out;
package kr.bb.product.domain.review.adapter.out.jpa;

import kr.bb.product.domain.review.entity.Review;
import org.springframework.data.jpa.repository.JpaRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kr.bb.product.domain.review.adapter.out;
package kr.bb.product.domain.review.adapter.out.jpa;

import java.util.List;
import kr.bb.product.domain.review.adapter.out.jpa.ReviewJpaRepository;
import kr.bb.product.domain.review.application.port.out.ReviewOutPort;
import kr.bb.product.domain.review.entity.Review;
import org.springframework.stereotype.Repository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

import java.util.List;
import kr.bb.product.domain.review.adapter.out.jpa.ReviewJpaRepository;
import kr.bb.product.domain.review.entity.Review;
import kr.bb.product.domain.review.entity.ReviewImages;
import org.junit.jupiter.api.DisplayName;
Expand All @@ -12,7 +13,8 @@

@DataJpaTest
class ReviewJpaRepositoryTest {
@Autowired ReviewJpaRepository reviewJpaRepository;
@Autowired
ReviewJpaRepository reviewJpaRepository;

@Test
@DisplayName("리뷰 작성 repository 테스트")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kr.bb.product.domain.review.adapter.out;

import java.util.List;
import kr.bb.product.domain.review.adapter.out.jpa.ReviewRepository;
import kr.bb.product.domain.review.entity.Review;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package kr.bb.product.domain.review.application.port.in;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.junit.jupiter.api.Assertions.*;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import kr.bb.product.domain.review.adapter.in.ReviewCommand;
import kr.bb.product.domain.review.adapter.in.ReviewCommand.Register;
import kr.bb.product.domain.review.adapter.in.ReviewCommand.ReviewImage;
import kr.bb.product.domain.review.adapter.out.ReviewRepository;
import kr.bb.product.domain.review.adapter.out.jpa.ReviewRepository;
import kr.bb.product.domain.review.application.port.out.ReviewOutPort;
import kr.bb.product.domain.review.entity.Review;
import kr.bb.product.domain.review.entity.ReviewImages;
Expand Down

0 comments on commit 35ef5bb

Please sign in to comment.