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