From 8bdbf65112d12ae4781b6282a544f2bca33d55e2 Mon Sep 17 00:00:00 2001 From: seokjin8678 Date: Sun, 14 Apr 2024 09:06:33 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=A9=94=EC=84=9C=EB=93=9C=EB=AA=85?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/festago/mock/MockDataStartupInitializer.java | 2 +- .../main/java/com/festago/mock/application/MockDataService.java | 2 +- .../application/integration/MockDataServiceIntegrationTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/com/festago/mock/MockDataStartupInitializer.java b/backend/src/main/java/com/festago/mock/MockDataStartupInitializer.java index 59756411e..3320501a2 100644 --- a/backend/src/main/java/com/festago/mock/MockDataStartupInitializer.java +++ b/backend/src/main/java/com/festago/mock/MockDataStartupInitializer.java @@ -22,7 +22,7 @@ public class MockDataStartupInitializer { @EventListener(ApplicationReadyEvent.class) public void initialize() { if (forMockSchoolRepository.count() == 0) { - mockDataService.makeMockArtist(); + mockDataService.makeMockArtists(); mockDataService.makeMockSchools(); mockDataService.makeMockFestivals(AVAILABLE_FESTIVAL_DURATION); } diff --git a/backend/src/main/java/com/festago/mock/application/MockDataService.java b/backend/src/main/java/com/festago/mock/application/MockDataService.java index 2986cab5a..5e1009e30 100644 --- a/backend/src/main/java/com/festago/mock/application/MockDataService.java +++ b/backend/src/main/java/com/festago/mock/application/MockDataService.java @@ -40,7 +40,7 @@ public class MockDataService { private final ForMockStageArtistRepository stageArtistRepository; private final ApplicationEventPublisher eventPublisher; - public void makeMockArtist() { + public void makeMockArtists() { artistRepository.saveAll(mockArtistsGenerator.generate()); } diff --git a/backend/src/test/java/com/festago/mock/application/integration/MockDataServiceIntegrationTest.java b/backend/src/test/java/com/festago/mock/application/integration/MockDataServiceIntegrationTest.java index c1d9eb138..428107b08 100644 --- a/backend/src/test/java/com/festago/mock/application/integration/MockDataServiceIntegrationTest.java +++ b/backend/src/test/java/com/festago/mock/application/integration/MockDataServiceIntegrationTest.java @@ -29,7 +29,7 @@ class makeMockFestivals { @BeforeEach void setUp() { mockDataService.makeMockSchools(); - mockDataService.makeMockArtist(); + mockDataService.makeMockArtists(); } @Test