From 510e5c3347b4b0688872501e828b4a74fc317eb7 Mon Sep 17 00:00:00 2001 From: kokodak Date: Thu, 14 Sep 2023 17:49:59 +0900 Subject: [PATCH 1/9] =?UTF-8?q?feat:=20=EC=A2=8B=EC=95=84=EC=9A=94/?= =?UTF-8?q?=EC=8B=AB=EC=96=B4=EC=9A=94=20=EB=BC=88=EB=8C=80=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EC=84=A4=EA=B3=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/now/naaga/place/domain/like/Like.java | 95 +++++++++++++++++++ .../com/now/naaga/place/domain/like/Type.java | 8 ++ 2 files changed, 103 insertions(+) create mode 100644 backend/src/main/java/com/now/naaga/place/domain/like/Like.java create mode 100644 backend/src/main/java/com/now/naaga/place/domain/like/Type.java diff --git a/backend/src/main/java/com/now/naaga/place/domain/like/Like.java b/backend/src/main/java/com/now/naaga/place/domain/like/Like.java new file mode 100644 index 000000000..de34ef9ba --- /dev/null +++ b/backend/src/main/java/com/now/naaga/place/domain/like/Like.java @@ -0,0 +1,95 @@ +package com.now.naaga.place.domain.like; + +import com.now.naaga.common.domain.BaseEntity; +import com.now.naaga.place.domain.Place; +import com.now.naaga.player.domain.Player; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import java.util.Objects; + +@Entity +public class Like extends BaseEntity { + + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Id + private Long id; + + @ManyToOne + @JoinColumn(name = "place_id") + private Place place; + + @ManyToOne + @JoinColumn(name = "player_id") + private Player player; + + @Enumerated(EnumType.STRING) + private Type type; + + protected Like() { + } + + public Like(final Place place, + final Player player, + final Type type) { + this(null, place, player, type); + } + + public Like(final Long id, + final Place place, + final Player player, + final Type type) { + this.id = id; + this.place = place; + this.player = player; + this.type = type; + } + + public Long getId() { + return id; + } + + public Place getPlace() { + return place; + } + + public Player getPlayer() { + return player; + } + + public Type getType() { + return type; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final Like like = (Like) o; + return Objects.equals(id, like.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return "Like{" + + "id=" + id + + ", placeId=" + place.getId() + + ", playerId=" + player.getId() + + ", type=" + type + + '}'; + } +} diff --git a/backend/src/main/java/com/now/naaga/place/domain/like/Type.java b/backend/src/main/java/com/now/naaga/place/domain/like/Type.java new file mode 100644 index 000000000..5a54adba3 --- /dev/null +++ b/backend/src/main/java/com/now/naaga/place/domain/like/Type.java @@ -0,0 +1,8 @@ +package com.now.naaga.place.domain.like; + +public enum Type { + + POSITIVE, + NEGATIVE, + ; +} From 165cbc4cbb4c66bfed1f94fbd1dd04559cd69290 Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 21:34:29 +0900 Subject: [PATCH 2/9] =?UTF-8?q?chore:=20=EC=A2=8B=EC=95=84=EC=9A=94=20?= =?UTF-8?q?=EB=8F=84=EB=A9=94=EC=9D=B8=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../like/Like.java => like/PlaceLike.java} | 38 +++++++++---------- .../com/now/naaga/like/PlaceLikeType.java | 8 ++++ .../com/now/naaga/place/domain/like/Type.java | 8 ---- 3 files changed, 27 insertions(+), 27 deletions(-) rename backend/src/main/java/com/now/naaga/{place/domain/like/Like.java => like/PlaceLike.java} (65%) create mode 100644 backend/src/main/java/com/now/naaga/like/PlaceLikeType.java delete mode 100644 backend/src/main/java/com/now/naaga/place/domain/like/Type.java diff --git a/backend/src/main/java/com/now/naaga/place/domain/like/Like.java b/backend/src/main/java/com/now/naaga/like/PlaceLike.java similarity index 65% rename from backend/src/main/java/com/now/naaga/place/domain/like/Like.java rename to backend/src/main/java/com/now/naaga/like/PlaceLike.java index de34ef9ba..9049d8063 100644 --- a/backend/src/main/java/com/now/naaga/place/domain/like/Like.java +++ b/backend/src/main/java/com/now/naaga/like/PlaceLike.java @@ -1,4 +1,4 @@ -package com.now.naaga.place.domain.like; +package com.now.naaga.like; import com.now.naaga.common.domain.BaseEntity; import com.now.naaga.place.domain.Place; @@ -14,7 +14,7 @@ import java.util.Objects; @Entity -public class Like extends BaseEntity { +public class PlaceLike extends BaseEntity { @GeneratedValue(strategy = GenerationType.IDENTITY) @Id @@ -29,25 +29,25 @@ public class Like extends BaseEntity { private Player player; @Enumerated(EnumType.STRING) - private Type type; + private PlaceLikeType placeLikeType; - protected Like() { + protected PlaceLike() { } - public Like(final Place place, - final Player player, - final Type type) { - this(null, place, player, type); + public PlaceLike(final Place place, + final Player player, + final PlaceLikeType placeLikeType) { + this(null, place, player, placeLikeType); } - public Like(final Long id, - final Place place, - final Player player, - final Type type) { + public PlaceLike(final Long id, + final Place place, + final Player player, + final PlaceLikeType placeLikeType) { this.id = id; this.place = place; this.player = player; - this.type = type; + this.placeLikeType = placeLikeType; } public Long getId() { @@ -62,8 +62,8 @@ public Player getPlayer() { return player; } - public Type getType() { - return type; + public PlaceLikeType getType() { + return placeLikeType; } @Override @@ -74,8 +74,8 @@ public boolean equals(final Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final Like like = (Like) o; - return Objects.equals(id, like.id); + final PlaceLike placeLike = (PlaceLike) o; + return Objects.equals(id, placeLike.id); } @Override @@ -85,11 +85,11 @@ public int hashCode() { @Override public String toString() { - return "Like{" + + return "PlaceLike{" + "id=" + id + ", placeId=" + place.getId() + ", playerId=" + player.getId() + - ", type=" + type + + ", placeLikeType=" + placeLikeType + '}'; } } diff --git a/backend/src/main/java/com/now/naaga/like/PlaceLikeType.java b/backend/src/main/java/com/now/naaga/like/PlaceLikeType.java new file mode 100644 index 000000000..99c152f4a --- /dev/null +++ b/backend/src/main/java/com/now/naaga/like/PlaceLikeType.java @@ -0,0 +1,8 @@ +package com.now.naaga.like; + +public enum PlaceLikeType { + + POSITIVE, + NEGATIVE, + ; +} diff --git a/backend/src/main/java/com/now/naaga/place/domain/like/Type.java b/backend/src/main/java/com/now/naaga/place/domain/like/Type.java deleted file mode 100644 index 5a54adba3..000000000 --- a/backend/src/main/java/com/now/naaga/place/domain/like/Type.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.now.naaga.place.domain.like; - -public enum Type { - - POSITIVE, - NEGATIVE, - ; -} From b91f142066f6a7a1c73bf3385b3ddcd2c04e9411 Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 21:41:55 +0900 Subject: [PATCH 3/9] =?UTF-8?q?feat:=20=EC=9E=A5=EC=86=8C=20=ED=86=B5?= =?UTF-8?q?=EA=B3=84=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 역정규화로 인한 통계 테이블 분리 --- .../com/now/naaga/like/PlaceLikeType.java | 8 --- .../now/naaga/like/domain/PlaceLikeType.java | 8 +++ .../placestatistics/PlaceStatistics.java | 63 +++++++++++++++++++ 3 files changed, 71 insertions(+), 8 deletions(-) delete mode 100644 backend/src/main/java/com/now/naaga/like/PlaceLikeType.java create mode 100644 backend/src/main/java/com/now/naaga/like/domain/PlaceLikeType.java create mode 100644 backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java diff --git a/backend/src/main/java/com/now/naaga/like/PlaceLikeType.java b/backend/src/main/java/com/now/naaga/like/PlaceLikeType.java deleted file mode 100644 index 99c152f4a..000000000 --- a/backend/src/main/java/com/now/naaga/like/PlaceLikeType.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.now.naaga.like; - -public enum PlaceLikeType { - - POSITIVE, - NEGATIVE, - ; -} diff --git a/backend/src/main/java/com/now/naaga/like/domain/PlaceLikeType.java b/backend/src/main/java/com/now/naaga/like/domain/PlaceLikeType.java new file mode 100644 index 000000000..e18438bbc --- /dev/null +++ b/backend/src/main/java/com/now/naaga/like/domain/PlaceLikeType.java @@ -0,0 +1,8 @@ +package com.now.naaga.like.domain; + +public enum PlaceLikeType { + + LIKE, + DISLIKE, + ; +} diff --git a/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java b/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java new file mode 100644 index 000000000..ad4c388cd --- /dev/null +++ b/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java @@ -0,0 +1,63 @@ +package com.now.naaga.placestatistics; + +import com.now.naaga.common.domain.BaseEntity; +import com.now.naaga.place.domain.Place; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import java.util.Objects; + +@Entity +public class PlaceStatistics extends BaseEntity { + + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Id + private Long id; + + @OneToOne + @JoinColumn(name = "place_id") + private Place place; + + private Long likeCount; + + public Long getId() { + return id; + } + + public Place getPlace() { + return place; + } + + public Long getLikeCount() { + return likeCount; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final PlaceStatistics that = (PlaceStatistics) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + return "PlaceStatistics{" + + "id=" + id + + ", placeId=" + place.getId() + + ", likeCount=" + likeCount + + '}'; + } +} From c59ecc4d1930aa7f8e6550d8d4458459d39f354b Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 22:01:25 +0900 Subject: [PATCH 4/9] =?UTF-8?q?feat:=20=EC=9E=A5=EC=86=8C=20=EC=A2=8B?= =?UTF-8?q?=EC=95=84=EC=9A=94=20JpaRepository=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/now/naaga/like/{ => domain}/PlaceLike.java | 2 +- .../now/naaga/like/repository/PlaceLikeRepository.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) rename backend/src/main/java/com/now/naaga/like/{ => domain}/PlaceLike.java (98%) create mode 100644 backend/src/main/java/com/now/naaga/like/repository/PlaceLikeRepository.java diff --git a/backend/src/main/java/com/now/naaga/like/PlaceLike.java b/backend/src/main/java/com/now/naaga/like/domain/PlaceLike.java similarity index 98% rename from backend/src/main/java/com/now/naaga/like/PlaceLike.java rename to backend/src/main/java/com/now/naaga/like/domain/PlaceLike.java index 9049d8063..5bebc705b 100644 --- a/backend/src/main/java/com/now/naaga/like/PlaceLike.java +++ b/backend/src/main/java/com/now/naaga/like/domain/PlaceLike.java @@ -1,4 +1,4 @@ -package com.now.naaga.like; +package com.now.naaga.like.domain; import com.now.naaga.common.domain.BaseEntity; import com.now.naaga.place.domain.Place; diff --git a/backend/src/main/java/com/now/naaga/like/repository/PlaceLikeRepository.java b/backend/src/main/java/com/now/naaga/like/repository/PlaceLikeRepository.java new file mode 100644 index 000000000..920c754dd --- /dev/null +++ b/backend/src/main/java/com/now/naaga/like/repository/PlaceLikeRepository.java @@ -0,0 +1,8 @@ +package com.now.naaga.like.repository; + +import com.now.naaga.like.domain.PlaceLike; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface PlaceLikeRepository extends JpaRepository { + +} From c41b35bf5c9da87d829ceca9ab79dcc28d8ec964 Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 22:02:04 +0900 Subject: [PATCH 5/9] =?UTF-8?q?test:=20PlaceLike=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=ED=94=BD=EC=8A=A4=EC=B3=90,=20=EC=97=94=ED=8B=B0?= =?UTF-8?q?=ED=8B=B0=20=EB=B9=8C=EB=8D=94=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/builder/PlaceLikeBuilder.java | 69 +++++++++++++++++++ .../common/fixture/PlaceLikeFixture.java | 11 +++ 2 files changed, 80 insertions(+) create mode 100644 backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java create mode 100644 backend/src/test/java/com/now/naaga/common/fixture/PlaceLikeFixture.java diff --git a/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java b/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java new file mode 100644 index 000000000..af688e31b --- /dev/null +++ b/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java @@ -0,0 +1,69 @@ +package com.now.naaga.common.builder; + +import com.now.naaga.like.domain.PlaceLike; +import com.now.naaga.like.domain.PlaceLikeType; +import com.now.naaga.like.repository.PlaceLikeRepository; +import com.now.naaga.place.domain.Place; +import com.now.naaga.player.domain.Player; +import java.util.Optional; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +@Component + +public class PlaceLikeBuilder { + + @Autowired + private PlaceLikeRepository placeLikeRepository; + + @Autowired + private PlaceBuilder placeBuilder; + + @Autowired + private PlayerBuilder playerBuilder; + + private PlaceLikeType placeLikeType; + + private Optional place; + + private Optional player; + + public PlaceLikeBuilder init() { + this.placeLikeType = PlaceLikeType.LIKE; + this.place = Optional.empty(); + this.player = Optional.empty(); + return this; + } + + public PlaceLikeBuilder placeLikeType(final PlaceLikeType placeLikeType) { + this.placeLikeType = placeLikeType; + return this; + } + + public PlaceLikeBuilder place(final Place persistedPlace) { + this.place = Optional.ofNullable(persistedPlace); + return this; + } + + public PlaceLikeBuilder player(final Player persistedPlayer) { + this.player = Optional.ofNullable(persistedPlayer); + return this; + } + + public PlaceLike build() { + final Place persistePlace = place.orElseGet(this::getPersistedPlace); + final Player persistedPlayer = player.orElseGet(this::getPersistedPlayer); + final PlaceLike placeLike = new PlaceLike(persistePlace, persistedPlayer, placeLikeType); + return placeLikeRepository.save(placeLike); + } + + private Player getPersistedPlayer() { + return playerBuilder.init() + .build(); + } + + private Place getPersistedPlace() { + return placeBuilder.init() + .build(); + } +} diff --git a/backend/src/test/java/com/now/naaga/common/fixture/PlaceLikeFixture.java b/backend/src/test/java/com/now/naaga/common/fixture/PlaceLikeFixture.java new file mode 100644 index 000000000..6d436ca4e --- /dev/null +++ b/backend/src/test/java/com/now/naaga/common/fixture/PlaceLikeFixture.java @@ -0,0 +1,11 @@ +package com.now.naaga.common.fixture; + +import com.now.naaga.like.domain.PlaceLike; +import com.now.naaga.like.domain.PlaceLikeType; + +public class PlaceLikeFixture { + + public static PlaceLike PLACE_LIKE() { + return new PlaceLike(PlaceFixture.PLACE(), PlayerFixture.PLAYER(), PlaceLikeType.LIKE); + } +} From 9a0d6612bea19e1972f670fccf742cd030c7f07d Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 22:03:57 +0900 Subject: [PATCH 6/9] =?UTF-8?q?feat:=20PlaceStatics=20JpaRepository=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/PlaceStatisticsRepository.java | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 backend/src/main/java/com/now/naaga/placestatistics/repository/PlaceStatisticsRepository.java diff --git a/backend/src/main/java/com/now/naaga/placestatistics/repository/PlaceStatisticsRepository.java b/backend/src/main/java/com/now/naaga/placestatistics/repository/PlaceStatisticsRepository.java new file mode 100644 index 000000000..267c40a17 --- /dev/null +++ b/backend/src/main/java/com/now/naaga/placestatistics/repository/PlaceStatisticsRepository.java @@ -0,0 +1,7 @@ +package com.now.naaga.placestatistics.repository; + +import com.now.naaga.placestatistics.PlaceStatistics; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface PlaceStatisticsRepository extends JpaRepository { +} From 7f16f7f9a930534e8aa21ceb4473646c0f2a4ee1 Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 22:07:39 +0900 Subject: [PATCH 7/9] =?UTF-8?q?feat:=20PlaceStatics=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EC=9E=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../naaga/placestatistics/PlaceStatistics.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java b/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java index ad4c388cd..61ed29625 100644 --- a/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java +++ b/backend/src/main/java/com/now/naaga/placestatistics/PlaceStatistics.java @@ -23,6 +23,24 @@ public class PlaceStatistics extends BaseEntity { private Long likeCount; + protected PlaceStatistics() { + + } + + public PlaceStatistics(final Place place, + final Long likeCount) { + this(null, place, likeCount); + } + + + public PlaceStatistics(final Long id, + final Place place, + final Long likeCount) { + this.id = id; + this.place = place; + this.likeCount = likeCount; + } + public Long getId() { return id; } From 299ef667d625c5565082822c26d4de26cd139486 Mon Sep 17 00:00:00 2001 From: kokodak Date: Sat, 16 Sep 2023 22:14:12 +0900 Subject: [PATCH 8/9] =?UTF-8?q?test:=20PlaceStatistics=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=ED=94=BD=EC=8A=A4=EC=B2=98,=20=EC=97=94?= =?UTF-8?q?=ED=8B=B0=ED=8B=B0=20=EB=B9=8C=EB=8D=94=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../builder/PlaceStatisticsBuilder.java | 49 +++++++++++++++++++ .../fixture/PlaceStatisticsFixture.java | 10 ++++ 2 files changed, 59 insertions(+) create mode 100644 backend/src/test/java/com/now/naaga/common/builder/PlaceStatisticsBuilder.java create mode 100644 backend/src/test/java/com/now/naaga/common/fixture/PlaceStatisticsFixture.java diff --git a/backend/src/test/java/com/now/naaga/common/builder/PlaceStatisticsBuilder.java b/backend/src/test/java/com/now/naaga/common/builder/PlaceStatisticsBuilder.java new file mode 100644 index 000000000..e49f7a80d --- /dev/null +++ b/backend/src/test/java/com/now/naaga/common/builder/PlaceStatisticsBuilder.java @@ -0,0 +1,49 @@ +package com.now.naaga.common.builder; + +import com.now.naaga.place.domain.Place; +import com.now.naaga.placestatistics.PlaceStatistics; +import com.now.naaga.placestatistics.repository.PlaceStatisticsRepository; +import java.util.Optional; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +@Component +public class PlaceStatisticsBuilder { + + @Autowired + private PlaceStatisticsRepository placeStatisticsRepository; + + @Autowired + private PlaceBuilder placeBuilder; + + private Long likeCount; + + private Optional place; + + public PlaceStatisticsBuilder init() { + this.place = Optional.empty(); + this.likeCount = 0L; + return this; + } + + public PlaceStatisticsBuilder likeCount(final Long likeCount) { + this.likeCount = likeCount; + return this; + } + + public PlaceStatisticsBuilder place(final Place persistedPlace) { + this.place = Optional.ofNullable(persistedPlace); + return this; + } + + public PlaceStatistics build() { + final Place persistePlace = place.orElseGet(this::getPersistedPlace); + final PlaceStatistics placeStatistics = new PlaceStatistics(persistePlace, likeCount); + return placeStatisticsRepository.save(placeStatistics); + } + + private Place getPersistedPlace() { + return placeBuilder.init() + .build(); + } +} diff --git a/backend/src/test/java/com/now/naaga/common/fixture/PlaceStatisticsFixture.java b/backend/src/test/java/com/now/naaga/common/fixture/PlaceStatisticsFixture.java new file mode 100644 index 000000000..3ae0ea5db --- /dev/null +++ b/backend/src/test/java/com/now/naaga/common/fixture/PlaceStatisticsFixture.java @@ -0,0 +1,10 @@ +package com.now.naaga.common.fixture; + +import com.now.naaga.placestatistics.PlaceStatistics; + +public class PlaceStatisticsFixture { + + public static PlaceStatistics PLACE_STATISTICS() { + return new PlaceStatistics(PlaceFixture.PLACE(), 0L); + } +} From 742c56382e5745efe9268760b4f885d937af30a8 Mon Sep 17 00:00:00 2001 From: dooboocookie Date: Sat, 30 Sep 2023 18:43:21 +0900 Subject: [PATCH 9/9] =?UTF-8?q?chore:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EA=B0=9C=ED=96=89=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java b/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java index af688e31b..84b62c8f4 100644 --- a/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java +++ b/backend/src/test/java/com/now/naaga/common/builder/PlaceLikeBuilder.java @@ -10,7 +10,6 @@ import org.springframework.stereotype.Component; @Component - public class PlaceLikeBuilder { @Autowired